System development, WIP

This commit is contained in:
2026-05-05 13:55:42 +02:00
commit c0223977d2
250 changed files with 10362 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
<section class="mgne-sheet">
<div class="sheet-header">
<img class="item-portrait" src="{{item.img}}" data-edit="img" data-action="editImage" alt="{{item.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
</div>
</div>
<div class="item-form-grid item-form-grid-two">
<div class="item-form-row">
<label>{{localize "MGNE.Common.ArmorDie"}}</label>
<select name="system.armorDie">
{{#each selectOptions.armorDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.armorDie value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Penalty"}}</label>
<select name="system.penalty">
{{#each selectOptions.penalties}}
<option value="{{value}}" {{#if (isEqual ../source.system.penalty value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
</div>
<div class="item-check-grid check-grid">
<label><input type="checkbox" name="system.equipped" {{#if source.system.equipped}}checked{{/if}} /> {{localize "MGNE.Common.Equipped"}}</label>
<label><input type="checkbox" name="system.broken" {{#if source.system.broken}}checked{{/if}} /> {{localize "MGNE.Common.Broken"}}</label>
</div>
<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>
</section>
+40
View File
@@ -0,0 +1,40 @@
<section class="mgne-sheet">
<div class="sheet-header">
<img class="item-portrait" src="{{item.img}}" data-edit="img" data-action="editImage" alt="{{item.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
</div>
</div>
<div class="item-form-grid item-form-grid-three">
<div class="item-form-row">
<label>{{localize "MGNE.Common.ArtifactId"}}</label>
<select name="system.artifactId">
{{#each selectOptions.artifactIds}}
<option value="{{value}}" {{#if (isEqual ../source.system.artifactId value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.UsageDie"}}</label>
<select name="system.usageDie">
{{#each selectOptions.usageDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.usageDie value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.SynchronizedTo"}}</label>
<input type="text" name="system.synchronizedTo" value="{{source.system.synchronizedTo}}" />
</div>
</div>
<div class="item-check-grid check-grid">
<label><input type="checkbox" name="system.synchronized" {{#if source.system.synchronized}}checked{{/if}} /> {{localize "MGNE.Common.Synchronized"}}</label>
<label><input type="checkbox" name="system.broken" {{#if source.system.broken}}checked{{/if}} /> {{localize "MGNE.Common.Broken"}}</label>
</div>
<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>
</section>
+73
View File
@@ -0,0 +1,73 @@
<section class="tab-panel {{tab.cssClass}}">
<section class="daily-resources-panel">
<div class="section-heading">
<div class="sheet-actions">
<button type="button" data-action="resetDaily">{{localize "MGNE.Character.ResetDailyResources"}}</button>
</div>
</div>
<div class="resource-bar resource-bar-daily">
<div class="resource-box resource-box-track resource-box-compact">
<label class="resource-label-accent">{{localize "MGNE.Character.Omens"}}</label>
<div class="resource-track resource-track-die">
<div class="numeric-cluster">
<span class="numeric-caption numeric-caption-strong">{{localize "MGNE.Common.Current"}}</span>
<select class="numeric-input" name="system.omens.current">
{{#each selectOptions.omenCurrent}}
<option value="{{value}}" {{#if (isEqual ../source.system.omens.current value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="numeric-cluster numeric-cluster-select">
<span class="numeric-caption numeric-caption-strong">{{localize "MGNE.Common.Die"}}</span>
<select class="compact-select" name="system.omens.die">
{{#each selectOptions.omenDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.omens.die value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
</div>
</div>
<div class="resource-box resource-box-track resource-box-compact">
<label class="resource-label-accent">{{localize "MGNE.Character.Resonations"}}</label>
<div class="resource-track">
<div class="numeric-cluster">
<span class="numeric-caption numeric-caption-strong">{{localize "MGNE.Common.Used"}}</span>
<select class="numeric-input" name="system.resonance.used">
{{#each selectOptions.resonanceUsed}}
<option value="{{value}}" {{#if (isEqual ../source.system.resonance.used value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<span class="track-separator">/</span>
<div class="numeric-cluster">
<span class="numeric-caption numeric-caption-strong">{{localize "MGNE.Common.Max"}}</span>
<input class="numeric-input" type="number" name="system.resonance.max" value="{{source.system.resonance.max}}" />
</div>
</div>
<small class="resource-meta">{{localize "MGNE.Character.Remaining"}}: {{system.resonance.remaining}}</small>
<div class="resource-box-actions">
<button type="button" data-action="rollResonancePerDay">{{localize "MGNE.Character.ResonancePerDay"}}</button>
</div>
</div>
<div class="resource-box resource-box-track resource-box-compact">
<label class="resource-label-accent">{{localize "MGNE.Character.ArtifactSync"}}</label>
<div class="resource-track">
<div class="numeric-cluster">
<span class="numeric-caption numeric-caption-strong">{{localize "MGNE.Common.Used"}}</span>
<select class="numeric-input" name="system.artifactSync.used">
{{#each selectOptions.artifactSyncUsed}}
<option value="{{value}}" {{#if (isEqual ../source.system.artifactSync.used value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<span class="track-separator">/</span>
<div class="numeric-cluster">
<span class="numeric-caption numeric-caption-strong">{{localize "MGNE.Common.Limit"}}</span>
<input class="numeric-input numeric-input-readonly" type="number" value="{{system.syncLimit}}" readonly />
</div>
</div>
</div>
</div>
</section>
</section>
+144
View File
@@ -0,0 +1,144 @@
<section class="tab-panel {{tab.cssClass}}">
<div class="resource-bar resource-bar-equipment">
<div class="resource-box resource-box-single resource-box-compact resource-box-inline resource-box-inline-single">
<label class="resource-label-accent">{{localize "MGNE.Character.CarryingCapacity"}}</label>
<div class="numeric-pill">
<input class="numeric-input numeric-input-readonly" type="number" name="system.carryCapacity" value="{{system.carryCapacity}}" readonly />
</div>
</div>
<div class="resource-box resource-box-single resource-box-compact resource-box-inline resource-box-inline-single">
<label class="resource-label-accent">{{localize "MGNE.Character.Rations"}}</label>
<div class="numeric-pill">
<input class="numeric-input" type="number" name="system.rations" value="{{source.system.rations}}" min="0" />
</div>
</div>
<div class="resource-box resource-box-single resource-box-compact resource-box-inline resource-box-inline-single">
<label class="resource-label-accent">{{localize "MGNE.Character.Kiffol"}}</label>
<div class="numeric-pill numeric-pill-suffix">
<input class="numeric-input" type="number" name="system.kiffol" value="{{source.system.kiffol}}" min="0" />
<span class="numeric-suffix">₵</span>
</div>
</div>
</div>
<div class="inventory-section">
<div class="inventory-header">
<h3>{{localize "MGNE.Character.Weapons"}}</h3>
<button type="button" data-action="createItem" data-item-type="weapon">{{localize "MGNE.Character.AddWeapon"}}</button>
</div>
{{#each weapons}}
<div class="item-row" data-item-id="{{id}}">
<div class="item-name">{{name}}</div>
<div>{{system.damage}}</div>
<div>{{lookup @root.config.weaponCategories system.category}}</div>
<div class="item-actions">
<button type="button" data-action="toggleEquipped">{{#if system.equipped}}{{localize "MGNE.Common.Unequip"}}{{else}}{{localize "MGNE.Common.Equip"}}{{/if}}</button>
<button type="button" class="rollable" data-roll-type="weapon">{{localize "MGNE.Common.Attack"}}</button>
<button type="button" class="rollable" data-roll-type="damage">{{localize "MGNE.Common.Damage"}}</button>
<button type="button" class="rollable" data-roll-type="usage">{{localize "MGNE.Common.Usage"}}</button>
<button type="button" data-action="editItem">{{localize "MGNE.Common.Edit"}}</button>
<button type="button" data-action="deleteItem">{{localize "MGNE.Common.Delete"}}</button>
</div>
</div>
{{else}}
<p class="empty-state">{{localize "MGNE.Empty.NoWeapons"}}</p>
{{/each}}
</div>
<div class="inventory-section">
<div class="inventory-header">
<h3>{{localize "MGNE.Character.Armor"}}</h3>
<button type="button" data-action="createItem" data-item-type="armor">{{localize "MGNE.Character.AddArmor"}}</button>
<button type="button" data-action="createItem" data-item-type="shield">{{localize "MGNE.Character.AddShield"}}</button>
</div>
{{#each armors}}
<div class="item-row" data-item-id="{{id}}">
<div class="item-name">{{name}}</div>
<div>{{system.armorDie}}</div>
<div>{{localize "MGNE.Common.Penalty"}} {{system.penalty}}</div>
<div class="item-actions">
<button type="button" data-action="toggleEquipped">{{#if system.equipped}}{{localize "MGNE.Common.Unequip"}}{{else}}{{localize "MGNE.Common.Equip"}}{{/if}}</button>
<button type="button" data-action="editItem">{{localize "MGNE.Common.Edit"}}</button>
<button type="button" data-action="deleteItem">{{localize "MGNE.Common.Delete"}}</button>
</div>
</div>
{{/each}}
{{#each shields}}
<div class="item-row" data-item-id="{{id}}">
<div class="item-name">{{name}}</div>
<div>{{system.armorDie}}</div>
<div>{{localize "MGNE.ItemTypes.shield"}}</div>
<div class="item-actions">
<button type="button" data-action="toggleEquipped">{{#if system.equipped}}{{localize "MGNE.Common.Unequip"}}{{else}}{{localize "MGNE.Common.Equip"}}{{/if}}</button>
<button type="button" data-action="editItem">{{localize "MGNE.Common.Edit"}}</button>
<button type="button" data-action="deleteItem">{{localize "MGNE.Common.Delete"}}</button>
</div>
</div>
{{/each}}
</div>
<div class="inventory-section">
<div class="inventory-header">
<h3>{{localize "MGNE.ItemTypes.equipment"}}</h3>
<button type="button" data-action="createItem" data-item-type="equipment">{{localize "MGNE.Character.AddEquipment"}}</button>
</div>
{{#each equipmentItems}}
<div class="item-row" data-item-id="{{id}}">
<div class="item-name">{{name}}</div>
<div>{{localize "MGNE.Common.QuantityShort"}} {{system.quantity}}</div>
<div>{{system.usageDie}}</div>
<div class="item-actions">
<button type="button" class="rollable" data-roll-type="usage">{{localize "MGNE.Common.Usage"}}</button>
<button type="button" data-action="editItem">{{localize "MGNE.Common.Edit"}}</button>
<button type="button" data-action="deleteItem">{{localize "MGNE.Common.Delete"}}</button>
</div>
</div>
{{else}}
<p class="empty-state">{{localize "MGNE.Empty.NoEquipment"}}</p>
{{/each}}
</div>
<div class="inventory-section">
<div class="inventory-header">
<h3>{{localize "MGNE.Character.ResonanceCores"}}</h3>
<button type="button" data-action="createItem" data-item-type="resonance-core">{{localize "MGNE.Character.AddCore"}}</button>
</div>
{{#each cores}}
<div class="item-row" data-item-id="{{id}}">
<div class="item-name">{{name}}</div>
<div>{{lookup @root.config.resonanceList system.resonationId}}</div>
<div>{{system.usageDie}}</div>
<div class="item-actions">
<button type="button" class="rollable" data-roll-type="resonation">{{localize "MGNE.Common.Invoke"}}</button>
<button type="button" class="rollable" data-roll-type="usage">{{localize "MGNE.Common.Usage"}}</button>
<button type="button" data-action="editItem">{{localize "MGNE.Common.Edit"}}</button>
<button type="button" data-action="deleteItem">{{localize "MGNE.Common.Delete"}}</button>
</div>
</div>
{{else}}
<p class="empty-state">{{localize "MGNE.Empty.NoResonanceCores"}}</p>
{{/each}}
</div>
<div class="inventory-section">
<div class="inventory-header">
<h3>{{localize "MGNE.Character.Artifacts"}}</h3>
<button type="button" data-action="createItem" data-item-type="artifact">{{localize "MGNE.Character.AddArtifact"}}</button>
</div>
{{#each artifacts}}
<div class="item-row" data-item-id="{{id}}">
<div class="item-name">{{name}}</div>
<div>{{#if system.synchronized}}{{localize "MGNE.Common.Synchronized"}}{{else}}{{localize "MGNE.Common.Unsynchronized"}}{{/if}}</div>
<div>{{system.usageDie}}</div>
<div class="item-actions">
<button type="button" data-action="syncArtifact">{{#if system.synchronized}}{{localize "MGNE.Common.Desync"}}{{else}}{{localize "MGNE.Common.Sync"}}{{/if}}</button>
<button type="button" class="rollable" data-roll-type="usage">{{localize "MGNE.Common.Usage"}}</button>
<button type="button" data-action="editItem">{{localize "MGNE.Common.Edit"}}</button>
<button type="button" data-action="deleteItem">{{localize "MGNE.Common.Delete"}}</button>
</div>
</div>
{{else}}
<p class="empty-state">{{localize "MGNE.Empty.NoArtifacts"}}</p>
{{/each}}
</div>
</section>
+18
View File
@@ -0,0 +1,18 @@
<section class="tab-panel {{tab.cssClass}}">
<div class="inventory-header">
<h3>{{localize "MGNE.ItemTypes.feature"}}</h3>
<button type="button" data-action="createItem" data-item-type="feature">{{localize "MGNE.Character.AddFeature"}}</button>
</div>
{{#each features}}
<div class="item-row" data-item-id="{{id}}">
<div class="item-name">{{name}}</div>
<div>{{lookup @root.config.featureChoices system.featureId}}</div>
<div class="item-actions">
<button type="button" data-action="editItem">{{localize "MGNE.Common.Edit"}}</button>
<button type="button" data-action="deleteItem">{{localize "MGNE.Common.Delete"}}</button>
</div>
</div>
{{else}}
<p class="empty-state">{{localize "MGNE.Empty.NoFeatures"}}</p>
{{/each}}
</section>
+53
View File
@@ -0,0 +1,53 @@
<section class="mgne-sheet mgne-sheet-header">
<div class="sheet-header">
<div class="portrait-column">
<img class="actor-portrait" src="{{actor.img}}" data-edit="img" data-action="editImage" alt="{{actor.name}}" />
</div>
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
<div class="grid two">
<div>
<label>{{localize "MGNE.Character.Background"}}</label>
<input type="text" name="system.background" value="{{source.system.background}}" />
</div>
<div>
<label>{{localize "MGNE.Character.Origin"}}</label>
<input type="text" name="system.origin" value="{{source.system.origin}}" />
</div>
<div>
<label>{{localize "MGNE.Character.Scars"}}</label>
<input type="text" name="system.scars" value="{{source.system.scars}}" />
</div>
<div>
<label>{{localize "MGNE.Character.Motivation"}}</label>
<input type="text" name="system.motivation" value="{{source.system.motivation}}" />
</div>
<div>
<label>{{localize "MGNE.Character.Vice"}}</label>
<input type="text" name="system.vice" value="{{source.system.vice}}" />
</div>
<div class="header-resource">
<div class="resource-box resource-box-track resource-box-compact resource-box-inline resource-box-inline-track">
<label class="resource-label-accent">{{localize "MGNE.Common.HP"}}</label>
<div class="resource-track">
<div class="numeric-cluster">
<span class="numeric-caption numeric-caption-strong">{{localize "MGNE.Common.Current"}}</span>
<input class="numeric-input" type="number" name="system.hp.value" value="{{source.system.hp.value}}" />
</div>
<span class="track-separator">/</span>
<div class="numeric-cluster">
<span class="numeric-caption numeric-caption-strong">{{localize "MGNE.Common.Max"}}</span>
<input class="numeric-input" type="number" name="system.hp.max" value="{{source.system.hp.max}}" />
</div>
</div>
<div class="resource-box-actions resource-box-actions-rest">
<button type="button" data-action="quickRest">{{localize "MGNE.Character.QuickRest"}}</button>
<button type="button" data-action="fullRest">{{localize "MGNE.Character.FullRest"}}</button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
+24
View File
@@ -0,0 +1,24 @@
<section class="tab-panel {{tab.cssClass}}">
<div class="grid two">
<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>
<div class="inventory-section">
<div class="inventory-header">
<h3>{{localize "MGNE.Character.RulesSnapshot"}}</h3>
</div>
<fieldset>
<p>{{localize "MGNE.RulesSnapshot.Checks"}}</p>
<p>{{localize "MGNE.RulesSnapshot.Attacks"}}</p>
<p>{{localize "MGNE.RulesSnapshot.Armor"}}</p>
<p>{{localize "MGNE.RulesSnapshot.Breaks"}}</p>
<p>{{localize "MGNE.RulesSnapshot.Morale"}}</p>
</fieldset>
</div>
</div>
</section>
+63
View File
@@ -0,0 +1,63 @@
<section class="tab-panel {{tab.cssClass}}">
<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}}
<div class="ability-card ability-card-defense">
<label class="rollable ability-label" data-roll-type="defense">{{localize "MGNE.Common.Defense"}}</label>
<div class="ability-score ability-score-text">
<span class="ability-defense-main">DR 12</span>
<small class="ability-defense-sub">{{localize "MGNE.Abilities.agility"}}</small>
</div>
</div>
</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.Common.Conditions"}}</h3>
</div>
<fieldset>
{{#if valueConditions}}
<div class="condition-value-grid">
{{#each valueConditions}}
<label>{{label}}</label>
<select name="system.conditions.{{id}}.value">
{{#each options}}
<option value="{{value}}" {{#if (isEqual ../value value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
{{/each}}
</div>
{{/if}}
{{#if flagConditions}}
<div class="condition-flag-grid">
{{#each flagConditions}}
<label class="checkbox-line {{#if active}}active{{/if}}">
<input type="checkbox" name="system.conditions.{{id}}.active" {{#if active}}checked{{/if}}>
{{label}}
</label>
{{/each}}
</div>
{{/if}}
</fieldset>
</div>
</div>
</section>
+5
View File
@@ -0,0 +1,5 @@
<nav class="sheet-tabs">
{{#each tabs}}
<button type="button" class="tab-button {{cssClass}}" data-action="changeTab" data-group="{{group}}" data-tab="{{id}}">{{label}}</button>
{{/each}}
</nav>
+38
View File
@@ -0,0 +1,38 @@
<article class="mgne-chat-card mode-{{modeClass}} {{#if outcomeClass}}outcome-{{outcomeClass}}{{/if}}"
{{#if showApplyButton}}data-damage-total="{{damageTotal}}" data-damage-critical="{{damageCritical}}"{{/if}}>
<header class="chat-card-header">
{{#if actorImg}}<img src="{{actorImg}}" alt="{{actorName}}" />{{/if}}
<div>
<h3>{{label}}</h3>
<p class="chat-actor">{{actorName}}</p>
</div>
</header>
<div class="chat-card-body">
{{#if subtitle}}<p class="chat-subtitle"><strong>{{subtitle}}</strong></p>{{/if}}
{{#if formula}}<p class="chat-formula">{{localize "MGNE.Chat.Formula"}}: <code>{{formula}}</code></p>{{/if}}
<div class="chat-result-line">
<span class="chat-result-label">{{localize "MGNE.Chat.Result"}}</span>
<strong class="chat-result-total">{{total}}</strong>
</div>
<p class="chat-outcome">{{outcome}}</p>
{{#if specialText}}<p class="chat-special">{{specialText}}</p>{{/if}}
{{#if showDamageButton}}
<div class="chat-card-actions">
<button type="button" class="mgne-roll-damage-btn {{#if damageCritical}}is-critical{{/if}}"
data-actor-id="{{damageActorId}}"
data-item-id="{{damageItemId}}">
<i class="fa-solid fa-burst"></i>
{{localize "MGNE.Roll.RollDamage"}}
<span class="dmg-formula">({{damageFormula}}{{#if damageCritical}} ×2{{/if}})</span>
</button>
</div>
{{/if}}
{{#if showApplyButton}}
<div class="chat-card-actions chat-apply-actions">
<select class="mgne-apply-damage-select">
<option value="">— {{localize "MGNE.Roll.ApplyTo"}} —</option>
</select>
</div>
{{/if}}
</div>
</article>
+103
View File
@@ -0,0 +1,103 @@
<section class="mgne-sheet">
<div class="sheet-header">
<img class="actor-portrait" src="{{actor.img}}" data-edit="img" data-action="editImage" alt="{{actor.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
<div class="resource-bar">
<div class="resource-box">
<label>{{localize "MGNE.Common.HP"}}</label>
<div class="resource-inline">
<input type="number" name="system.hp.value" value="{{source.system.hp.value}}" />
<span>/</span>
<input type="number" name="system.hp.max" value="{{source.system.hp.max}}" />
</div>
</div>
<div class="resource-box">
<label>{{localize "MGNE.Common.Morale"}}</label>
<select name="system.morale">
{{#each selectOptions.moraleValues}}
<option value="{{value}}" {{#if (isEqual ../source.system.morale value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="resource-box">
<label>{{localize "MGNE.Common.ArmorDie"}}</label>
<select name="system.armor.die">
{{#each selectOptions.armorDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.armor.die value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
</div>
</div>
</div>
<div class="ability-grid">
{{#each abilityList}}
<div class="ability-card">
<label class="rollable" data-roll-type="ability" data-ability-id="{{id}}">{{label}}</label>
<select name="system.abilities.{{id}}.value">
{{#each @root.selectOptions.abilityValues}}
<option value="{{value}}" {{#if (isEqual ../value value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
{{/each}}
</div>
<fieldset>
<legend>{{localize "MGNE.Common.Attack"}}</legend>
<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>
</fieldset>
<div class="grid three">
<div>
<label>{{localize "MGNE.Companion.TheyValue"}}</label>
<input type="text" name="system.valueText" value="{{source.system.valueText}}" />
</div>
<div>
<label>{{localize "MGNE.Companion.Trait"}}</label>
<input type="text" name="system.traitText" value="{{source.system.traitText}}" />
</div>
<div>
<label>{{localize "MGNE.Companion.Specialty"}}</label>
<input type="text" name="system.specialtyText" value="{{source.system.specialtyText}}" />
</div>
</div>
<div class="grid two">
<fieldset>
<legend>{{localize "MGNE.Companion.AdventuringBehavior"}}</legend>
{{formInput systemFields.adventuringBehavior enriched=(lookup enrichedFields "adventuringBehavior") value=system.adventuringBehavior name="system.adventuringBehavior" toggled=true}}
</fieldset>
<fieldset>
<legend>{{localize "MGNE.Companion.CombatBehavior"}}</legend>
{{formInput systemFields.combatBehavior enriched=(lookup enrichedFields "combatBehavior") value=system.combatBehavior name="system.combatBehavior" toggled=true}}
</fieldset>
</div>
<div class="grid two">
<fieldset>
<legend>{{localize "MGNE.Common.Description"}}</legend>
{{formInput systemFields.description enriched=(lookup enrichedFields "description") value=system.description name="system.description" toggled=true}}
</fieldset>
<fieldset>
<legend>{{localize "MGNE.Common.Notes"}}</legend>
{{formInput systemFields.notes enriched=(lookup enrichedFields "notes") value=system.notes name="system.notes" toggled=true}}
</fieldset>
</div>
</section>
+82
View File
@@ -0,0 +1,82 @@
<section class="mgne-sheet">
<div class="sheet-header">
<img class="actor-portrait" src="{{actor.img}}" data-edit="img" data-action="editImage" alt="{{actor.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
<div class="resource-bar">
<div class="resource-box">
<label>{{localize "MGNE.Common.HP"}}</label>
<div class="resource-inline">
<input type="number" name="system.hp.value" value="{{source.system.hp.value}}" />
<span>/</span>
<input type="number" name="system.hp.max" value="{{source.system.hp.max}}" />
</div>
</div>
<div class="resource-box">
<label>{{localize "MGNE.Common.Morale"}}</label>
<select name="system.morale">
{{#each selectOptions.moraleValues}}
<option value="{{value}}" {{#if (isEqual ../source.system.morale value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="resource-box">
<label>{{localize "MGNE.Common.ArmorDie"}}</label>
<select name="system.armor.die">
{{#each selectOptions.armorDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.armor.die value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
</div>
</div>
</div>
<div class="ability-grid">
{{#each abilityList}}
<div class="ability-card">
<label class="rollable" data-roll-type="ability" data-ability-id="{{id}}">{{label}}</label>
<select name="system.abilities.{{id}}.value">
{{#each @root.selectOptions.abilityValues}}
<option value="{{value}}" {{#if (isEqual ../value value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
{{/each}}
</div>
<fieldset>
<legend>{{localize "MGNE.Common.Attack"}}</legend>
<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>
</fieldset>
<div class="grid two">
<fieldset>
<legend>{{localize "MGNE.Common.Description"}}</legend>
{{formInput systemFields.description enriched=(lookup enrichedFields "description") value=system.description name="system.description" toggled=true}}
</fieldset>
<fieldset>
<legend>{{localize "MGNE.Creature.Special"}}</legend>
{{formInput systemFields.special enriched=(lookup enrichedFields "special") value=system.special name="system.special" toggled=true}}
</fieldset>
</div>
<fieldset>
<legend>{{localize "MGNE.Common.Notes"}}</legend>
{{formInput systemFields.notes enriched=(lookup enrichedFields "notes") value=system.notes name="system.notes" toggled=true}}
</fieldset>
</section>
+41
View File
@@ -0,0 +1,41 @@
<section class="mgne-sheet">
<div class="sheet-header">
<img class="item-portrait" src="{{item.img}}" data-edit="img" data-action="editImage" alt="{{item.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
</div>
</div>
<div class="item-form-grid item-form-grid-three">
<div class="item-form-row">
<label>{{localize "MGNE.Common.Subtype"}}</label>
<select name="system.subtype">
{{#each selectOptions.equipmentSubtypes}}
<option value="{{value}}" {{#if (isEqual ../source.system.subtype value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Quantity"}}</label>
<input type="number" name="system.quantity" value="{{source.system.quantity}}" />
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.UsageDie"}}</label>
<select name="system.usageDie">
{{#each selectOptions.usageDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.usageDie value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
</div>
<div class="item-check-grid item-check-grid-three check-grid">
<label><input type="checkbox" name="system.carried" {{#if source.system.carried}}checked{{/if}} /> {{localize "MGNE.Common.Carried"}}</label>
<label><input type="checkbox" name="system.equipped" {{#if source.system.equipped}}checked{{/if}} /> {{localize "MGNE.Common.Equipped"}}</label>
<label><input type="checkbox" name="system.consumable" {{#if source.system.consumable}}checked{{/if}} /> {{localize "MGNE.Common.Consumable"}}</label>
</div>
<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>
</section>
+14
View File
@@ -0,0 +1,14 @@
<section class="mgne-sheet">
<div class="sheet-header">
<img class="item-portrait" src="{{item.img}}" data-edit="img" data-action="editImage" alt="{{item.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
</div>
</div>
<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>
</section>
+27
View File
@@ -0,0 +1,27 @@
<section class="mgne-sheet">
<div class="sheet-header">
<img class="item-portrait" src="{{item.img}}" data-edit="img" data-action="editImage" alt="{{item.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
</div>
</div>
<div class="item-form-grid item-form-grid-two">
<div class="item-form-row">
<label>{{localize "MGNE.Common.UsageDie"}}</label>
<select name="system.usageDie">
{{#each selectOptions.usageDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.usageDie value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
</div>
<div class="item-check-grid check-grid">
<label><input type="checkbox" name="system.burnedOut" {{#if source.system.burnedOut}}checked{{/if}} /> {{localize "MGNE.Common.BurnedOut"}}</label>
</div>
<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>
</section>
+25
View File
@@ -0,0 +1,25 @@
<section class="mgne-roll-dialog">
<p><strong>{{label}}</strong></p>
<p>{{abilityLabel}} {{localize "MGNE.RollDialog.VsDR"}} {{baseDR}}</p>
<div class="grid two">
<div>
<label>{{localize "MGNE.RollDialog.DR"}}</label>
<select name="dr">
{{#each drOptions}}
<option value="{{value}}" {{#if (isEqual ../baseDR value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div>
<label>{{localize "MGNE.RollDialog.Modifier"}}</label>
<select name="modifier">
{{#each modifierOptions}}
<option value="{{value}}" {{#if (isEqual value 0)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
</div>
{{#if omens}}
<label class="checkbox-line"><input type="checkbox" name="spendOmen" /> {{localize "MGNE.RollDialog.SpendOmen"}}</label>
{{/if}}
</section>
+36
View File
@@ -0,0 +1,36 @@
<section class="mgne-sheet">
<div class="sheet-header">
<img class="item-portrait" src="{{item.img}}" data-edit="img" data-action="editImage" alt="{{item.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
</div>
</div>
<div class="item-form-grid item-form-grid-two">
<div class="item-form-row">
<label>{{localize "MGNE.Common.ArmorDie"}}</label>
<select name="system.armorDie">
{{#each selectOptions.armorDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.armorDie value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Penalty"}}</label>
<select name="system.penalty">
{{#each selectOptions.penalties}}
<option value="{{value}}" {{#if (isEqual ../source.system.penalty value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
</div>
<div class="item-check-grid check-grid">
<label><input type="checkbox" name="system.equipped" {{#if source.system.equipped}}checked{{/if}} /> {{localize "MGNE.Common.Equipped"}}</label>
<label><input type="checkbox" name="system.broken" {{#if source.system.broken}}checked{{/if}} /> {{localize "MGNE.Common.Broken"}}</label>
</div>
<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>
</section>
+52
View File
@@ -0,0 +1,52 @@
<section class="mgne-sheet">
<div class="sheet-header">
<img class="item-portrait" src="{{item.img}}" data-edit="img" data-action="editImage" alt="{{item.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
</div>
</div>
<div class="item-form-grid item-form-grid-three">
<div class="item-form-row">
<label>{{localize "MGNE.Common.Category"}}</label>
<select name="system.category">
{{#each selectOptions.weaponCategories}}
<option value="{{value}}" {{#if (isEqual ../source.system.category value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Damage"}}</label>
<input type="text" name="system.damage" value="{{source.system.damage}}" />
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Range"}}</label>
<input type="text" name="system.range" value="{{source.system.range}}" />
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Properties"}}</label>
<input type="text" name="system.properties" value="{{source.system.properties}}" />
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.UsageDie"}}</label>
<select name="system.usageDie">
{{#each selectOptions.usageDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.usageDie value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Quantity"}}</label>
<input type="number" name="system.quantity" value="{{source.system.quantity}}" />
</div>
</div>
<div class="item-check-grid check-grid">
<label><input type="checkbox" name="system.equipped" {{#if source.system.equipped}}checked{{/if}} /> {{localize "MGNE.Common.Equipped"}}</label>
<label><input type="checkbox" name="system.broken" {{#if source.system.broken}}checked{{/if}} /> {{localize "MGNE.Common.Broken"}}</label>
</div>
<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>
</section>