mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 12:11:07 +01:00
Improved naming of attribute properties
This commit is contained in:
parent
b9c5c3c753
commit
84a41912a7
3 changed files with 5 additions and 5 deletions
|
|
@ -46,7 +46,7 @@ export default class DhpActor extends Actor {
|
|||
}
|
||||
|
||||
var traitsUpdate = changes.traits.reduce((acc, trait) => {
|
||||
acc[`${trait}.data.value`] = this.system.traits[trait].data.value - 1;
|
||||
acc[`${trait}.data.bonus`] = this.system.traits[trait].data.bonus - 1;
|
||||
return acc;
|
||||
}, {});
|
||||
|
||||
|
|
@ -191,7 +191,7 @@ export default class DhpActor extends Actor {
|
|||
}
|
||||
|
||||
var traitsUpdate = changes.traits.reduce((acc, trait) => {
|
||||
acc[`${trait}.data.value`] = this.system.traits[trait].data.value + 1;
|
||||
acc[`${trait}.data.bonus`] = this.system.traits[trait].data.bonus + 1;
|
||||
return acc;
|
||||
}, {});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue