Manage wounds

This commit is contained in:
2021-02-16 22:04:59 +01:00
parent cfcc3b3201
commit fb0eb9dcc8
9 changed files with 137 additions and 27 deletions

View File

@ -139,6 +139,18 @@ export class SoSCombat extends Combat {
return 0;
}
/* -------------------------------------------- */
decreaseAPFromActor( actorId ) {
for( let combatant of this.combatants) {
//console.log(combatant);
if ( combatant.actor.data._id == actorId ) {
let phase = this.phaseSetup[combatant._id];
phase.remainingAP -= 1;
if ( phase.remainingAP < 0 ) phase.remainingAP = 0;
}
}
}
/* -------------------------------------------- */
async setupActorActions(actionConf) {
console.log("Setting combat for phase : ", actionConf);