Skip to content

Commit

Permalink
feat(actor agent sheet): replaced the conditions of progress fields a…
Browse files Browse the repository at this point in the history
…nd enrich description
  • Loading branch information
SouOWendel committed Nov 21, 2024
1 parent eb2db4b commit 3ff4c96
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions templates/actor/actor-agent-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,29 @@ <h1 class="charname">
<input name="name" type="text" value="{{actor.name}}" placeholder="Name" />
</h1>
<div class="resource flex-group-center progress">
{{#ifEquals system.class "survivor"}}
{{#if isSurvivor}}
<label for="system.stage.value" class="resource-label"> {{localize 'op.stage'}} </label>
<div class="resource-content flexrow flex-center flex-between">
{{numberInputFVTT system.stage.value name="system.stage.value" step=1 min=0 max=5}}
</div>
{{/ifEquals}}
{{#ifInequals system.class "survivor"}}
<label for="system.NEX.value" class="resource-label"> {{localize 'op.NEX'}} </label>
<div class="resource-content flexrow flex-center flex-between">
{{numberInputFVTT system.NEX.value name="system.NEX.value" step=1 min=0 max=99}}
</div>
{{/ifInequals}}
{{else}}
{{#if progressRuleIsNEX}}
<label for="system.NEX.value" class="resource-label"> {{localize 'op.NEX'}} </label>
<div class="resource-content flexrow flex-center flex-between">
{{numberInputFVTT system.NEX.value name="system.NEX.value" step=1 min=0 max=99}}
</div>
{{/if}}
{{#if progressRuleIsNivel}}
<label for="system.nivel.value" class="resource-label"> {{localize 'op.nivel'}} </label>
<div class="resource-content flexrow flex-center flex-between">
{{numberInputFVTT system.nivel.value name="system.nivel.value" step=1 min=0 max=20}}
</div>
<label for="system.NEX.value" class="resource-label"> {{localize 'op.NEX'}} </label>
<div class="resource-content flexrow flex-center flex-between">
{{numberInputFVTT system.NEX.value name="system.NEX.value" step=1 min=0 max=99}}
</div>
{{/if}}
{{/if}}
</div>
</div>
<div class="header-fields">
Expand Down Expand Up @@ -236,12 +247,12 @@ <h1 class="charname">
<div class="content">
<fieldset class="bio-desc">
<legend>{{localize "op.description"}}</legend>
{{editor system.biography target="system.biography" rollData=rollData button=true owner=owner
{{editor biographyHTML target="system.biography" rollData=rollData button=true owner=owner
editable=editable}}
</fieldset>
<fieldset class="bio-goals">
<legend>{{localize "op.goals"}}</legend>
{{editor system.goals target="system.goals" rollData=rollData button=true owner=owner editable=editable}}
{{editor goalsHTML target="system.goals" rollData=rollData button=true owner=owner editable=editable}}
</fieldset>
</div>
</div>
Expand Down

0 comments on commit 3ff4c96

Please sign in to comment.