Various enhancements + fixes

This commit is contained in:
2025-01-09 20:21:02 +01:00
parent b3a7f7380b
commit 3dcfc30fb6
38 changed files with 732 additions and 603 deletions

View File

@ -282,6 +282,7 @@ export default class LethalFantasyRoll extends Roll {
titleFormula = `${dice}E`
}
// Specific pain case
if (options.rollType === "save" && options.rollTarget.rollKey === "pain") {
baseFormula = options.rollTarget.rollDice
titleFormula = `${dice}`
@ -289,6 +290,11 @@ export default class LethalFantasyRoll extends Roll {
fullModifier = 0
}
// Specific pain/poison/contagion case
if (options.rollType === "save" && options.rollTarget.rollKey.includes(["pain", "poison", "contagion"])) {
hasD30 = false
}
maxValue = Number(baseFormula.match(/\d+$/)[0]) // Update the max value agains
const rollData = {