mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 20:21:06 +01:00
Renamed/structured resources/evasion/proficiency
This commit is contained in:
parent
84a41912a7
commit
84cdaab767
7 changed files with 69 additions and 132 deletions
|
|
@ -210,9 +210,9 @@ export default class DhlevelUp extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
|
||||
context.achievements = {
|
||||
proficiency: {
|
||||
old: this.actor.system.proficiency,
|
||||
old: this.actor.system.proficiency.value,
|
||||
new:
|
||||
this.actor.system.proficiency +
|
||||
this.actor.system.proficiency.value +
|
||||
Object.values(this.levelup.allInitialAchievements).reduce(
|
||||
(acc, x) => acc + x.proficiency,
|
||||
0
|
||||
|
|
@ -280,9 +280,9 @@ export default class DhlevelUp extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
Object.values(advancementChoices.proficiency ?? {}).reduce((acc, x) => acc + x.value, 0)
|
||||
},
|
||||
hitPoints: {
|
||||
old: this.actor.system.resources.health.max,
|
||||
old: this.actor.system.resources.hitPoints.max,
|
||||
new:
|
||||
this.actor.system.resources.health.max +
|
||||
this.actor.system.resources.hitPoints.max +
|
||||
Object.values(advancementChoices.hitPoint ?? {}).reduce((acc, x) => acc + x.value, 0)
|
||||
},
|
||||
stress: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue