Affichage des armures
Afficher la liste des armures avec les caractéristiques
This commit is contained in:
parent
3739519610
commit
ab365e9780
@ -339,6 +339,7 @@ export class RdDStatBlockParser {
|
||||
|
||||
static parsePersonnage(statString, actorData) {
|
||||
actorData.reve.seuil.value = actorData.carac.reve.value
|
||||
actorData.compteurs.chance.value = actorData.carac.chance.value
|
||||
|
||||
const reveActuel = XRegExp.exec(statString, XRegExp("Rêve actuel\\s+(?<value>\\d+)", 'giu'))
|
||||
actorData.reve.reve.value = reveActuel?.value ? Number(reveActuel.value) : actorData.reve.seuil.value
|
||||
|
@ -122,6 +122,7 @@ export class RdDUtility {
|
||||
'systems/foundryvtt-reve-de-dragon/templates/actor/header-hautreve.html',
|
||||
'systems/foundryvtt-reve-de-dragon/templates/actor/archetype.hbs',
|
||||
'systems/foundryvtt-reve-de-dragon/templates/actor/vue-detaillee.html',
|
||||
'systems/foundryvtt-reve-de-dragon/templates/actor/armures.hbs',
|
||||
'systems/foundryvtt-reve-de-dragon/templates/actor/carac-main.html',
|
||||
'systems/foundryvtt-reve-de-dragon/templates/actor/carac-derivee.html',
|
||||
'systems/foundryvtt-reve-de-dragon/templates/actor/carac-creature.html',
|
||||
|
@ -459,7 +459,7 @@
|
||||
"chance": {
|
||||
"value": 0,
|
||||
"max": 0,
|
||||
"label": "Chance",
|
||||
"label": "Chance actuelle",
|
||||
"isInput": true
|
||||
},
|
||||
"destinee": {
|
||||
|
25
templates/actor/armures.hbs
Normal file
25
templates/actor/armures.hbs
Normal file
@ -0,0 +1,25 @@
|
||||
{{#if armures}}
|
||||
{{#each armures as |armure|}}
|
||||
<li class="caracteristique item flexrow list-item" data-item-id="{{armure.id}}">
|
||||
<span class="flex-grow">
|
||||
<img class="sheet-competence-img subacteur-open" src="{{armure.img}}" data-tooltip="{{armure.name}}"/>
|
||||
<a class="item-equip" data-tooltip="Equiper">{{#if armure.system.equipe}}<i class="fas fa-hand-rock"></i>{{else}}<i class="far fa-hand-paper"></i>{{/if}}</a>
|
||||
<a>{{armure.name}}</a>
|
||||
{{#if armure.system.malus}}
|
||||
<span class="derivee-value">({{armure.system.malus}})</span>
|
||||
{{/if}}
|
||||
</span>
|
||||
<input class="derivee-value" type="text" disabled value="{{armure.system.protection}}"/>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#if (or options.isGM (gt system.attributs.protection.value 0))}}
|
||||
<li class="caracteristique flexrow list-item">
|
||||
<label for="system.attributs.protection.value" >Protection naturelle</label>
|
||||
<input class="derivee-value" type="number" {{#unless options.isGM}}disabled{{/unless}} name="system.attributs.protection.value" value="{{system.attributs.protection.value}}" data-dtype="number"/>
|
||||
</li>
|
||||
{{/if}}
|
||||
<li class="caracteristique flexrow list-item" >
|
||||
<label class="derivee-label">Malus armure</label>
|
||||
<input class="derivee-value" type="number" disabled value="{{calc.malusArmure}}" data-dtype="number"/>
|
||||
</li>
|
@ -5,15 +5,23 @@
|
||||
<label class="derivee-value"></label>
|
||||
</li>
|
||||
<br>
|
||||
<li class="caracteristique flexrow list-item">
|
||||
<label class="flexrow derivee-label">{{system.compteurs.stress.label}}
|
||||
<a class="stress-test" data-tooltip="Transformer le stress"><i class="fa-regular fa-moon"></i></a>
|
||||
</label>
|
||||
<input class="derivee-value" type="number" name="system.compteurs.stress.value" value="{{system.compteurs.stress.value}}" data-dtype="number"/>
|
||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/armures.hbs"}}
|
||||
<br>
|
||||
<li class="caracteristique flexrow list-item" >
|
||||
<label class="derivee-label">Seuil enc.</label>
|
||||
<input class="derivee-value" type="number" disabled value="{{system.attributs.encombrement.value}}"/>
|
||||
</li>
|
||||
<li class="caracteristique flexrow list-item" >
|
||||
<label class="derivee-label">Bonus dom.</label>
|
||||
<input class="derivee-value" type="text" disabled value="{{plusMoins system.attributs.plusdom.value}}"/>
|
||||
</li>
|
||||
<li class="caracteristique flexrow list-item" >
|
||||
<label class="derivee-label" name="system.attributs.sconst.label">{{system.attributs.sconst.label}}</label>
|
||||
<input class="derivee-value" type="number" disabled value="{{system.attributs.sconst.value}}"/>
|
||||
</li>
|
||||
<br>
|
||||
<li class="caracteristique flexrow list-item">
|
||||
<label class="derivee-label">{{system.compteurs.moral.label}}
|
||||
|
||||
<span>
|
||||
<a class="flex-shrink moral-malheureux" data-tooltip="Jet de moral situation malheureuse"><i class="fa-regular fa-face-frown"></i></a>
|
||||
<a class="flex-shrink moral-neutre" data-tooltip="Jet de moral situation neutre"><i class="fa-regular fa-face-meh"></i></a>
|
||||
@ -38,6 +46,12 @@
|
||||
<label class="derivee-label">voyage</label>
|
||||
<input class="derivee-value" type="number" name="system.compteurs.voyage.value" value="{{system.compteurs.voyage.value}}" data-dtype="number"/>
|
||||
</li>
|
||||
<li class="caracteristique flexrow list-item">
|
||||
<label class="flexrow derivee-label">{{system.compteurs.stress.label}}
|
||||
<a class="stress-test" data-tooltip="Transformer le stress"><i class="fa-regular fa-moon"></i></a>
|
||||
</label>
|
||||
<input class="derivee-value" type="number" name="system.compteurs.stress.value" value="{{system.compteurs.stress.value}}" data-dtype="number"/>
|
||||
</li>
|
||||
|
||||
<br>
|
||||
<li class="caracteristique flexrow list-item">
|
||||
@ -58,27 +72,5 @@
|
||||
{{selectOptions (RDD_CONFIG 'niveauEthylisme') selected=system.compteurs.ethylisme.value valueAttr="value" nameAttr="value" labelAttr="label"}}
|
||||
</select>
|
||||
</li>
|
||||
|
||||
<br>
|
||||
<li class="caracteristique flexrow list-item" >
|
||||
<label class="carac-label">Seuil enc.</label>
|
||||
<input class="derivee-value" type="number" disabled value="{{system.attributs.encombrement.value}}"/>
|
||||
</li>
|
||||
<li class="caracteristique flexrow list-item" >
|
||||
<label class="carac-label">Bonus dom.</label>
|
||||
<input class="derivee-value" type="text" disabled value="{{plusMoins system.attributs.plusdom.value}}"/>
|
||||
</li>
|
||||
<li class="caracteristique flexrow list-item" >
|
||||
<label class="carac-label">Malus armure</label>
|
||||
<input class="derivee-value" type="number" disabled value="{{calc.malusArmure}}" data-dtype="number"/>
|
||||
</li>
|
||||
<li class="caracteristique flexrow list-item">
|
||||
<label class="carac-label" for="system.attributs.protection.value" >Protection naturelle</label>
|
||||
<input class="derivee-value" type="number" {{#unless options.isGM}}disabled{{/unless}} name="system.attributs.protection.value" value="{{system.attributs.protection.value}}" data-dtype="number"/>
|
||||
</li>
|
||||
<li class="caracteristique flexrow list-item" >
|
||||
<label class="carac-label" name="system.attributs.sconst.label">{{system.attributs.sconst.label}}</label>
|
||||
<input class="derivee-value" type="number" disabled value="{{system.attributs.sconst.value}}"/>
|
||||
</li>
|
||||
<br>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user