Add fight options

This commit is contained in:
2022-03-10 21:39:12 +01:00
parent 02b3dd5e0f
commit 1a69116c06
3 changed files with 13 additions and 2 deletions

View File

@ -56,6 +56,17 @@ export class BoLActor extends Actor {
get aptitudes() {
return Object.values(this.data.data.aptitudes)
}
/* -------------------------------------------- */
clearRoundModifiers( ) { // Process data/items that are finished at end of a round
let foList = this.fightoptions
for(let fo of foList) {
if (fo.data.properties.used) {
this.updateEmbeddedDocuments("Item", [ {_id: fo._id, 'data.properties.used': false}] )
}
}
}
/* -------------------------------------------- */
get defenseValue() {
let defMod = 0