This commit is contained in:
TheGiddyLimit
2024-07-10 20:47:40 +01:00
parent e5844f8a3f
commit 2eeeb0771b
341 changed files with 67623 additions and 11384 deletions

View File

@@ -168,8 +168,12 @@ function addMonsterFeatures (mfData) {
function calculateCr () {
const expectedCr = parseInt($("#expectedcr").val());
// Effective HP
let hp = parseInt($("#crcalc #hp").val());
// Used in e.g. "Damage Transfer"
const hpActual = hp;
if ($("#vulnerabilities").prop("checked")) hp *= 0.5;
if ($("#resistances").val() === "res") {
if (expectedCr >= 0 && expectedCr <= 4) hp *= 2;