Fix as per CSV sheet tracking + creature explanation

This commit is contained in:
2026-05-17 17:43:33 +02:00
parent a572c66678
commit 374854cc8b
99 changed files with 2716 additions and 464 deletions
+78 -56
View File
@@ -42,69 +42,91 @@
</div>
</div>
<div class="ability-grid">
{{#each abilityList}}
<div class="ability-card">
<label class="rollable ability-label" data-roll-type="ability" data-ability-id="{{id}}">{{label}}</label>
<div class="ability-score">
<select class="numeric-input ability-input" name="system.abilities.{{id}}.value">
{{#each @root.selectOptions.abilityValues}}
<option value="{{value}}" {{#if (isEqual ../value value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
</div>
{{/each}}
<!-- Type + Number row -->
<div class="creature-meta-row">
<div class="creature-type-group">
<span class="creature-meta-label">{{localize "MGNE.Creature.Type"}}</span>
{{#each creatureTypes}}
<label class="creature-type-checkbox">
<input type="checkbox" name="system.creatureType" value="{{key}}" {{#if checked}}checked{{/if}} />
<span>{{label}}</span>
</label>
{{/each}}
</div>
<div class="creature-number-group">
<label class="creature-meta-label" for="creature-number">{{localize "MGNE.Creature.Number"}}</label>
<input id="creature-number" class="creature-number-input" type="text" name="system.number" value="{{source.system.number}}" />
</div>
</div>
<!-- Action Table -->
<div class="inventory-section creature-action-table-section">
<div class="inventory-header">
<h3>{{localize "MGNE.Creature.ActionTable"}}</h3>
{{#if actionTable}}
<div class="action-table-buttons">
<button type="button" data-action="rollActionTable" class="rollable" data-tooltip="{{localize "MGNE.Creature.RollAction"}}">
<i class="fa-solid fa-dice-d20"></i> {{localize "MGNE.Creature.RollAction"}}
</button>
<button type="button" data-action="openActionTable" data-tooltip="{{localize "MGNE.Creature.OpenTable"}}">
<i class="fa-solid fa-table-list"></i> {{localize "MGNE.Creature.OpenTable"}}
</button>
<button type="button" data-action="clearActionTable" data-tooltip="{{localize "MGNE.Creature.ClearTable"}}">
<i class="fa-solid fa-xmark"></i>
</button>
</div>
{{/if}}
</div>
<div class="action-table-drop-zone {{#unless actionTable}}drop-hint{{/unless}}">
{{#if actionTable}}
<i class="fa-solid fa-table-list"></i>
<span class="action-table-name">{{actionTable.name}}</span>
{{else}}
<i class="fa-solid fa-cloud-arrow-down"></i>
<span>{{localize "MGNE.Creature.DropTableHint"}}</span>
{{/if}}
</div>
</div>
<!-- Traits -->
<div class="creature-traits-container">
<div class="creature-traits-header">
<h3>{{localize "MGNE.Creature.Traits"}}</h3>
<button type="button" data-action="createItem" data-item-type="creature-trait">
<i class="fa-solid fa-plus"></i> {{localize "MGNE.Creature.AddTrait"}}
</button>
</div>
<div class="creature-traits-list">
{{#each traits}}
<div class="creature-trait-card" data-item-id="{{id}}">
<div class="creature-trait-card-header">
<div class="creature-trait-name" {{#if tooltip}}data-tooltip="{{tooltip}}" data-tooltip-class="mgne-item-tooltip"{{/if}}>
<i class="fa-solid fa-bolt-lightning"></i>
<span>{{name}}</span>
</div>
{{#if system.trigger}}
<span class="creature-trait-trigger">{{system.trigger}}</span>
{{/if}}
<div class="item-actions">
<button type="button" data-action="editItem" data-tooltip="{{localize "MGNE.Common.Edit"}}"><i class="fa-solid fa-pen"></i></button>
<button type="button" data-action="deleteItem" data-item-id="{{id}}" data-tooltip="{{localize "MGNE.Common.Delete"}}"><i class="fa-solid fa-trash"></i></button>
</div>
</div>
</div>
{{else}}
<p class="empty-state">{{localize "MGNE.Empty.NoTraits"}}</p>
{{/each}}
</div>
</div>
<!-- Description -->
<div class="inventory-section">
<div class="inventory-header">
<h3>{{localize "MGNE.Common.Attack"}}</h3>
<h3>{{localize "MGNE.Common.Description"}}</h3>
</div>
<fieldset>
<div class="grid three">
<div>
<label>{{localize "MGNE.Common.Label"}}</label>
<input type="text" name="system.attack.label" value="{{source.system.attack.label}}" />
</div>
<div>
<label>{{localize "MGNE.Common.Damage"}}</label>
<input type="text" name="system.attack.damage" value="{{source.system.attack.damage}}" />
</div>
<div class="inline-buttons">
<button type="button" class="rollable" data-roll-type="profile-attack">{{localize "MGNE.Common.Attack"}}</button>
<button type="button" class="rollable" data-roll-type="profile-damage">{{localize "MGNE.Common.Damage"}}</button>
<button type="button" class="rollable" data-roll-type="morale">{{localize "MGNE.Common.Morale"}}</button>
</div>
</div>
{{formInput systemFields.description enriched=(lookup enrichedFields "description") value=system.description name="system.description" toggled=true}}
</fieldset>
</div>
<div class="grid two">
<div class="inventory-section">
<div class="inventory-header">
<h3>{{localize "MGNE.Common.Description"}}</h3>
</div>
<fieldset>
{{formInput systemFields.description enriched=(lookup enrichedFields "description") value=system.description name="system.description" toggled=true}}
</fieldset>
</div>
<div class="inventory-section">
<div class="inventory-header">
<h3>{{localize "MGNE.Creature.Special"}}</h3>
</div>
<fieldset>
{{formInput systemFields.special enriched=(lookup enrichedFields "special") value=system.special name="system.special" toggled=true}}
</fieldset>
</div>
</div>
<div class="inventory-section">
<div class="inventory-header">
<h3>{{localize "MGNE.Common.Notes"}}</h3>
</div>
<fieldset>
{{formInput systemFields.notes enriched=(lookup enrichedFields "notes") value=system.notes name="system.notes" toggled=true}}
</fieldset>
</div>
</section>