mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.209.0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user