Manage wounds
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user