Add fight options

This commit is contained in:
sladecraven 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() { get aptitudes() {
return Object.values(this.data.data.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() { get defenseValue() {
let defMod = 0 let defMod = 0

View File

@ -55,7 +55,7 @@ export class BoLCombatManager extends Combat {
let combatants = this.combatants.contents let combatants = this.combatants.contents
for (let c of combatants) { for (let c of combatants) {
let actor = game.actors.get( c.data.actorId ) let actor = game.actors.get( c.data.actorId )
//actor.clearRoundModifiers() actor.clearRoundModifiers()
} }
super.nextRound() super.nextRound()
} }

View File

@ -7,7 +7,7 @@
"url": "https://github.com/ZigmundKreud/bol", "url": "https://github.com/ZigmundKreud/bol",
"license": "LICENSE.txt", "license": "LICENSE.txt",
"flags": {}, "flags": {},
"version": "1.2.0", "version": "1.2.1",
"templateVersion": 22, "templateVersion": 22,
"minimumCoreVersion": "0.8.6", "minimumCoreVersion": "0.8.6",
"compatibleCoreVersion": "9", "compatibleCoreVersion": "9",