forked from public/foundryvtt-reve-de-dragon
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user