Fixes and enhancements, from issue list
This commit is contained in:
@@ -172,6 +172,7 @@ export default class OathHammerNPCSheet extends OathHammerActorSheet {
|
||||
colorType: attack.system.colorDiceType,
|
||||
threshold: attack.system.threshold,
|
||||
bonusOptions,
|
||||
showExplodeOn5: true,
|
||||
colorChoices: Object.fromEntries(
|
||||
Object.entries(SYSTEM.DICE_COLOR_TYPES).map(([k, v]) => [k, game.i18n.localize(v)])
|
||||
),
|
||||
@@ -194,6 +195,7 @@ export default class OathHammerNPCSheet extends OathHammerActorSheet {
|
||||
|
||||
await rollNPCAttackDamage(this.document, attack, {
|
||||
bonus: parseInt(getValue("bonus")) || 0,
|
||||
explodeOn5: getValue("explodeOn5") === "true",
|
||||
visibility: getValue("visibility"),
|
||||
})
|
||||
}
|
||||
@@ -228,6 +230,7 @@ export default class OathHammerNPCSheet extends OathHammerActorSheet {
|
||||
itemName: spell.name, itemImg: spell.img,
|
||||
dv: spell.system.difficultyValue,
|
||||
poolOptions, bonusOptions, colorChoices, showColor: true,
|
||||
showExplodeOn5: true,
|
||||
rollModes: foundry.utils.duplicate(CONFIG.Dice.rollModes),
|
||||
visibility: game.settings.get("core", "rollMode"),
|
||||
}
|
||||
@@ -249,6 +252,7 @@ export default class OathHammerNPCSheet extends OathHammerActorSheet {
|
||||
dicePool: parseInt(getValue("dicePool")) || 3,
|
||||
bonus: parseInt(getValue("bonus")) || 0,
|
||||
colorOverride: getValue("colorOverride") || null,
|
||||
explodeOn5: getValue("explodeOn5") === "true",
|
||||
visibility: getValue("visibility"),
|
||||
})
|
||||
}
|
||||
@@ -272,6 +276,7 @@ export default class OathHammerNPCSheet extends OathHammerActorSheet {
|
||||
itemName: miracle.name, itemImg: miracle.img,
|
||||
dv: null, showColor: false,
|
||||
poolOptions, bonusOptions,
|
||||
showExplodeOn5: true,
|
||||
rollModes: foundry.utils.duplicate(CONFIG.Dice.rollModes),
|
||||
visibility: game.settings.get("core", "rollMode"),
|
||||
}
|
||||
@@ -292,6 +297,7 @@ export default class OathHammerNPCSheet extends OathHammerActorSheet {
|
||||
await rollNPCMiracle(this.document, miracle, {
|
||||
dicePool: parseInt(getValue("dicePool")) || 3,
|
||||
bonus: parseInt(getValue("bonus")) || 0,
|
||||
explodeOn5: getValue("explodeOn5") === "true",
|
||||
visibility: getValue("visibility"),
|
||||
})
|
||||
}
|
||||
@@ -323,6 +329,7 @@ export default class OathHammerNPCSheet extends OathHammerActorSheet {
|
||||
threshold,
|
||||
bonusOptions,
|
||||
colorChoices,
|
||||
showExplodeOn5: true,
|
||||
rollModes: foundry.utils.duplicate(CONFIG.Dice.rollModes),
|
||||
visibility: game.settings.get("core", "rollMode"),
|
||||
}
|
||||
@@ -343,6 +350,7 @@ export default class OathHammerNPCSheet extends OathHammerActorSheet {
|
||||
await rollNPCArmor(actor, {
|
||||
bonus: parseInt(getValue("bonus")) || 0,
|
||||
colorOverride: getValue("colorOverride") || null,
|
||||
explodeOn5: getValue("explodeOn5") === "true",
|
||||
visibility: getValue("visibility"),
|
||||
})
|
||||
}
|
||||
@@ -381,6 +389,7 @@ export default class OathHammerNPCSheet extends OathHammerActorSheet {
|
||||
threshold: item.system.threshold,
|
||||
bonusOptions,
|
||||
colorChoices,
|
||||
showExplodeOn5: true,
|
||||
rollModes: foundry.utils.duplicate(CONFIG.Dice.rollModes),
|
||||
visibility: game.settings.get("core", "rollMode"),
|
||||
}
|
||||
@@ -401,6 +410,7 @@ export default class OathHammerNPCSheet extends OathHammerActorSheet {
|
||||
await rollNPCSkill(this.document, item, {
|
||||
bonus: parseInt(getValue("bonus")) || 0,
|
||||
colorOverride: getValue("colorOverride") || null,
|
||||
explodeOn5: getValue("explodeOn5") === "true",
|
||||
visibility: getValue("visibility"),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user