Files
vermine2047/templates/actor/appv2/creature-combat.hbs
T
uberwald 8d8428cad3 feat: gérer les armes des créatures (morsure, griffes, piqûre…)
- gestion des armes dans l'onglet Combat des créatures (équipement + liste)
- dégâts de l'arme équipée utilisés à la place de computed.damage (+ Vigueur+)
- correction du libellé Vigueur+ (ADVERSITY.vigor au lieu de VERMINE.vigor)
2026-08-04 14:25:27 +02:00

84 lines
3.4 KiB
Handlebars

<div class="tab combat sheet-part {{#if @root.tabs.combat.active}}active{{/if}}" data-group="sheet" data-tab="combat">
{{> "systems/vermine2047/templates/actor/parts/actor-equipped-gear.hbs"}}
<div class="grid grid-2col">
{{!-- Computed Values --}}
<div>
<h4 class="align-center">{{ localize 'VERMINE.computed_values' }}</h4>
<div class="stats-grid">
<div class="stat">
<label>{{ localize 'VERMINE.total_attack' }}:</label>
<span>{{ system.computed.attack }}</span>
</div>
<div class="stat">
<label>{{ localize 'ADVERSITY.damage' }}:</label>
<span>{{ system.computed.damage }}</span>
</div>
<div class="stat">
<label>{{ localize 'ADVERSITY.vigor' }}:</label>
<span>{{ system.computed.vigor }}</span>
</div>
<div class="stat">
<label>{{ localize 'ADVERSITY.reaction' }}:</label>
<span>{{ system.computed.reaction }}</span>
</div>
<div class="stat">
<label>{{ localize 'ADVERSITY.pools' }}:</label>
<span>{{ system.computed.pools }}</span>
</div>
<div class="stat">
<label>{{ localize 'ADVERSITY.protection' }}:</label>
<span>{{ system.computed.protection }}</span>
</div>
</div>
</div>
{{!-- Wounds --}}
<div>
<h4 class="item-name effect-name flexrow">{{ localize "VERMINE.wounds.name" }}</h4>
<ul class="unstyled">
<li class="row mdb">
{{ localize 'VERMINE.wounds.light' }} ({{ system.minorWound.threshold }}D)
{{#repeat system.minorWound.max }}
<input type="radio" data-dtype="Number" name="system.minorWound.value"
value="{{this}}" data-action="clickRadio" data-wound="minorWound"
{{#ife @root.system.minorWound.value this }}checked="checked"{{/ife}}
class="{{#iflteq this @root.system.minorWound.value }}checked{{/iflteq}}"
/>
{{/repeat}}
</li>
<li class="row mdb">
{{ localize 'VERMINE.wounds.heavy' }} ({{ system.majorWound.threshold }}D)
{{#repeat system.majorWound.max }}
<input type="radio" name="system.majorWound.value" value="{{this}}" data-action="clickRadio" data-wound="majorWound"
{{#ife @root.system.majorWound.value this }}checked="checked"{{/ife}}
class="{{#iflteq this @root.system.majorWound.value }}checked{{/iflteq}}"
/>
{{/repeat}}
</li>
<li class="row mdb">
{{ localize 'VERMINE.wounds.deadly' }} ({{ system.deadlyWound.threshold }}D)
{{#repeat system.deadlyWound.max }}
<input type="radio" name="system.deadlyWound.value" value="{{this}}" data-action="clickRadio" data-wound="deadlyWound"
{{#ife @root.system.deadlyWound.value this }}checked="checked"{{/ife}}
class="{{#iflteq this @root.system.deadlyWound.value }}checked{{/iflteq}}"
/>
{{/repeat}}
</li>
</ul>
</div>
</div>
{{!-- Armes --}}
<div class="grid-span-2 weapons">
<h4 class="item-name flexrow">{{ localize 'ITEMS.weapons' }}</h4>
{{> "systems/vermine2047/templates/actor/parts/actor-weapons.hbs"}}
</div>
{{!-- Equipment --}}
<div class="grid-span-2">
<h4>{{ localize 'VERMINE.gear' }}</h4>
{{editor system.equipment.description target="system.equipment.description" button=true owner=owner editable=editable}}
</div>
</div>