diff --git a/module/config.mjs b/module/config.mjs index 24842bf5..303dad94 100644 --- a/module/config.mjs +++ b/module/config.mjs @@ -5333,7 +5333,7 @@ function addPower(powerDescription6e, powerOverrideFor5e) { return 15; } // This should never happen - console.error("Invalid TRANSFORM option ID: " + item.system.OPTIONID); + console.error(`Invalid TRANSFORM option ID: ${item.system.OPTIONID}`); return 1; }, costEnd: true, diff --git a/module/item/item-attack.mjs b/module/item/item-attack.mjs index fe4c86d3..65213613 100644 --- a/module/item/item-attack.mjs +++ b/module/item/item-attack.mjs @@ -1357,7 +1357,7 @@ export async function _onRollDamage(event) { .makeAdjustmentRoll(!!adjustment) .makeFlashRoll(!!senseAffecting) .makeEntangleRoll(entangle) - .makeTransformRoll(transform) + .makeEffectRoll(transform) .addStunMultiplier(increasedMultiplierLevels - decreasedMultiplierLevels) .addDice(formulaParts.d6Count >= 1 ? formulaParts.d6Count : 0) .addHalfDice(formulaParts.halfDieCount >= 1 ? formulaParts.halfDieCount : 0) diff --git a/module/testing/testing-dice.mjs b/module/testing/testing-dice.mjs index 4294113b..83deef95 100644 --- a/module/testing/testing-dice.mjs +++ b/module/testing/testing-dice.mjs @@ -187,13 +187,13 @@ export function registerDiceTests(quench) { roller.makeFlashRoll(undefined); expect(roller._type).to.equal(HeroRoller.ROLL_TYPE.FLASH); - roller.makeTransformRoll(0); + roller.makeEffectRoll(0); expect(roller._type).to.equal(HeroRoller.ROLL_TYPE.FLASH); - roller.makeTransformRoll(false); + roller.makeEffectRoll(false); expect(roller._type).to.equal(HeroRoller.ROLL_TYPE.FLASH); - roller.makeTransformRoll(null); + roller.makeEffectRoll(null); expect(roller._type).to.equal(HeroRoller.ROLL_TYPE.FLASH); - roller.makeTransformRoll(undefined); + roller.makeEffectRoll(undefined); expect(roller._type).to.equal(HeroRoller.ROLL_TYPE.EFFECT); }); diff --git a/module/utility/dice.mjs b/module/utility/dice.mjs index 465de0c4..36177442 100644 --- a/module/utility/dice.mjs +++ b/module/utility/dice.mjs @@ -264,13 +264,6 @@ export class HeroRoller { return this; } - makeTransformRoll(apply = true) { - if (apply) { - this._type = HeroRoller.ROLL_TYPE.EFFECT; - } - return this; - } - makeFlashRoll(apply = true) { if (apply) { this._type = HeroRoller.ROLL_TYPE.FLASH;