Possibilité de poster de la nourriture

+ utilisation de l'Item de l'actor plutôt qu'une copie
+ extraction fonction pour diminuer la quantité d'un item
This commit is contained in:
Vincent Vandemeulebrouck
2021-04-11 18:47:00 +02:00
parent 7dc1724ab7
commit 6b31e81c72
3 changed files with 167 additions and 135 deletions

View File

@ -3,26 +3,28 @@
{{#if img}}
<img src="{{img}}" title="{{name}}" />
{{/if}}
<div class="card-content">{{{data.description}}}</div>
{{#each properties as |property p|}}
<span>{{{property}}}</span><br>
{{/each}}
<div>
{{#if postPrice}}
<b>Prix: </b> <span class="postPrice">{{postPrice}} Sols</span>
{{/if}}
{{#if postQuantity}}
<p class="card-content">{{{data.description}}}</p>
<p>
{{#each properties as |property p|}}
<span>{{{property}}}</span><br>
{{/each}}
{{#if (or postQuantity postPrice)}}
<span>
{{#if postQuantity}}
<b>Quantité: </b> <span class="postQuantity">{{postQuantity}}</span>
{{/if}}
</div>
{{#if finalPrice}}
<div>
<b>Prix Total: </b> <span class="postPrice">{{finalPrice}} Sols</span>
</div>
{{/if}}
{{/if}}
{{#if postPrice}}
<b>Prix: </b> <span class="postPrice">{{postPrice}} Sols</span><br>
{{/if}}
</span>
{{/if}}
{{#if finalPrice}}
<span>
<b>Prix Total: </b> <span class="postPrice">{{finalPrice}} Sols</span><br>
</span>
{{/if}}
</p>
{{#if hasPrice}}
<span class="chat-card-button-area">