From 3c893e9be5fe2acacd8bfcbd35e162eea0d59c76 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Tue, 1 Nov 2022 15:12:18 +0100 Subject: [PATCH] Fix #116 --- modules/pegasus-actor.js | 10 +++++----- system.json | 4 ++-- templates/item-shield-sheet.html | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js index 845ab44..02d9acc 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -1349,21 +1349,21 @@ export class PegasusActor extends Actor { if (this.isOwner || game.user.isGM) { let updates = {} - let phyDiceValue = PegasusUtility.getDiceValue(this.system.statistics.phy.value) + this.system.secondary.health.bonus + this.system.statistics.phy.mod; + let phyDiceValue = PegasusUtility.getDiceValue(this.system.statistics.phy.value) + this.system.secondary.health.bonus + this.system.statistics.phy.mod + PegasusUtility.getDiceValue(this.system.phy.bonuseffect); if (phyDiceValue != this.system.secondary.health.max) { updates['system.secondary.health.max'] = phyDiceValue } if (this.computeValue) { updates['system.secondary.health.value'] = phyDiceValue } - let mndDiceValue = PegasusUtility.getDiceValue(this.system.statistics.mnd.value) + this.system.secondary.delirium.bonus + this.system.statistics.mnd.mod; + let mndDiceValue = PegasusUtility.getDiceValue(this.system.statistics.mnd.value) + this.system.secondary.delirium.bonus + this.system.statistics.mnd.mod + PegasusUtility.getDiceValue(this.system.mnd.bonuseffect); if (mndDiceValue != this.system.secondary.delirium.max) { updates['system.secondary.delirium.max'] = mndDiceValue } if (this.computeValue) { updates['system.secondary.delirium.value'] = mndDiceValue } - let stlDiceValue = PegasusUtility.getDiceValue(this.system.statistics.stl.value) + this.system.secondary.stealthhealth.bonus + this.system.statistics.stl.mod; + let stlDiceValue = PegasusUtility.getDiceValue(this.system.statistics.stl.value) + this.system.secondary.stealthhealth.bonus + this.system.statistics.stl.mod + PegasusUtility.getDiceValue(this.system.stl.bonuseffect); if (stlDiceValue != this.system.secondary.stealthhealth.max) { updates['system.secondary.stealthhealth.max'] = stlDiceValue } @@ -1371,7 +1371,7 @@ export class PegasusActor extends Actor { updates['system.secondary.stealthhealth.value'] = stlDiceValue } - let socDiceValue = PegasusUtility.getDiceValue(this.system.statistics.soc.value) + this.system.secondary.socialhealth.bonus + this.system.statistics.soc.mod; + let socDiceValue = PegasusUtility.getDiceValue(this.system.statistics.soc.value) + this.system.secondary.socialhealth.bonus + this.system.statistics.soc.mod + PegasusUtility.getDiceValue(this.system.soc.bonuseffect); if (socDiceValue != this.system.secondary.socialhealth.max) { updates['system.secondary.socialhealth.max'] = socDiceValue } @@ -1379,7 +1379,7 @@ export class PegasusActor extends Actor { updates['system.secondary.socialhealth.value'] = socDiceValue } - let nrgValue = PegasusUtility.getDiceValue(this.system.statistics.foc.value) + this.system.nrg.mod + this.system.statistics.foc.mod + let nrgValue = PegasusUtility.getDiceValue(this.system.statistics.foc.value) + this.system.nrg.mod + this.system.statistics.foc.mod + PegasusUtility.getDiceValue(this.system.foc.bonuseffect) if (nrgValue != this.system.nrg.absolutemax) { updates['system.nrg.absolutemax'] = nrgValue } diff --git a/system.json b/system.json index ae61369..e2cadb3 100644 --- a/system.json +++ b/system.json @@ -253,7 +253,7 @@ ], "title": "Pegasus RPG", "url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg", - "version": "10.1.9", - "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.1.9.zip", + "version": "10.1.10", + "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.1.10.zip", "background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp" } \ No newline at end of file diff --git a/templates/item-shield-sheet.html b/templates/item-shield-sheet.html index 8261f2f..0f2f110 100644 --- a/templates/item-shield-sheet.html +++ b/templates/item-shield-sheet.html @@ -5,6 +5,7 @@

+ {{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}} {{!-- Sheet Body --}}