From a6a05863479c239cd2d9efca7226c56bcebd1c1f Mon Sep 17 00:00:00 2001 From: sladecraven Date: Wed, 16 Feb 2022 21:23:23 +0100 Subject: [PATCH] Allow items --- modules/pegasus-actor.js | 5 +++-- system.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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" }