Module stuff and fixes on other items

This commit is contained in:
2022-11-09 22:20:30 +01:00
parent 17bfd3eecd
commit 85f4ba0e99
4 changed files with 23 additions and 15 deletions

View File

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