Pas de perte d'endurance quand éméché
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# 13.0
|
||||
|
||||
## 13.0.33 - L'ébriété d'Illysis
|
||||
|
||||
- le stade éméché ne cause plus de perte d'endurance
|
||||
|
||||
## 13.0.32 - Le surpoids d'Illysis
|
||||
|
||||
- Le malus d'encombrement sur jet d'Agilité avec Natation ou Acrobatie peuvent être changés, et sont correctement arrondis
|
||||
|
||||
@@ -1421,6 +1421,7 @@ export class RdDActor extends RdDBaseActorSang {
|
||||
actor: this,
|
||||
vie: this.system.sante.vie.max,
|
||||
alcool: alcool,
|
||||
perteEndurance: 0,
|
||||
jetVie: {
|
||||
forceAlcool: forceAlcool,
|
||||
nbDoses: nbDoses,
|
||||
@@ -1441,8 +1442,9 @@ export class RdDActor extends RdDBaseActorSang {
|
||||
ethylisme.value = Math.max(ethylisme.value - 1, -7);
|
||||
ethylisme.nb_doses = 0;
|
||||
|
||||
let perte = await RdDDice.rollTotal("1d6");
|
||||
ethylismeData.perteEndurance = await this.santeIncDec("endurance", -perte);
|
||||
if (ethylisme.value > 0) {
|
||||
ethylismeData.perteEndurance = await this.santeIncDec("endurance", -(await RdDDice.rollTotal("1d6")))
|
||||
}
|
||||
|
||||
if (!ethylisme.jet_moral) {
|
||||
ethylismeData.jetMoral = await this._jetDeMoral(MORAL.HEUREUX, "Ethylisme");
|
||||
|
||||
@@ -16,7 +16,11 @@
|
||||
{{#if jetVie.rolled.isEchec}}
|
||||
<br>
|
||||
<span>
|
||||
{{alias}} perd {{perteEndurance.perte}} points d'endurance. {{#if perteEndurance.perteVie}}<br/>Il tombe inconscient et perd un point de vie.{{/if}}
|
||||
{{#if perteEndurance.perte}}Perte de {{perteEndurance.perte}} points d'endurance.
|
||||
{{else if (eq ajustementEthylique 0)}}Pas de perte d'endurance.
|
||||
{{/if}}
|
||||
{{#if perteEndurance.perteVie}}{{alias}} tombe inconscient et perd un point de vie.{{/if}}
|
||||
|
||||
{{#if jetMoral}}
|
||||
<br/>Jet de moral {{#if jetMoral.succes}}réussi{{else}}manqué{{/if}} en situation heureuse ({{jetMoral.jet}}/{{jetMoral.difficulte}}).
|
||||
{{#if (gt jetMoral.ajustement 0)}}L'alcool met en joie {{alias}} qui gagne un point de moral.
|
||||
|
||||
Reference in New Issue
Block a user