mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
[Fix] Levelup New Experience Increase (#1461)
* Fixed so you can select a newly gained experience to increase * . * Exchanged forEach with for..of. The future is now
This commit is contained in:
parent
f184db1f93
commit
0806c2d1ac
4 changed files with 32 additions and 12 deletions
|
|
@ -98,10 +98,10 @@ export default class D20Roll extends DHRoll {
|
|||
this.options.roll.modifiers = this.applyBaseBonus();
|
||||
|
||||
this.options.experiences?.forEach(m => {
|
||||
if (this.options.data.experiences?.[m])
|
||||
if (this.options.data.system?.experiences?.[m])
|
||||
this.options.roll.modifiers.push({
|
||||
label: this.options.data.experiences[m].name,
|
||||
value: this.options.data.experiences[m].value
|
||||
label: this.options.data.system.experiences[m].name,
|
||||
value: this.options.data.system.experiences[m].value
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue