Basic actor sheet

This commit is contained in:
2024-12-29 23:09:27 +01:00
parent cffd6827fd
commit 79ce247f57
47 changed files with 739 additions and 526 deletions

View File

@ -1,59 +1,21 @@
{{log "roll-dialog" this}}
<div class="tenebris-roll-dialog">
{{#if isSave}}
<div class="lethalfantasy-roll-dialog">
{{#if isChallenge}}
<fieldSet>
<legend>{{localize "TENEBRIS.Label.sauvegarde"}}</legend>
<div class="dialog-save">{{formula}}</div>
<legend>{{localize "LETHALFANTASY.Label.challenge"}}</legend>
{{log this}}
<div class="dialog-save">{{upperCase rollTarget.rollKey}} : {{formula}}</div>
</fieldSet>
<fieldSet class="dialog-avantages">
<legend>{{localize "TENEBRIS.Roll.avantagesDesavantages"}}</legend>
<input
type="range"
name="avantages"
min="1"
max="5"
value="{{rangeAdvantage}}"
data-tooltip="Double désavantage - Désavantage - Normal - Avantage - Double avantage"
data-tooltip-direction="UP"
data-tooltip-class="tooltip-avantages"
/>
<input id="selectAvantages" name="selectAvantages" readonly value="{{rollAdvantage}}">
</fieldSet>
<div class="dialog-aide-gene">
<fieldSet>
<legend>{{localize "TENEBRIS.Roll.aide"}}</legend>
<select name="aide">
{{selectOptions choiceAide}}
</select>
</fieldSet>
<fieldSet>
<legend>{{localize "TENEBRIS.Roll.gene"}}</legend>
<select name="gene">
{{selectOptions choiceGene}}
</select>
</fieldSet>
</div>
<fieldSet class="dialog-modificateur">
<legend>{{localize "TENEBRIS.Roll.adversite"}}</legend>
<select name="modificateur" {{#if hasTarget}}data-tooltip="Cible : {{targetName}}" data-tooltip-direction="UP"{{/if}}>
{{selectOptions choiceModificateur selected=malus}}
<fieldSet class="dialog-modifier">
<legend>{{localize "LETHALFANTASY.Roll.modifier"}}</legend>
<select name="modifier" data-tooltip-direction="UP">
{{selectOptions choiceModifier selected=modifier}}
</select>
</fieldSet>
{{/if}}
{{#if (or isDamage isAttack)}}
<fieldSet>
<legend>{{localize "TENEBRIS.Label.degats"}}</legend>
<div class="dialog-damage">{{damageDice}} {{#if damageDiceLowered}}limités par les dégâts max à {{damageDiceFinal}} {{/if}}</div>
</fieldSet>
{{/if}}
{{#if isResource}}
<fieldSet>
<legend>{{localize "TENEBRIS.Label.ressource"}}</legend>
<div class="dialog-resource">{{formula}}</div>
</fieldSet>
{{/if}}
<fieldSet>
<legend>{{localize "TENEBRIS.Roll.visibilite"}}</legend>
<legend>{{localize "LETHALFANTASY.Roll.visibility"}}</legend>
<select name="visibility">
{{selectOptions rollModes selected=visibility}}
</select>