Corrections sur factions, aspects, degats et fiches PNJs

This commit is contained in:
2026-04-11 15:02:46 +02:00
parent 36516c3b08
commit 3358dea306
44 changed files with 2308 additions and 148 deletions

View File

@@ -45,10 +45,18 @@
</div>
<div class="identity-field">
<label>{{localize "CELESTOPOL.Actor.faction"}}</label>
{{#if isEditMode}}
<input type="text" name="system.faction" value="{{system.faction}}" placeholder="{{localize 'CELESTOPOL.Actor.faction'}}">
{{#if isEditMode}}
<select name="system.faction">
<option value="" {{#unless selectedPrimaryFactionId}}{{#unless legacyPrimaryFactionValue}}selected{{/unless}}{{/unless}}>— {{localize "CELESTOPOL.NPC.factionNone"}} —</option>
{{#if legacyPrimaryFactionValue}}
<option value="{{legacyPrimaryFactionValue}}" selected>{{localize "CELESTOPOL.FactionAspect.legacyFactionValue"}} : {{legacyPrimaryFactionValue}}</option>
{{/if}}
{{#each factions as |faction key|}}
<option value="{{key}}" {{#if (eq key ../selectedPrimaryFactionId)}}selected{{/if}}>{{localize faction.label}}</option>
{{/each}}
</select>
{{else}}
<span>{{system.faction}}</span>
<span>{{primaryFactionLabel}}</span>
{{/if}}
</div>
</div>
@@ -92,6 +100,11 @@
</div>
<div class="header-buttons">
{{#if isGM}}
<a class="manage-faction-aspects-btn" data-action="manageFactionAspects" title="{{localize 'CELESTOPOL.FactionAspect.managerTitle'}}">
<i class="fa-solid fa-people-group"></i>
</a>
{{/if}}
<a class="moon-standalone-btn" data-action="rollMoonDie" title="{{localize 'CELESTOPOL.Moon.standaloneTitle'}}">
🌙
</a>