Gestion de l'empoignade

This commit is contained in:
LeRatierBretonnien 2023-04-21 23:09:40 +02:00
parent fb8189606b
commit 154a9b7a37
2 changed files with 3 additions and 4 deletions

View File

@ -42,7 +42,6 @@ export class RdDEmpoignade {
emp = attacker.itemTypes['empoignade'].find(it => it.system.empoigneurid == defender.id && it.system.empoigneid == attacker.id)
}
if (emp) {
// TODO ? central storage ?
return duplicate(emp);
}
return undefined;
@ -264,7 +263,7 @@ export class RdDEmpoignade {
let defender = game.actors.get(rollData.defenderId)
let empoignade = this.getEmpoignade(attacker, defender)
console.log("Perte d'endurance :!!!", perteMode)
//console.log("Perte d'endurance :!!!", perteMode)
let endValue = defender.system.sante.endurance.value
if (perteMode == "end0") {
await defender.santeIncDec("endurance", -endValue);

View File

@ -1,8 +1,8 @@
{
"id": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon",
"version": "10.7.9",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.7.9.zip",
"version": "10.7.10",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.7.10.zip",
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v10/system.json",
"compatibility": {
"minimum": "10",