#1 : Edition des champs position TMR et points de Refoulement si MJ

This commit is contained in:
sladecraven 2020-11-04 18:00:42 +01:00
parent ed16553ace
commit bb1c2b8e89
4 changed files with 117 additions and 103 deletions

View File

@ -116,6 +116,7 @@ export class RdDActorSheet extends ActorSheet {
data.data.ombres = this._checkNull(data.itemsByType['ombre']); data.data.ombres = this._checkNull(data.itemsByType['ombre']);
data.data.tetes = this._checkNull(data.itemsByType['tete']); data.data.tetes = this._checkNull(data.itemsByType['tete']);
data.data.competenceByCategory = data.competenceByCategory; data.data.competenceByCategory = data.competenceByCategory;
data.data.isGM = game.user.isGM;
return data; return data;
} }

View File

@ -2,10 +2,10 @@
"name": "foundryvtt-reve-de-dragon", "name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon", "title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT", "description": "Rêve de Dragon RPG for FoundryVTT",
"version": "0.9.17", "version": "0.9.20",
"minimumCoreVersion": "0.6.0", "minimumCoreVersion": "0.6.0",
"compatibleCoreVersion": "0.6.6", "compatibleCoreVersion": "0.6.6",
"templateVersion": 37, "templateVersion": 38,
"author": "LeRatierBretonnien", "author": "LeRatierBretonnien",
"esmodules": [ "module/rdd-main.js", "module/hook-renderChatLog.js" ], "esmodules": [ "module/rdd-main.js", "module/hook-renderChatLog.js" ],
"styles": ["styles/simple.css"], "styles": ["styles/simple.css"],

View File

@ -7,6 +7,7 @@
}, },
"background": { "background": {
"biographie": "Histoire personnelle...", "biographie": "Histoire personnelle...",
"notes": "Notes",
"yeux": "", "yeux": "",
"cheveux": "", "cheveux": "",
"poids": "", "poids": "",

View File

@ -43,7 +43,6 @@
<a class="item" data-tab="blessurescompteurs">Blessures/Compteurs</a> <a class="item" data-tab="blessurescompteurs">Blessures/Compteurs</a>
<a class="item" data-tab="hautreve">Haut-Rêve</a> <a class="item" data-tab="hautreve">Haut-Rêve</a>
<a class="item" data-tab="items">Equipement</a> <a class="item" data-tab="items">Equipement</a>
<a class="item" data-tab="queuesouffle">Queues, Souffles et Têtes</a>
<a class="item" data-tab="description">Description</a> <a class="item" data-tab="description">Description</a>
</nav> </nav>
@ -275,6 +274,7 @@
{{!-- Compteurs/Blessures Tab --}} {{!-- Compteurs/Blessures Tab --}}
<div class="tab blessurescompteurs" data-group="primary" data-tab="blessurescompteurs"> <div class="tab blessurescompteurs" data-group="primary" data-tab="blessurescompteurs">
<div class="flex-group-left flexrow">
<ol class="item-list"> <ol class="item-list">
{{#each data.compteurs as |compteur key|}} {{#each data.compteurs as |compteur key|}}
<li class="item flexrow""> <li class="item flexrow"">
@ -293,6 +293,8 @@
</li> </li>
{{/each}} {{/each}}
</ol> </ol>
</div>
<div class="flex-group-left flexcol competence-column">
<span class="blessures-title">Blessures Légeres :</span> <span class="blessures-title">Blessures Légeres :</span>
<div class="blessure-data"> <div class="blessure-data">
{{#each data.blessures.legeres.liste as |bless key|}} {{#each data.blessures.legeres.liste as |bless key|}}
@ -331,66 +333,6 @@
{{/each}} {{/each}}
</div> </div>
</div> </div>
{{!-- hautreve Tab --}}
<div class="tab hautreve" data-group="primary" data-tab="hautreve" style="height:200px">
<div>
<span class="monte-tmr"><strong><a>Monter Normale dans les Terres Medianes !</a></strong></span>
</div>
<div>
<span class="monte-tmr-rapide"><strong><a>Monter Accélérée dans les Terres Medianes !</a></strong></span>
</div>
<div>
<ol class="item-list">
<li class="item flexrow" >Points de Rêve actuels : <input class="pointsreve-value flexrow" type="text" name="data.reve.reve.value" value="{{data.reve.reve.value}}" data-dtype="Number"/></li>
<li class="item flexrow" >Position en TMR : {{data.reve.tmrpos.coord}} </li>
<li class="item flexrow" >Refoulement : {{data.reve.refoulement.value}} </li>
</ol>
</div>
<div>
<span><strong>Sorts:</strong></span>
<ol class="item-list">
{{#each data.sorts as |mysort key|}}
<li class="item flexrow" data-attribute={{key}}>
<span class="sort-label"> <a data-id="{{mysort._id}}">{{mysort.name}}</a></span> <span>{{mysort.data.draconic}} - {{mysort.data.difficulte}}</span>
</li>
{{/each}}
</ol>
</div>
</div>
{{!-- Equipment Tab --}}
<div class="tab items" data-group="primary" data-tab="items">
<ol class="item-list">
{{#each data.armes_seules as |item id|}}
<li class="item flexrow" data-item-id="{{item._id}}">
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
<h4 class="item-name">{{item.name}}</h4>
<div class="item-controls">
<a class="item-control item-equip" title="Equiper">{{#if item.data.equipe}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
<a class="item-control item-edit" title="Editer"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>
<ol class="item-list">
{{#each data.armures as |item id|}}
<li class="item flexrow" data-item-id="{{item._id}}">
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
<h4 class="item-name">{{item.name}}</h4>
<div class="item-controls">
<a class="item-control item-equip" title="Equiper">{{#if item.data.equipe}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
<a class="item-control item-edit" title="Editer"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>
</div>
{{!-- queue/tete/souffle Tab --}}
<div class="tab queuesouffle" data-group="primary" data-tab="queuesouffle" style="height:200px">
<div> <div>
<span><strong>Queues:</strong></span> <span><strong>Queues:</strong></span>
{{#each data.queues as |queue key|}} {{#each data.queues as |queue key|}}
@ -437,6 +379,68 @@
</div> </div>
</div> </div>
{{!-- hautreve Tab --}}
<div class="tab hautreve" data-group="primary" data-tab="hautreve" style="height:200px">
<div>
<span class="monte-tmr"><strong><a>Monter Normale dans les Terres Medianes !</a></strong></span>
</div>
<div>
<span class="monte-tmr-rapide"><strong><a>Monter Accélérée dans les Terres Medianes !</a></strong></span>
</div>
<div>
<ol class="item-list">
<li class="item flexrow" >Points de Rêve actuels : <input class="pointsreve-value flexrow" type="text" name="data.reve.reve.value" value="{{data.reve.reve.value}}" data-dtype="Number"/></li>
{{#if data.isGM}}
<li class="item flexrow" >Position en TMR : <input class="description-value flexrow" type="text" name="data.reve.tmrpos.coord" value="{{data.reve.tmrpos.coord}}" data-dtype="String"/></li>
<li class="item flexrow" >Refoulement : <input class="description-value flexrow" type="text" name="data.reve.refoulement.value" value="{{data.reve.refoulement.value}}" data-dtype="Number"/></li>
{{else}}
<li class="item flexrow" >Position en TMR : {{data.reve.tmrpos.coord}} </li>
<li class="item flexrow" >Refoulement : {{data.reve.refoulement.value}} </li>
{{/if}}
</ol>
</div>
<div>
<span><strong>Sorts:</strong></span>
<ol class="item-list">
{{#each data.sorts as |mysort key|}}
<li class="item flexrow" data-attribute={{key}}>
<span class="sort-label"> <a data-id="{{mysort._id}}">{{mysort.name}}</a></span> <span>{{mysort.data.draconic}} - {{mysort.data.difficulte}}</span>
</li>
{{/each}}
</ol>
</div>
</div>
{{!-- Equipment Tab --}}
<div class="tab items" data-group="primary" data-tab="items">
<ol class="item-list">
{{#each data.armes_seules as |item id|}}
<li class="item flexrow" data-item-id="{{item._id}}">
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
<h4 class="item-name">{{item.name}}</h4>
<div class="item-controls">
<a class="item-control item-equip" title="Equiper">{{#if item.data.equipe}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
<a class="item-control item-edit" title="Editer"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>
<ol class="item-list">
{{#each data.armures as |item id|}}
<li class="item flexrow" data-item-id="{{item._id}}">
<img class="sheet-competence-img" src="{{item.img}}" title="{{item.name}}"/>
<h4 class="item-name">{{item.name}}</h4>
<div class="item-controls">
<a class="item-control item-equip" title="Equiper">{{#if item.data.equipe}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
<a class="item-control item-edit" title="Editer"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>
</div>
{{!-- Biography Tab --}} {{!-- Biography Tab --}}
<div class="tab biography" data-group="primary" data-tab="description"> <div class="tab biography" data-group="primary" data-tab="description">
<div class="grid grid-2col"> <div class="grid grid-2col">
@ -456,14 +460,22 @@
<li class="item flexrow" ><span class="description-label">Beauté : </span><input class="description-value flexrow" type="text" name="data.beaute" value="{{data.beaute}}" data-dtype="String"/></li> <li class="item flexrow" ><span class="description-label">Beauté : </span><input class="description-value flexrow" type="text" name="data.beaute" value="{{data.beaute}}" data-dtype="String"/></li>
<li class="item flexrow" ><span class="description-label">Main directrice : </span><input class="description-value flexrow" type="text" name="data.main" value="{{data.main}}" data-dtype="String"/></li> <li class="item flexrow" ><span class="description-label">Main directrice : </span><input class="description-value flexrow" type="text" name="data.main" value="{{data.main}}" data-dtype="String"/></li>
</ol> </ol>
</div> </div>
</div> </div>
<div class="flexcol flex-group-left">
<span><label>Biographie : </label></span>
<div class="form-group" style="height:200px"> <div class="form-group" style="height:200px">
<div class="form-group editor" style="height:400px !important; min-height: 400px !important;"> <div class="form-group editor" style="height:400px !important; min-height: 400px !important;">
{{editor content=data.biographie target="data.biographie" button=true owner=owner editable=editable}} {{editor content=data.biographie target="data.biographie" button=true owner=owner editable=editable}}
</div> </div>
</div> </div>
<span><label>Notes : </label></span>
<div class="form-group" style="height:200px">
<div class="form-group editor" style="height:400px !important; min-height: 400px !important;">
{{editor content=data.notes target="data.notes" button=true owner=owner editable=editable}}
</div>
</div>
</div>
</div> </div>
</section> </section>