191 lines
6.2 KiB
Handlebars
191 lines
6.2 KiB
Handlebars
<div class="grid grid-2col">
|
|
<div>
|
|
<h4 class="align-center">{{ localize "VERMINE.self_control"}} :
|
|
{{@root.system.attributes.self_control.value}}/
|
|
{{@root.system.attributes.self_control.max}}
|
|
</h4>
|
|
|
|
<div class="flexrow">
|
|
{{#repeat 10 1}}
|
|
<div class="hexa
|
|
{{#iflteq @index @root.system.attributes.self_control.value }}
|
|
checked
|
|
{{/iflteq}}
|
|
{{#ifgt @index @root.system.attributes.self_control.max }}
|
|
unavailable
|
|
{{/ifgt}}">
|
|
{{#iflteq @index @root.system.attributes.self_control.max }}
|
|
<input type="radio" data-dtype="Number"
|
|
name="system.attributes.self_control.value"
|
|
value="{{@index}}" {{#ife @root.system.attributes.self_control.value
|
|
@index
|
|
}}checked="checked"{{/ife}}
|
|
class="
|
|
{{#iflteq @index @root.system.attributes.self_control.max }}
|
|
checked
|
|
{{/iflteq}}
|
|
|
|
" />
|
|
{{/iflteq}}
|
|
|
|
</div>
|
|
{{/repeat}}
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<h4 class="align-center">{{ localize "VERMINE.effort"}} :
|
|
{{@root.system.attributes.effort.value}}/
|
|
{{@root.system.attributes.effort.max}}
|
|
</h4>
|
|
|
|
<div class="flexrow">
|
|
{{#repeat 10 1}}
|
|
<div
|
|
class="hexa
|
|
{{#iflteq @index @root.system.attributes.effort.value }}
|
|
checked
|
|
{{/iflteq}}
|
|
{{#ifgt @index @root.system.attributes.effort.max }}
|
|
unavailable
|
|
{{/ifgt}}">
|
|
{{#iflteq @index @root.system.attributes.effort.max }}
|
|
<input type="radio" data-dtype="Number"
|
|
name="system.attributes.effort.value"
|
|
value="{{@index}}" {{#ife @root.system.attributes.effort.value
|
|
@index
|
|
}}checked="checked"{{/ife}}
|
|
class="
|
|
{{#iflteq @index @root.system.attributes.effort.value }}
|
|
checked
|
|
{{/iflteq}}
|
|
|
|
" />
|
|
{{/iflteq}}
|
|
|
|
</div>
|
|
{{#ife @index 1}}
|
|
<br />
|
|
{{/ife}}
|
|
{{/repeat}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h4 class="item-name effect-name flexrow">{{ localize
|
|
"VERMINE.wounds.name"}}</h4>
|
|
<ul class="unstyled">
|
|
<li class="row mdb">{{ localize 'VERMINE.wounds.light'}} <span
|
|
data-tooltip="seuil">({{
|
|
system.minorWound.threshold }})</span>
|
|
<div class="flexrow">
|
|
{{#repeat system.minorWound.max 1}}
|
|
<div class="hexa ability{{#iflteq @index @root.system.minorWound.value }}
|
|
checked
|
|
{{/iflteq}}">
|
|
<input type="radio" data-dtype="Number" name="system.minorWound.value"
|
|
value="{{@index}}" {{#ife @root.system.minorWound.value @index
|
|
}}checked="checked"{{/ife}} data-wound="minorWound"
|
|
class="
|
|
{{#iflteq @index @root.system.minorWound.value }}
|
|
checked
|
|
{{/iflteq}}
|
|
|
|
" />
|
|
</div>
|
|
{{/repeat}}
|
|
</div>
|
|
</li>
|
|
<li class="row mdb">{{ localize 'VERMINE.wounds.heavy'}}
|
|
<span>({{
|
|
system.majorWound.threshold }})</span>
|
|
<div class="flexrow">
|
|
{{#repeat system.majorWound.max 1}}
|
|
<div class="hexa ability{{#iflteq @index @root.system.majorWound.value }}
|
|
checked
|
|
{{/iflteq}}">
|
|
<input type="radio" data-dtype="Number" name="system.majorWound.value"
|
|
value="{{@index}}" {{#ife @root.system.majorWound.value @index
|
|
}}checked="checked"{{/ife}} data-wound="majorWound"
|
|
class="
|
|
{{#iflteq @index @root.system.majorWound.value }}
|
|
checked
|
|
{{/iflteq}}
|
|
|
|
" />
|
|
</div>
|
|
{{/repeat}}
|
|
|
|
</div>
|
|
</li>
|
|
<li class="row mdb">{{ localize 'VERMINE.wounds.deadly'}}
|
|
<span>({{system.deadlyWound.threshold }})</span>
|
|
<div class="flexrow">
|
|
{{#repeat system.deadlyWound.max 1}}
|
|
<div class="hexa ability{{#iflteq @index @root.system.deadlyWound.value }}
|
|
checked
|
|
{{/iflteq}}">
|
|
<input type="radio" data-dtype="Number" name="system.deadlyWound.value"
|
|
value="{{@index}}" {{#ife @root.system.deadlyWound.value @index
|
|
}}checked="checked"{{/ife}} data-wound="deadlyWound"
|
|
class="
|
|
{{#iflteq @index @root.system.deadlyWound.value }}
|
|
checked
|
|
{{/iflteq}}
|
|
|
|
" />
|
|
</div>
|
|
{{/repeat}}
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
<h4 class="item-name effect-name flexrow">{{ localize "UI.effects.name"}}</h4>
|
|
<ol class="items-list effects-list">
|
|
{{#each effects as |section sid|}}
|
|
<li class="items-header flexrow" data-effect-type="{{section.type}}">
|
|
<p class="item-name effect-name flexrow">{{#if (eq section.type
|
|
'temporary')}}
|
|
{{localize "UI.effects.temporary" }}
|
|
{{else if (eq section.type 'passive')}}
|
|
{{localize "UI.effects.passive" }}
|
|
{{else if (eq section.type 'inactive')}}
|
|
{{localize "UI.effects.inactive" }}
|
|
{{/if}}
|
|
</p>
|
|
<div class="effect-source">{{localize 'UI.source'}}</div>
|
|
<div class="effect-source">{{localize 'UI.duration'}}</div>
|
|
<div class="item-controls effect-controls flexrow">
|
|
<a class="effect-control" data-action="create"
|
|
title="{{localize 'UI.effect_create'}}">
|
|
<i class="fas fa-plus"></i> {{localize "UI.add"}}
|
|
</a>
|
|
</div>
|
|
</li>
|
|
|
|
<ol class="item-list">
|
|
{{#each section.effects as |effect|}}
|
|
<li class="item effect flexrow" data-effect-id="{{effect.id}}">
|
|
<div class="item-name effect-name">
|
|
<a class="effect-control flexrow flex-group-center items-center"
|
|
data-action="edit" title="{{localize 'UI.effect_edit'}}">
|
|
<img class="item-image" src="{{effect.icon}}" />
|
|
<span>{{effect.label}}</span>
|
|
</a>
|
|
</div>
|
|
<div class="effect-source">{{effect.sourceName}}</div>
|
|
<div class="effect-duration">{{effect.duration.label}}</div>
|
|
<div class="item-controls effect-controls flexrow">
|
|
<a class="effect-control" data-action="toggle"
|
|
title="{{localize 'UI.effect_toggle'}}">
|
|
<i
|
|
class="fas {{#if effect.disabled}}fa-check{{else}}fa-times{{/if}}"></i>
|
|
</a>
|
|
<a class="effect-control" data-action="delete"
|
|
title="{{localize 'UI.effect_delete'}}">
|
|
<i class="fas fa-trash"></i>
|
|
</a>
|
|
</div>
|
|
</li>
|
|
{{/each}}
|
|
</ol>
|
|
{{/each}}
|
|
</ol>
|