forked from public/foundryvtt-reve-de-dragon
		
	Refactor Ethylisme in multiple steps
This commit is contained in:
		| @@ -1,26 +1,39 @@ | ||||
| {{#if (equals ethylismeEtape 'Vie')}} | ||||
| <h4> | ||||
|   {{alias}} bois un verre d'alcool de force {{forceAlcool}} | ||||
| </h4> | ||||
| <hr> | ||||
| <hr/> | ||||
| <div> | ||||
|   <span> | ||||
|     {{{rollEthylismeText}}} | ||||
|     {{{jetVieText}}} | ||||
|     <br/> | ||||
|     {{#if rollEthylismeIsSuccess}} | ||||
|     {{#if jetVieSuccess}} | ||||
|     Vous avez réussi votre jet d'éthylisme, vous avez consommé {{doses}} doses sans effet. | ||||
|     {{else}} | ||||
|     Vous avez échoué à votre jet d'éthylisme, vous êtes maintenant {{nomEthylisme}} ({{ajustementEthylique}}). | ||||
|     <br/> | ||||
|     Vous perdez {{enduranceLost}} points d'endurance. | ||||
|     <br/> | ||||
|     Qui a bu boira : | ||||
|     {{{rollVolonteText}}} | ||||
|     <br/> | ||||
|     {{#if rollVolonteIsSuccess}} | ||||
|     Vous êtes libre de continuer à boire ou pas. | ||||
|     {{else}} | ||||
|     Vous avez une envie irrépréssible de reprendre un verre | ||||
|     {{/if}} | ||||
|     {{/if}} | ||||
|   </span> | ||||
| </div> | ||||
| </div> | ||||
| {{/if}} | ||||
| {{#if (equals ethylismeEtape 'Endurance')}} | ||||
| <div> | ||||
|   <span> | ||||
|     Vous perdez {{enduranceLost}} points d'endurance. | ||||
|     {{#if perteVie}}<br/>Vous tombez inconscient et perdez un point de vie{{/if}} | ||||
|   </span> | ||||
| </div> | ||||
| {{/if}} | ||||
| {{#if (equals ethylismeEtape 'Volonte')}} | ||||
| <div> | ||||
|   <span> | ||||
|     Qui a bu boira : | ||||
|     {{{jetVolonteText}}} | ||||
|     <br/> | ||||
|     {{#if jetVolonteSuccess}} | ||||
|     Vous êtes libre de continuer à boire ou pas. | ||||
|     {{else}} | ||||
|     Vous avez une envie irrépressible de reprendre un verre. | ||||
|     {{/if}} | ||||
|   </span> | ||||
| </div> | ||||
| {{/if}} | ||||
| @@ -2,7 +2,7 @@ | ||||
|   <h2>Boire</h2> | ||||
|   <img class="chat-icon" src="systems/foundryvtt-reve-de-dragon/icons/objets/chope_gres.webp" alt="Chope d'alcool"/> | ||||
|   <div class="grid grid-2col"> | ||||
|     <label>Vie</label><label class="flexrow"> {{vieValue}}</label> | ||||
|     <label>Vie</label><label class="flexrow"> {{vie}}</label> | ||||
|     <label>Etat général</label><label class="flexrow">{{etat}}</label> | ||||
|     <label>Déjà bu</label><label class="flexrow">{{diffNbDoses}}</label> | ||||
|     <label>Force du breuvage</label> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user