Gestion endurance en fin de round #202
This commit is contained in:
parent
213e810b4e
commit
909dd12cec
@ -1539,6 +1539,14 @@ export class RdDActor extends Actor {
|
||||
ChatMessage.create({ content: `${this.name} n'est plus ${Misc.lowerFirst(game.i18n.localize(effect.data.label))} !` });
|
||||
}
|
||||
}
|
||||
if ( this.type == 'personnage') {
|
||||
// Gestion blessure graves : -1 pt endurance
|
||||
let nbGraves = this.countBlessuresByName("graves");
|
||||
if ( nbGraves > 0) {
|
||||
await this.santeIncDec("endurance", -1 );
|
||||
ChatMessage.create({ content: `${this.name} a perdu 1 point d'Endurance à cause d'au moins une Blessure Grave` });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
@ -2,7 +2,7 @@
|
||||
"name": "foundryvtt-reve-de-dragon",
|
||||
"title": "Rêve de Dragon",
|
||||
"description": "Rêve de Dragon RPG for FoundryVTT",
|
||||
"version": "1.5.13",
|
||||
"version": "1.5.14",
|
||||
"manifestPlusVersion": "1.0.0",
|
||||
"minimumCoreVersion": "0.8.0",
|
||||
"compatibleCoreVersion": "0.8.9",
|
||||
|
Loading…
Reference in New Issue
Block a user