Allow items

This commit is contained in:
sladecraven 2022-02-16 21:23:23 +01:00
parent 04afb7a424
commit a6a0586347
2 changed files with 4 additions and 3 deletions

View File

@ -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)
}

View File

@ -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"
}