Rework skills and modules

This commit is contained in:
2022-11-15 20:39:05 +01:00
parent 85f4ba0e99
commit be555d5adc
9 changed files with 174 additions and 100 deletions

View File

@@ -41,6 +41,9 @@ export class Avd12Utility {
Handlebars.registerHelper('mul', function (a, b) {
return parseInt(a) * parseInt(b);
})
Handlebars.registerHelper('add', function (a, b) {
return parseInt(a) + parseInt(b);
})
}
/*-------------------------------------------- */
@@ -71,6 +74,15 @@ export class Avd12Utility {
bonusList.push( key + "." + bonus )
}
}
for(let key in game.system.model.Actor.character.attributes) {
let attrs = game.system.model.Actor.character.attributes[key]
for(let skillKey in attrs.skills) {
bonusList.push( key + ".skills." + skillKey + ".modifier" )
}
}
for(let key in game.system.model.Actor.character.universal.skills) {
bonusList.push( "universal.skills." + key + ".modifier" )
}
return bonusList
}