mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Set default data for a roll instead and fix title
This commit is contained in:
parent
23fd3a3f89
commit
76bfc56ce0
3 changed files with 2 additions and 4 deletions
|
|
@ -607,6 +607,7 @@
|
||||||
},
|
},
|
||||||
"RerollDialog": {
|
"RerollDialog": {
|
||||||
"title": "Reroll",
|
"title": "Reroll",
|
||||||
|
"damageTitle": "Reroll Damage",
|
||||||
"deselectDiceNotification": "Deselect one of the selected dice first",
|
"deselectDiceNotification": "Deselect one of the selected dice first",
|
||||||
"acceptCurrentRolls": "Accept Current Rolls"
|
"acceptCurrentRolls": "Accept Current Rolls"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -292,9 +292,6 @@ export default class DamageRoll extends DHRoll {
|
||||||
if (isDie) diceIndex++;
|
if (isDie) diceIndex++;
|
||||||
return fixedTerm;
|
return fixedTerm;
|
||||||
}),
|
}),
|
||||||
options: {
|
|
||||||
roll: []
|
|
||||||
},
|
|
||||||
class: 'DamageRoll',
|
class: 'DamageRoll',
|
||||||
evaluated: false
|
evaluated: false
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import D20RollDialog from '../applications/dialogs/d20RollDialog.mjs';
|
||||||
export default class DHRoll extends Roll {
|
export default class DHRoll extends Roll {
|
||||||
baseTerms = [];
|
baseTerms = [];
|
||||||
constructor(formula, data = {}, options = {}) {
|
constructor(formula, data = {}, options = {}) {
|
||||||
super(formula, data, options);
|
super(formula, data, foundry.utils.mergeObject({ roll: [] }, options));
|
||||||
options.bonusEffects = this.bonusEffectBuilder();
|
options.bonusEffects = this.bonusEffectBuilder();
|
||||||
if (!this.data || !Object.keys(this.data).length) this.data = options.data;
|
if (!this.data || !Object.keys(this.data).length) this.data = options.data;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue