Files
fvtt-celestopol/templates/armure.hbs
LeRatierBretonnier 5a8b151451 Nouveaux items Arme et Armure (DataModel + feuille + CSS)
Items:
- CelestopolWeapon : degats (0/1/2/X), portee (contact/courte/longue), description
- CelestopolArmure : protection (1-2), malus (0-2), description

Config:
- WEAPON_DAMAGE_TYPES et WEAPON_RANGE_TYPES ajoutés dans system.mjs
- Enregistrement des DataModels, sheets et templates dans fvtt-celestopol.mjs
- system.json : types weapon et armure avec htmlFields

UI:
- weapon.hbs : badge de dégâts avec hint, sélecteurs portée/dégâts
- armure.hbs : blocs protection + malus art-déco
- items.less : styles .weapon et .armure

i18n: clés Weapon.*, Armure.*, Sheet.weapon, Sheet.armure

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-29 17:03:23 +02:00

40 lines
1.4 KiB
Handlebars

<div class="item-sheet armure">
<header class="item-header">
<div class="item-portrait" data-action="editImage">
<img src="{{item.img}}" alt="{{item.name}}">
</div>
<div class="item-header-fields">
<input type="text" name="name" value="{{item.name}}" {{#unless isEditable}}disabled{{/unless}}>
</div>
</header>
<div class="armure-stats">
<div class="armure-stat-box">
<label>{{localize "CELESTOPOL.Armure.protection"}}</label>
<div class="armure-stat-value">
{{#if isEditable}}
<input type="number" name="system.protection" value="{{system.protection}}" min="1" max="2">
{{else}}
<span>{{system.protection}}</span>
{{/if}}
</div>
<div class="armure-stat-hint">{{localize "CELESTOPOL.Armure.protectionHint"}}</div>
</div>
<div class="armure-stat-box">
<label>{{localize "CELESTOPOL.Armure.malus"}}</label>
<div class="armure-stat-value">
{{#if isEditable}}
<input type="number" name="system.malus" value="{{system.malus}}" min="0" max="2">
{{else}}
<span>{{system.malus}}</span>
{{/if}}
</div>
<div class="armure-stat-hint">{{localize "CELESTOPOL.Armure.malusHint"}}</div>
</div>
</div>
<div class="form-group description-group">
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</div>
</div>