diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js index da4b46a..60c86fe 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -648,7 +648,8 @@ export class PegasusActor extends Actor { /* -------------------------------------------- */ async computeNRGHealth() { - //if (this.isToken) return + if (this.isToken) return + if (this.isOwner || game.user.isGM) { let updates = {} let phyDiceValue = PegasusUtility.getDiceValue(this.data.data.statistics.phy.value) + this.data.data.secondary.health.bonus + this.data.data.statistics.phy.mod; @@ -715,7 +716,7 @@ export class PegasusActor extends Actor { if (role && role.name && (role.name != this.data.data.biodata.rolename)) { updates['data.biodata.rolename'] = role.name } - //console.log("UPD", updates, this.data.data.biodata) + console.log("UPD", updates, this.data.data.biodata) await this.update(updates) } diff --git a/system.json b/system.json index 940d300..820fc9f 100644 --- a/system.json +++ b/system.json @@ -183,6 +183,6 @@ "templateVersion": 80, "title": "Pegasus RPG", "url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg", - "version": "0.4.16", + "version": "0.4.17", "background" : "./images/ui/pegasus_welcome_page.webp" }