Weapon attacke management, step1

This commit is contained in:
2021-12-25 23:26:27 +01:00
parent 498b5bc4a6
commit a8d4d40106
8 changed files with 277 additions and 6 deletions

View File

@ -186,7 +186,7 @@ export class BoLActorSheet extends ActorSheet {
BoLRoll.aptitudeCheck(this.actor, actorData, dataset, event);
break;
case "weapon":
console.log("ROLL WEAPON !!!"); // TODO
BoLRoll.weaponCheck(this.actor, actorData, dataset, event);
break;
default : break;
}

View File

@ -41,6 +41,9 @@ export class BoLActor extends Actor {
get aptitudes() {
return Object.values(this.data.data.aptitudes);
}
get defenseValue() {
return this.data.data.aptitudes.def.value;
}
get resources() {
return Object.values(this.data.data.resources);
}
@ -84,7 +87,6 @@ export class BoLActor extends Actor {
get protections() {
return this.armors.concat(this.helms).concat(this.shields)
}
get melee() {
return this.weapons.filter(i => i.data.properties.melee === true);
}