Some corrections and adds to Consumables and Loot compendia (#492)

This commit is contained in:
WBHarry 2025-08-01 01:25:28 +02:00 committed by GitHub
parent 3e333d3533
commit 6ca24b3db7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
61 changed files with 2142 additions and 540 deletions

View file

@ -145,6 +145,7 @@ export default class D20Roll extends DHRoll {
data.difficulty = config.roll.difficulty;
data.success = roll.isCritical || roll.total >= config.roll.difficulty;
}
data.type = config.roll.type;
data.advantage = {
type: config.roll.advantage,
dice: roll.dAdvantage?.denomination,

View file

@ -69,7 +69,6 @@ export default class DHRoll extends Roll {
static postEvaluate(roll, config = {}) {
return {
type: config.roll.type,
total: roll.total,
formula: roll.formula,
dice: roll.dice.map(d => ({