feat: implémentation complète du système Célestopol 1922 pour FoundryVTT v13
- DataModels (character, npc, anomaly, aspect, attribute, equipment) - ApplicationV2 sheets (character 5 tabs, npc 3 tabs, 4 item sheets) - DialogV2 pour les jets de dés avec phase de lune - Templates Handlebars complets (fiches PJ/PNJ, items, jet, chat) - Styles LESS → CSS compilé (thème vert foncé / orange CopaseticNF) - i18n fr.json complet (clés CELESTOPOL.*) - Point d'entrée fvtt-celestopol.mjs avec hooks init/ready - Assets : polices CopaseticNF, images UI, icônes items - Mise à jour copilot-instructions.md avec l'architecture réelle Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
63
templates/character-factions.hbs
Normal file
63
templates/character-factions.hbs
Normal file
@@ -0,0 +1,63 @@
|
||||
<div class="tab factions" data-group="sheet" data-tab="factions">
|
||||
<table class="factions-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{localize "CELESTOPOL.Faction.label"}}</th>
|
||||
<th>{{localize "CELESTOPOL.Faction.score"}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each factions as |faction factionId|}}
|
||||
<tr class="faction-row">
|
||||
<td class="faction-name">{{localize faction.label}}</td>
|
||||
<td class="faction-value">
|
||||
{{#if ../isEditMode}}
|
||||
<input type="number" name="system.factions.{{factionId}}.value"
|
||||
value="{{lookup ../system.factions factionId 'value'}}" min="0">
|
||||
{{else}}
|
||||
<span>{{lookup ../system.factions factionId 'value'}}</span>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
|
||||
{{!-- Factions personnalisées --}}
|
||||
<tr class="faction-row custom">
|
||||
<td>
|
||||
{{#if isEditMode}}
|
||||
<input type="text" name="system.factions.perso1.label"
|
||||
value="{{system.factions.perso1.label}}"
|
||||
placeholder="{{localize 'CELESTOPOL.Faction.custom'}}">
|
||||
{{else}}
|
||||
<span>{{#if system.factions.perso1.label}}{{system.factions.perso1.label}}{{else}}—{{/if}}</span>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
{{#if isEditMode}}
|
||||
<input type="number" name="system.factions.perso1.value" value="{{system.factions.perso1.value}}" min="0">
|
||||
{{else}}
|
||||
<span>{{system.factions.perso1.value}}</span>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="faction-row custom">
|
||||
<td>
|
||||
{{#if isEditMode}}
|
||||
<input type="text" name="system.factions.perso2.label"
|
||||
value="{{system.factions.perso2.label}}"
|
||||
placeholder="{{localize 'CELESTOPOL.Faction.custom'}}">
|
||||
{{else}}
|
||||
<span>{{#if system.factions.perso2.label}}{{system.factions.perso2.label}}{{else}}—{{/if}}</span>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
{{#if isEditMode}}
|
||||
<input type="number" name="system.factions.perso2.value" value="{{system.factions.perso2.value}}" min="0">
|
||||
{{else}}
|
||||
<span>{{system.factions.perso2.value}}</span>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user