Pénétration pour les arcs/arbalètes #68

A noter, il faut modifier les arcs/arbalètes des personnages existants
This commit is contained in:
2020-12-15 23:17:05 +01:00
parent 62f2a21c01
commit db9a12abad
5 changed files with 10 additions and 4 deletions

View File

@ -1914,6 +1914,7 @@ export class RdDActor extends Actor {
this.updateEmbeddedEntity("OwnedItem", update);
}
}
protection = Math.max(protection - Misc.toInt(arme.data.penetration), 0);
protection += this.getProtectionNaturelle();
console.log("Final protect", protection);
return protection;
@ -1932,7 +1933,7 @@ export class RdDActor extends Actor {
dmg: attackerRoll.dmg.total,
armure: armure
}).roll();
RdDDice.show(rollEncaissement, )
RdDDice.show(rollEncaissement);
let result = RdDUtility.computeBlessuresSante(rollEncaissement.total, attackerRoll.mortalite, attackerRoll.dmg.loc);
result.endurance = Math.max(result.endurance, -Number(this.data.data.sante.endurance.value));
await this.santeIncDec("vie", result.vie);