Module stuff and fixes on other items
This commit is contained in:
@@ -72,6 +72,7 @@ export class Avd12ItemSheet extends ItemSheet {
|
||||
limited: this.object.limited,
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
bonusList: Avd12Utility.buildBonusList(),
|
||||
description: await TextEditor.enrichHTML(this.object.system.description, { async: true }),
|
||||
isGM: game.user.isGM
|
||||
}
|
||||
|
@@ -62,6 +62,18 @@ export class Avd12Utility {
|
||||
return duplicate(this.shieldSkills)
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static buildBonusList() {
|
||||
let bonusList = []
|
||||
for(let key in game.system.model.Actor.character.bonus) {
|
||||
let bonuses = game.system.model.Actor.character.bonus[key]
|
||||
for (let bonus in bonuses) {
|
||||
bonusList.push( key + "." + bonus )
|
||||
}
|
||||
}
|
||||
return bonusList
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static async ready() {
|
||||
const skills = await Avd12Utility.loadCompendium("fvtt-avd12.skills")
|
||||
|
Reference in New Issue
Block a user