#30 : Affichage des sorts en réserve dans l'onglet haut-revant

This commit is contained in:
sladecraven 2020-11-18 08:42:03 +01:00
parent 162bd6f677
commit 836522fbd9
3 changed files with 13 additions and 2 deletions

View File

@ -130,7 +130,8 @@ export class RdDActorSheet extends ActorSheet {
data.data.ombres = this._checkNull(data.itemsByType['ombre']);
data.data.tetes = this._checkNull(data.itemsByType['tete']);
data.data.objets = data.data.conteneurs.concat(data.data.materiel).concat(data.data.armes).concat(data.data.armures).concat(data.data.munitions).concat(data.data.livres).concat(data.data.potions).concat(data.data.herbes).concat(data.data.ingredients);
data.data.sortReserve = data.data.reve.reserve.list;
this.objetVersConteneur = {}; // Table de hash locale pour recupération rapide du conteneur parent (si existant)
// Attribution des objets aux conteneurs
for (let conteneur of data.data.conteneurs) {

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT",
"version": "0.9.56",
"version": "0.9.57",
"minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.6",
"templateVersion": 47,

View File

@ -452,6 +452,16 @@
{{/each}}
</ol>
</div>
<div>
<span><strong>Sorts en Réserve:</strong></span>
<ol class="item-list">
{{#each data.sortReserve as |reserve key|}}
<li class="item flexrow" data-item-id="{{mysort._id}}" data-attribute="{{key}}">
<span class="sort-label"> {{reserve.sort.name}} - {{reserve.coord}}</span>
</li>
{{/each}}
</ol>
</div>
</div>
{{!-- Equipment Tab --}}