Ajout des fonctions de gestion des soins
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<form class="{{cssClass}} flexcol" autocomplete="off">
|
||||
<div class="form-group">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.config.psionic" data-dtype="Boolean" {{checked system.config.psionic}} />{{ localize 'MGT2.Actor.ShowPsionicTalents' }}</label>
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="psionic" data-dtype="Boolean" {{checked system.config.psionic}} />{{ localize 'MGT2.Actor.ShowPsionicTalents' }}</label>
|
||||
</div>
|
||||
<fieldset>
|
||||
<legend>{{ localize 'MGT2.Actor.Initiative' }}</legend>
|
||||
|
||||
@@ -272,6 +272,22 @@
|
||||
<label class="upcase">{{ localize 'MGT2.Actor.Rads' }}</label>
|
||||
<input class="field" name="system.health.radiations" type="text" value="{{system.health.radiations}}" />
|
||||
</div>
|
||||
<!-- HEALING SECTION -->
|
||||
<div class="header upcase">{{ localize 'MGT2.Healing.Title' }}</div>
|
||||
<div class="healing-buttons" style="display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;">
|
||||
<button type="button" data-action="heal" data-heal-type="firstaid" class="button sm" title="{{ localize 'MGT2.Healing.FirstAid' }}">
|
||||
<i class="fas fa-bandage"></i> {{ localize 'MGT2.Healing.FirstAid' }}
|
||||
</button>
|
||||
<button type="button" data-action="heal" data-heal-type="surgery" class="button sm" title="{{ localize 'MGT2.Healing.Surgery' }}">
|
||||
<i class="fas fa-flask-vial"></i> {{ localize 'MGT2.Healing.Surgery' }}
|
||||
</button>
|
||||
<button type="button" data-action="heal" data-heal-type="medical" class="button sm" title="{{ localize 'MGT2.Healing.MedicalCare' }}">
|
||||
<i class="fas fa-hospital"></i> {{ localize 'MGT2.Healing.MedicalCare' }}
|
||||
</button>
|
||||
<button type="button" data-action="heal" data-heal-type="natural" class="button sm" title="{{ localize 'MGT2.Healing.NaturalHealing' }}">
|
||||
<i class="fas fa-leaf"></i> {{ localize 'MGT2.Healing.NaturalHealing' }}
|
||||
</button>
|
||||
</div>
|
||||
<div class="table-container">
|
||||
<div class="table-row heading color-1">
|
||||
<div class="row-item row-item-30 row-item-left upcase">{{ localize 'MGT2.Actor.Wounds' }}</div>
|
||||
@@ -443,7 +459,7 @@
|
||||
<div class="row-item row-item-20 row-item-center">{{weapon.system.damage}}</div>
|
||||
<div class="row-item row-item-2 row-item-right flex-fix">{{weapon.weight}}</div>
|
||||
<div class="row-item row-item-15 item-controls flex-fix">
|
||||
<a class="item-control item-equip {{weapon.toggleClass}}" title="Equip"><i class="fa-solid fa-shield-halved"></i></a>
|
||||
<a class="item-control item-equip {{weapon.toggleClass}}" data-action="equipItem" title="Equip"><i class="fa-solid fa-shield-halved"></i></a>
|
||||
<a class="item-control item-storage-in" title="{{ localize 'MGT2.Actor.StoreItem' }}"><i class="fa-solid fa-inbox-in"></i></a>
|
||||
<a class="item-control item-edit" title="{{ localize 'MGT2.Actor.EditWeapon' }}"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="{{ localize 'MGT2.Actor.DeleteWeapon' }}"><i class="fas fa-trash"></i></a>
|
||||
@@ -468,7 +484,7 @@
|
||||
<div class="row-item row-item-10 row-item-center">{{armor.system.protection}}</div>
|
||||
<div class="row-item row-item-2 row-item-right flex-fix">{{armor.weight}}</div>
|
||||
<div class="row-item row-item-15 item-controls flex-fix">
|
||||
<a class="item-control item-equip {{armor.toggleClass}}" title="Equip"><i class="fa-solid fa-shield-halved"></i></a>
|
||||
<a class="item-control item-equip {{armor.toggleClass}}" data-action="equipItem" title="Equip"><i class="fa-solid fa-shield-halved"></i></a>
|
||||
<a class="item-control item-storage-in" title="{{ localize 'MGT2.Actor.StoreItem' }}"><i class="fa-solid fa-inbox-in"></i></a>
|
||||
<a class="item-control item-edit" title="{{ localize 'MGT2.Actor.EditArmor' }}"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="{{ localize 'MGT2.Actor.DeleteArmor' }}"><i class="fas fa-trash"></i></a>
|
||||
@@ -487,7 +503,7 @@
|
||||
<div class="row-item row-item-30 row-item-left">{{augment.name}}</div>
|
||||
<div class="row-item row-item-40 row-item-left">{{augment.system.improvement}}</div>
|
||||
<div class="row-item row-item-15 item-controls flex-fix">
|
||||
<a class="item-control item-equip {{augment.toggleClass}}" title="Equip"><i class="fa-solid fa-shield-halved"></i></a>
|
||||
<a class="item-control item-equip {{augment.toggleClass}}" data-action="equipItem" title="Equip"><i class="fa-solid fa-shield-halved"></i></a>
|
||||
<a class="item-control item-storage-in" title="{{ localize 'MGT2.Actor.StoreItem' }}"><i class="fa-solid fa-inbox-in"></i></a>
|
||||
<a class="item-control item-edit" title="{{ localize 'MGT2.Actor.EditAugment' }}"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="{{ localize 'MGT2.Actor.DeleteAugment' }}"><i class="fas fa-trash"></i></a>
|
||||
@@ -512,7 +528,7 @@
|
||||
</div>
|
||||
<div class="row-item row-item-2 row-item-right flex-fix">{{computer.weight}}</div>
|
||||
<div class="row-item row-item-15 item-controls flex-fix">
|
||||
<a class="item-control item-equip {{computer.toggleClass}}" title="Equip"><i class="fa-solid fa-shield-halved"></i></a>
|
||||
<a class="item-control item-equip {{computer.toggleClass}}" data-action="equipItem" title="Equip"><i class="fa-solid fa-shield-halved"></i></a>
|
||||
<a class="item-control item-storage-in" title="{{ localize 'MGT2.Actor.StoreItem' }}"><i class="fa-solid fa-inbox-in"></i></a>
|
||||
<a class="item-control item-edit" title="{{ localize 'MGT2.Actor.EditComputer' }}"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="{{ localize 'MGT2.Actor.DeleteComputer' }}"><i class="fas fa-trash"></i></a>
|
||||
@@ -557,7 +573,7 @@
|
||||
<div class="row-item row-item-2 row-item-center">{{equipment.system.quantity}}</div>
|
||||
<div class="row-item row-item-2 row-item-right flex-fix">{{equipment.weight}}</div>
|
||||
<div class="row-item row-item-15 item-controls flex-fix">
|
||||
<a class="item-control item-equip {{equipment.toggleClass}}" title="{{ localize 'MGT2.Actor.EquipUnequip' }}"><i class="fa-solid fa-shield-halved"></i></a>
|
||||
<a class="item-control item-equip {{equipment.toggleClass}}" data-action="equipItem" title="{{ localize 'MGT2.Actor.EquipUnequip' }}"><i class="fa-solid fa-shield-halved"></i></a>
|
||||
<a class="item-control item-storage-in" title="{{ localize 'MGT2.Actor.StoreEquipment' }}"><i class="fa-solid fa-inbox-in"></i></a>
|
||||
<a class="item-control item-edit" title="{{ localize 'MGT2.Actor.EditEquipment' }}"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="{{ localize 'MGT2.Actor.DeleteEquipment' }}"><i class="fas fa-trash"></i></a>
|
||||
@@ -687,8 +703,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="field-group mt-1">
|
||||
<label class="upcase">{{ localize 'MGT2.Actor.Notes' }}</label>
|
||||
<textarea name="system.finance.description" rows="3">{{system.finance.description}}</textarea>
|
||||
<label class="upcase">{{ localize 'MGT2.Actor.Notes' }}</label>
|
||||
{{formInput systemFields.finance.fields.notes enriched=enrichedFinanceNotes value=system.finance.notes name="system.finance.notes" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -720,11 +736,11 @@
|
||||
</div>
|
||||
<div class="tab w100 h100" data-group="sidebar" data-tab="notes">
|
||||
<div class="header upcase">{{ localize 'MGT2.Actor.Notes' }}</div>
|
||||
{{editor system.notes target="system.notes" button=true editable=true}}
|
||||
{{formInput systemFields.notes enriched=enrichedNotes value=system.notes name="system.notes" toggled=true}}
|
||||
</div>
|
||||
<div class="tab w100 h100" data-group="sidebar" data-tab="biography">
|
||||
<div class="header upcase">{{ localize 'MGT2.Actor.Biography' }}</div>
|
||||
{{editor system.biography target="system.biography" button=true editable=true}}
|
||||
{{formInput systemFields.biography enriched=enrichedBiography value=system.biography name="system.biography" toggled=true}}
|
||||
</div>
|
||||
{{#if showTrash}}
|
||||
<!-- <div class="tab" data-group="inventory" data-tab="trash">
|
||||
|
||||
@@ -80,19 +80,20 @@
|
||||
{{!-- ── TAB CONTENT ── --}}
|
||||
<div class="creature-body">
|
||||
|
||||
{{!-- ── TAB : COMBAT (compétences + attaques + traits) ── --}}
|
||||
<div class="tab" data-group="primary" data-tab="combat">
|
||||
|
||||
{{!-- ── TAB : COMPÉTENCES ── --}}
|
||||
<div class="tab" data-group="primary" data-tab="skills">
|
||||
{{!-- Compétences --}}
|
||||
<div class="header upcase">{{ localize 'MGT2.Creature.TabSkills' }}</div>
|
||||
<div class="table-container">
|
||||
<div class="table-row heading color-1">
|
||||
<div class="row-item row-item-left upcase" style="flex: 3">{{ localize 'MGT2.Creature.SkillName' }}</div>
|
||||
<div class="row-item row-item-center upcase" style="flex: 1">{{ localize 'MGT2.Creature.SkillLevel' }}</div>
|
||||
<div class="row-item row-item-left upcase" style="flex: 3">{{ localize 'MGT2.Creature.SkillNote' }}</div>
|
||||
<div class="row-item row-item-right" style="flex: 0 0 3rem">
|
||||
<a data-action="addSkill" data-prop="skills" title="{{ localize 'MGT2.Creature.AddSkill' }}"><i class="fas fa-plus"></i></a>
|
||||
<div class="row-item row-item-right item-controls" style="flex: 0 0 3rem">
|
||||
{{#if isEditable}}<a data-action="addSkill" data-prop="skills" title="{{ localize 'MGT2.Creature.AddSkill' }}"><i class="fas fa-plus"></i></a>{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#each system.skills as |skill i|}}
|
||||
<div class="table-row">
|
||||
<div class="row-item row-item-left" style="flex: 3">
|
||||
@@ -124,29 +125,25 @@
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
{{#unless system.skills.length}}
|
||||
<div class="table-row">
|
||||
<div class="row-item row-item-center text-muted" style="flex:1">{{ localize 'MGT2.Creature.NoSkills' }}</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- ── TAB : ATTAQUES ── --}}
|
||||
<div class="tab" data-group="primary" data-tab="attacks">
|
||||
{{!-- Attaques --}}
|
||||
<div class="header upcase">{{ localize 'MGT2.Creature.TabAttacks' }}</div>
|
||||
<div class="table-container">
|
||||
<div class="table-row heading color-1">
|
||||
<div class="row-item row-item-left upcase" style="flex: 3">{{ localize 'MGT2.Creature.AttackName' }}</div>
|
||||
<div class="row-item row-item-center upcase" style="flex: 2">{{ localize 'MGT2.Creature.AttackDamage' }}</div>
|
||||
<div class="row-item row-item-left upcase" style="flex: 3">{{ localize 'MGT2.Creature.AttackSkill' }}</div>
|
||||
<div class="row-item row-item-left upcase" style="flex: 3">{{ localize 'MGT2.Items.Description' }}</div>
|
||||
<div class="row-item row-item-right" style="flex: 0 0 4rem">
|
||||
{{#if isEditable}}
|
||||
<a data-action="addAttack" data-prop="attacks" title="{{ localize 'MGT2.Creature.AddAttack' }}"><i class="fas fa-plus"></i></a>
|
||||
{{/if}}
|
||||
<div class="row-item row-item-right item-controls" style="flex: 0 0 4rem">
|
||||
{{#if isEditable}}<a data-action="addAttack" data-prop="attacks" title="{{ localize 'MGT2.Creature.AddAttack' }}"><i class="fas fa-plus"></i></a>{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#each system.attacks as |atk i|}}
|
||||
<div class="table-row">
|
||||
<div class="row-item row-item-left" style="flex: 3">
|
||||
@@ -163,6 +160,22 @@
|
||||
<span class="damage-formula">{{atk.damage}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="row-item row-item-left" style="flex: 3">
|
||||
{{#if ../isEditable}}
|
||||
<select name="system.attacks.{{i}}.skill">
|
||||
<option value="-1">— {{ localize 'MGT2.RollPrompt.NoSkill' }} —</option>
|
||||
{{#each ../system.skills as |sk si|}}
|
||||
<option value="{{si}}" {{#if (eq si ../skill)}}selected{{/if}}>{{sk.name}} ({{showDM sk.level}})</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
{{else}}
|
||||
{{#if (gte atk.skill 0)}}
|
||||
<span>{{lookup (lookup ../system.skills atk.skill) "name"}}</span>
|
||||
{{else}}
|
||||
<span class="text-muted">—</span>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="row-item row-item-left" style="flex: 3">
|
||||
{{#if ../isEditable}}
|
||||
<input type="text" name="system.attacks.{{i}}.description" value="{{atk.description}}" />
|
||||
@@ -178,29 +191,24 @@
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
{{#unless system.attacks.length}}
|
||||
<div class="table-row">
|
||||
<div class="row-item row-item-center text-muted" style="flex:1">{{ localize 'MGT2.Creature.NoAttacks' }}</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- ── TAB : TRAITS ── --}}
|
||||
<div class="tab" data-group="primary" data-tab="traits">
|
||||
{{!-- Traits --}}
|
||||
<div class="header upcase">{{ localize 'MGT2.Creature.TabTraits' }}</div>
|
||||
<div class="table-container">
|
||||
<div class="table-row heading color-1">
|
||||
<div class="row-item row-item-left upcase" style="flex: 3">{{ localize 'MGT2.Creature.TraitName' }}</div>
|
||||
<div class="row-item row-item-center upcase" style="flex: 1">{{ localize 'MGT2.Creature.TraitValue' }}</div>
|
||||
<div class="row-item row-item-left upcase" style="flex: 4">{{ localize 'MGT2.Items.Description' }}</div>
|
||||
<div class="row-item row-item-right" style="flex: 0 0 3rem">
|
||||
{{#if isEditable}}
|
||||
<a data-action="addTrait" data-prop="traits" title="{{ localize 'MGT2.Creature.AddTrait' }}"><i class="fas fa-plus"></i></a>
|
||||
{{/if}}
|
||||
<div class="row-item row-item-right item-controls" style="flex: 0 0 3rem">
|
||||
{{#if isEditable}}<a data-action="addTrait" data-prop="traits" title="{{ localize 'MGT2.Creature.AddTrait' }}"><i class="fas fa-plus"></i></a>{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#each system.traits as |trait i|}}
|
||||
<div class="table-row">
|
||||
<div class="row-item row-item-left" style="flex: 3">
|
||||
@@ -231,34 +239,32 @@
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
{{#unless system.traits.length}}
|
||||
<div class="table-row">
|
||||
<div class="row-item row-item-center text-muted" style="flex:1">{{ localize 'MGT2.Creature.NoTraits' }}</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>{{!-- /tab combat --}}
|
||||
|
||||
{{!-- ── TAB : INFORMATIONS ── --}}
|
||||
<div class="tab" data-group="primary" data-tab="info">
|
||||
<div class="creature-info-tab">
|
||||
<div class="field-group mt-1">
|
||||
<label class="upcase">{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.biography" rows="8" class="creature-description">{{system.biography}}</textarea>
|
||||
{{formInput systemFields.biography enriched=enrichedBiography value=system.biography name="system.biography" toggled=true}}
|
||||
</div>
|
||||
<div class="field-group mt-1">
|
||||
<label class="upcase">{{ localize 'MGT2.Items.Notes' }}</label>
|
||||
<textarea name="system.notes" rows="4" class="creature-description">{{system.notes}}</textarea>
|
||||
{{formInput systemFields.notes enriched=enrichedNotes value=system.notes name="system.notes" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- ── VERTICAL SIDEBAR TABS (outside window, right side) ── --}}
|
||||
<nav class="sheet-sidebar tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="skills" title="{{ localize 'MGT2.Creature.TabSkills' }}"><i class="fa-solid fa-head-side"></i><span class="tab-label">COMP.</span></a>
|
||||
<a class="item tab-select" data-tab="attacks" title="{{ localize 'MGT2.Creature.TabAttacks' }}"><i class="fa-solid fa-bolt"></i><span class="tab-label">ATT.</span></a>
|
||||
<a class="item tab-select" data-tab="traits" title="{{ localize 'MGT2.Creature.TabTraits' }}"><i class="fa-solid fa-star"></i><span class="tab-label">TRAITS</span></a>
|
||||
<a class="item tab-select" data-tab="combat" title="{{ localize 'MGT2.Creature.TabCombat' }}"><i class="fa-solid fa-swords"></i><span class="tab-label">COMBAT</span></a>
|
||||
<a class="item tab-select" data-tab="info" title="{{ localize 'MGT2.Creature.TabInfo' }}"><i class="fa-solid fa-circle-info"></i><span class="tab-label">INFO</span></a>
|
||||
</nav>
|
||||
|
||||
|
||||
@@ -1,16 +1,124 @@
|
||||
<form class="{{cssClass}} flexcol" autocomplete="off" style="align-content: flex-start;align-items: baseline;overflow: hidden;height: 100%;">
|
||||
<div class="{{cssClass}} vehicule-sheet flexcol" style="overflow: hidden; height: 100%;">
|
||||
|
||||
<!-- ── Header ─────────────────────────────────────── -->
|
||||
<section class="vehicule-header">
|
||||
<div class="vehicule-header-img">
|
||||
<img class="profile" src="{{img}}" data-edit="img" title="{{name}}" height="130" width="100" />
|
||||
</div>
|
||||
<div class="vehicule-header-img">
|
||||
<img class="profile" src="{{img}}" data-edit="img" title="{{name}}" />
|
||||
</div>
|
||||
<div class="vehicule-header-body">
|
||||
<input class="field-name" name="name" type="text" value="{{name}}" />
|
||||
<ul class="character-summary">
|
||||
<li class="w5-10"><input name="system.personal.title" type="text" value="{{system.personal.title}}" placeholder="{{ localize 'MGT2.Actor.PlaceholderTITLE' }}" /></li>
|
||||
<li class="w2-10"><input name="system.personal.species" type="text" value="{{system.personal.species}}" placeholder="{{ localize 'MGT2.Actor.PlaceholderSPECIES' }}" /></li>
|
||||
<li class="w1-10"><input name="system.personal.age" type="text" value="{{system.personal.age}}" placeholder="{{ localize 'MGT2.Actor.PlaceholderAGE' }}" /></li>
|
||||
<li class="w2-10"><input name="system.personal.wup" type="text" value="{{system.personal.wup}}" placeholder="{{ localize 'MGT2.Actor.PlaceholderUCP' }}" /></li>
|
||||
</ul>
|
||||
<input class="vehicule-name" name="name" type="text" value="{{name}}" />
|
||||
<div class="vehicule-header-stats">
|
||||
<div class="vehicule-stat-box vehicule-hull">
|
||||
<label>{{ localize 'MGT2.Vehicule.Hull' }}</label>
|
||||
<div class="vehicule-stat-value">
|
||||
<input type="number" name="system.life.value" value="{{system.life.value}}" />
|
||||
<span>/</span>
|
||||
<input type="number" name="system.life.max" value="{{system.life.max}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="vehicule-armor-group">
|
||||
<div class="vehicule-armor-label">{{ localize 'MGT2.Vehicule.Armor' }}</div>
|
||||
<div class="vehicule-armor-row">
|
||||
<div class="vehicule-stat-box vehicule-armor-box">
|
||||
<label>{{ localize 'MGT2.Vehicule.ArmorFront' }}</label>
|
||||
<div class="vehicule-stat-value">
|
||||
<input type="number" name="system.armor.front" value="{{system.armor.front}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="vehicule-stat-box vehicule-armor-box">
|
||||
<label>{{ localize 'MGT2.Vehicule.ArmorSides' }}</label>
|
||||
<div class="vehicule-stat-value">
|
||||
<input type="number" name="system.armor.sides" value="{{system.armor.sides}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="vehicule-stat-box vehicule-armor-box">
|
||||
<label>{{ localize 'MGT2.Vehicule.ArmorRear' }}</label>
|
||||
<div class="vehicule-stat-value">
|
||||
<input type="number" name="system.armor.rear" value="{{system.armor.rear}}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
||||
<!-- ── Body: tab content + vertical sidebar nav ──── -->
|
||||
<div class="vehicule-content">
|
||||
|
||||
<!-- Tab: Stats -->
|
||||
<div class="tab vehicule-tab" data-group="primary" data-tab="stats">
|
||||
<div class="vehicule-stats-grid">
|
||||
|
||||
<div class="vehicule-field">
|
||||
<label>{{ localize 'MGT2.Vehicule.SpeedCruise' }}</label>
|
||||
<select name="system.speed.cruise">
|
||||
{{selectOptions config.SpeedBands selected=system.speed.cruise localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="vehicule-field">
|
||||
<label>{{ localize 'MGT2.Vehicule.SpeedMax' }}</label>
|
||||
<select name="system.speed.maximum">
|
||||
{{selectOptions config.SpeedBands selected=system.speed.maximum localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="vehicule-field">
|
||||
<label>{{ localize 'MGT2.Vehicule.Agility' }}</label>
|
||||
<input type="number" name="system.agility" value="{{system.agility}}" />
|
||||
</div>
|
||||
|
||||
<div class="vehicule-field">
|
||||
<label>{{ localize 'MGT2.Vehicule.Crew' }}</label>
|
||||
<input type="number" name="system.crew" value="{{system.crew}}" />
|
||||
</div>
|
||||
|
||||
<div class="vehicule-field">
|
||||
<label>{{ localize 'MGT2.Vehicule.Passengers' }}</label>
|
||||
<input type="number" name="system.passengers" value="{{system.passengers}}" />
|
||||
</div>
|
||||
|
||||
<div class="vehicule-field">
|
||||
<label>{{ localize 'MGT2.Vehicule.Cargo' }}</label>
|
||||
<input type="number" name="system.cargo" value="{{system.cargo}}" />
|
||||
</div>
|
||||
|
||||
<div class="vehicule-field">
|
||||
<label>{{ localize 'MGT2.Vehicule.Shipping' }}</label>
|
||||
<input type="number" name="system.shipping" value="{{system.shipping}}" />
|
||||
</div>
|
||||
|
||||
<div class="vehicule-field">
|
||||
<label>{{ localize 'MGT2.Vehicule.Cost' }}</label>
|
||||
<input type="number" name="system.cost" value="{{system.cost}}" />
|
||||
</div>
|
||||
|
||||
<div class="vehicule-field">
|
||||
<label>{{ localize 'MGT2.Vehicule.Autopilot' }}</label>
|
||||
<input type="number" name="system.skills.autopilot" value="{{system.skills.autopilot}}" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tab: Description -->
|
||||
<div class="tab vehicule-tab" data-group="primary" data-tab="description">
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
|
||||
<!-- Vertical sidebar nav (positioned absolutely right of window) -->
|
||||
<nav class="sheet-sidebar tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="stats" title="{{ localize 'MGT2.Vehicule.TabStats' }}">
|
||||
<i class="fa-solid fa-gauge-high"></i>
|
||||
<span class="tab-label">STATS</span>
|
||||
</a>
|
||||
<a class="item tab-select" data-tab="description" title="{{ localize 'MGT2.Vehicule.TabDescription' }}">
|
||||
<i class="fa-solid fa-circle-info"></i>
|
||||
<span class="tab-label">INFO</span>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="dice-result">
|
||||
<div class="dice-formula">{{formula}}</div>
|
||||
{{{tooltip}}}
|
||||
<h4 class="dice-total {{#if success}}success{{else if failure}}failure{{/if}}">{{total}}</h4>
|
||||
<h4 class="dice-total {{#if success}}success{{else if failure}}failure{{/if}}" {{#if rollBreakdown}}data-tooltip="{{rollBreakdown}}"{{/if}}>{{total}}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -34,4 +34,10 @@
|
||||
{{else if failure}}
|
||||
<div class="mgt2-outcome is-failure"><i class="fa-solid fa-xmark"></i> {{ localize 'MGT2.Chat.Roll.Failure' }}</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if effectStr}}
|
||||
<div class="mgt2-effect {{#if success}}is-success{{else}}is-failure{{/if}}">
|
||||
{{ localize 'MGT2.Chat.Roll.Effect' }} <span class="mgt2-effect-value">{{effectStr}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<div class="dice-result">
|
||||
<div class="dice-formula">{{formula}}</div>
|
||||
{{{tooltip}}}
|
||||
<h4 class="dice-total {{#if rollSuccess}}success{{else if rollFailure}}failure{{/if}}">{{total}}</h4>
|
||||
<h4 class="dice-total {{#if rollSuccess}}success{{else if rollFailure}}failure{{/if}}" {{#if rollBreakdown}}data-tooltip="{{rollBreakdown}}"{{/if}}>{{total}}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -40,6 +40,14 @@
|
||||
<div class="mgt2-outcome is-failure"><i class="fa-solid fa-xmark"></i> {{ localize 'MGT2.Chat.Roll.Failure' }}</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if rollEffectStr}}
|
||||
<div class="mgt2-effect {{#if rollSuccess}}is-success{{else}}is-failure{{/if}}">
|
||||
{{ localize 'MGT2.Chat.Roll.Effect' }} <span class="mgt2-effect-value">{{rollEffectStr}}</span>
|
||||
{{#if healingAmount}}<span class="mgt2-healing-amount">({{ localize 'MGT2.Healing.Heals' }} {{healingAmount}})</span>{{/if}}
|
||||
{{#if surgeryDamageAmount}}<span class="mgt2-healing-amount">({{ localize 'MGT2.Healing.SurgeryDamage' }} {{surgeryDamageAmount}})</span>{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if showButtons}}
|
||||
<div class="mgt2-buttons">
|
||||
{{#if hasDamage}}
|
||||
@@ -48,8 +56,8 @@
|
||||
{{#if showRollDamage}}
|
||||
<button data-action="rollDamage">{{ localize 'MGT2.Chat.Roll.Damages' }}</button>
|
||||
{{/if}}
|
||||
{{#each cardButtons as |cardButton i|}}
|
||||
<button data-index="{{i}}" title="{{cardButton.label}}">{{cardButton.label}}</button>
|
||||
{{#each cardButtons as |cardButton|}}
|
||||
<button data-action="{{cardButton.action}}" title="{{cardButton.label}}">{{cardButton.label}}</button>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
@@ -6,13 +6,7 @@
|
||||
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
<input class="item-header-name" name="name" type="text" value="{{item.name}}" />
|
||||
</div>
|
||||
<div class="item-stats-bar">
|
||||
{{> systems/mgt2/templates/items/parts/sheet-physical-item.html }}
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Protection' }}</span>
|
||||
<input type="text" name="system.protection" value="{{system.protection}}" data-dtype="String" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav class="horizontal-tabs tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
||||
@@ -22,19 +16,28 @@
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
<div class="field-groups">
|
||||
<div class="field-group">
|
||||
<div class="item-details-grid">
|
||||
{{> systems/mgt2/templates/items/parts/sheet-physical-item-tab.html }}
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Protection' }}</label>
|
||||
<input type="text" name="system.protection" value="{{system.protection}}" data-dtype="String" class="short" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Radiations' }}</label>
|
||||
<input type="number" name="system.radiations" value="{{system.radiations}}" data-dtype="Number" class="short" />
|
||||
</div>
|
||||
<div class="field-row field-row--check">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.equipped" data-dtype="Boolean" {{checked system.equipped}} />{{ localize 'MGT2.Items.Equipped' }}</label>
|
||||
</div>
|
||||
<div class="field-group">
|
||||
<div class="field-row field-row--check">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.powered" data-dtype="Boolean" {{checked system.powered}} />{{ localize 'MGT2.Items.Powered' }}</label>
|
||||
</div>
|
||||
{{#if hadContainer}}
|
||||
<div class="field-group">
|
||||
<div class="field-row full">
|
||||
<label>{{ localize 'MGT2.Items.Storage' }}</label>
|
||||
<select name="system.container.id">
|
||||
{{selectOptions containers selected=system.container.id valueAttr="_id" labelAttr="name"}}
|
||||
@@ -42,10 +45,6 @@
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="field-group" style="margin-top:8px;">
|
||||
<label>{{ localize 'MGT2.Items.Radiations' }}</label>
|
||||
<input type="number" name="system.radiations" value="{{system.radiations}}" data-dtype="Number" />
|
||||
</div>
|
||||
<div class="table-container">
|
||||
<div class="table-row heading">
|
||||
<div class="row-item row-item-left row-item-30">{{ localize 'MGT2.Items.Options' }}</div>
|
||||
|
||||
@@ -6,27 +6,30 @@
|
||||
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
<input class="item-header-name" name="name" type="text" value="{{item.name}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="item-stats-bar">
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Terms' }}</span>
|
||||
<input type="number" name="system.terms" value="{{system.terms}}" data-dtype="Number" />
|
||||
</div>
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Rank' }}</span>
|
||||
<input type="number" name="system.rank" value="{{system.rank}}" data-dtype="Number" />
|
||||
</div>
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Assignment' }}</span>
|
||||
<input type="text" name="system.assignment" value="{{system.assignment}}" data-dtype="String" />
|
||||
</div>
|
||||
</div>
|
||||
<nav class="horizontal-tabs tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
||||
<a class="item tab-select" data-tab="events">{{ localize 'MGT2.Items.EventsMishaps' }}</a>
|
||||
</nav>
|
||||
<div class="tab-content-area">
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
<div class="item-details-grid">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Terms' }}</label>
|
||||
<input type="number" name="system.terms" value="{{system.terms}}" data-dtype="Number" class="short" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Rank' }}</label>
|
||||
<input type="number" name="system.rank" value="{{system.rank}}" data-dtype="Number" class="short" />
|
||||
</div>
|
||||
<div class="field-row full">
|
||||
<label>{{ localize 'MGT2.Items.Assignment' }}</label>
|
||||
<input type="text" name="system.assignment" value="{{system.assignment}}" data-dtype="String" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="events">
|
||||
<div class="table-container">
|
||||
|
||||
@@ -6,13 +6,7 @@
|
||||
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
<input class="item-header-name" name="name" type="text" value="{{item.name}}" />
|
||||
</div>
|
||||
<div class="item-stats-bar">
|
||||
{{> systems/mgt2/templates/items/parts/sheet-physical-item.html }}
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Processing' }}</span>
|
||||
<input type="number" name="system.processing" value="{{system.processing}}" data-dtype="Number" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav class="horizontal-tabs tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
||||
@@ -22,16 +16,21 @@
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
<div class="field-groups">
|
||||
<div class="field-group">
|
||||
<div class="item-details-grid">
|
||||
{{> systems/mgt2/templates/items/parts/sheet-physical-item-tab.html }}
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Processing' }}</label>
|
||||
<input type="number" name="system.processing" value="{{system.processing}}" data-dtype="Number" class="short" />
|
||||
</div>
|
||||
<div class="field-row field-row--check">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.equipped" data-dtype="Boolean" {{checked system.equipped}} />{{ localize 'MGT2.Items.Equipped' }}</label>
|
||||
</div>
|
||||
{{#if hadContainer}}
|
||||
<div class="field-group">
|
||||
<div class="field-row full">
|
||||
<label>{{ localize 'MGT2.Items.Storage' }}</label>
|
||||
<select name="system.container.id">
|
||||
{{selectOptions containers selected=system.container.id valueAttr="_id" labelAttr="name"}}
|
||||
|
||||
@@ -6,32 +6,6 @@
|
||||
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
<input class="item-header-name" name="name" type="text" value="{{item.name}}" />
|
||||
</div>
|
||||
<div class="item-stats-bar">
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Relation' }}</span>
|
||||
<select name="system.relation">
|
||||
{{selectOptions config.ContactRelations selected=system.relation localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Attitude' }}</span>
|
||||
<select name="system.attitude">
|
||||
{{selectOptions config.Attitudes selected=system.attitude localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Status' }}</span>
|
||||
<select name="system.status">
|
||||
{{selectOptions config.ContactStatus selected=system.status localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
{{#if settings.useGender}}
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Gender' }}</span>
|
||||
<input type="text" name="system.gender" value="{{system.gender}}" data-dtype="String" />
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<nav class="horizontal-tabs tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Informations' }}</a>
|
||||
<a class="item tab-select" data-tab="description">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
@@ -39,46 +13,68 @@
|
||||
</nav>
|
||||
<div class="tab-content-area">
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-groups">
|
||||
<div class="field-group">
|
||||
<div class="item-details-grid">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Relation' }}</label>
|
||||
<select name="system.relation">
|
||||
{{selectOptions config.ContactRelations selected=system.relation localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Attitude' }}</label>
|
||||
<select name="system.attitude">
|
||||
{{selectOptions config.Attitudes selected=system.attitude localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Status' }}</label>
|
||||
<select name="system.status">
|
||||
{{selectOptions config.ContactStatus selected=system.status localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
{{#if settings.useGender}}
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Gender' }}</label>
|
||||
<input type="text" name="system.gender" value="{{system.gender}}" data-dtype="String" />
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Species' }}</label>
|
||||
<input type="text" name="system.species" value="{{system.species}}" data-dtype="String" />
|
||||
</div>
|
||||
{{#if settings.usePronouns}}
|
||||
<div class="field-group">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Pronouns' }}</label>
|
||||
<input type="text" name="system.pronouns" value="{{system.pronouns}}" data-dtype="String" />
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="field-group" style="margin-top:8px;">
|
||||
<label>{{ localize 'MGT2.Items.Title' }}</label>
|
||||
<input type="text" name="system.title" value="{{system.title}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Nickname' }}</label>
|
||||
<input type="text" name="system.nickname" value="{{system.nickname}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="field-groups">
|
||||
<div class="field-group">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Title' }}</label>
|
||||
<input type="text" name="system.title" value="{{system.title}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Nickname' }}</label>
|
||||
<input type="text" name="system.nickname" value="{{system.nickname}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Homeworld' }}</label>
|
||||
<input type="text" name="system.homeworld" value="{{system.homeworld}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="field-group">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Location' }}</label>
|
||||
<input type="text" name="system.location" value="{{system.location}}" data-dtype="String" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Occupation' }}</label>
|
||||
<input type="text" name="system.occupation" value="{{system.occupation}}" data-dtype="String" />
|
||||
<div class="field-row full">
|
||||
<label>{{ localize 'MGT2.Items.Occupation' }}</label>
|
||||
<input type="text" name="system.occupation" value="{{system.occupation}}" data-dtype="String" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="description">
|
||||
{{editor system.description.value target="system.description" button=true editable=true}}
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="notes">
|
||||
{{editor system.notes target="system.notes" button=true editable=true}}
|
||||
{{formInput systemFields.notes enriched=enrichedNotes value=system.notes name="system.notes" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -7,22 +7,6 @@
|
||||
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
<input class="item-header-name" name="name" type="text" value="{{item.name}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="item-stats-bar">
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Weight' }} ({{unitlabels.weight}})</span>
|
||||
<input type="number" value="{{weight}}" readonly style="opacity:0.7;" />
|
||||
</div>
|
||||
<div class="item-stat-pill-checkbox">
|
||||
<input type="checkbox" name="system.onHand" id="onhand-{{item.id}}" data-dtype="Boolean" {{checked system.onHand}} />
|
||||
<label for="onhand-{{item.id}}">{{ localize 'MGT2.Items.OnHand' }}</label>
|
||||
</div>
|
||||
{{#if isGM}}
|
||||
<div class="item-stat-pill-checkbox">
|
||||
<input type="checkbox" name="system.locked" id="locked-{{item.id}}" data-dtype="Boolean" {{checked system.locked}} />
|
||||
<label for="locked-{{item.id}}">{{ localize 'MGT2.Items.Locked' }}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<nav class="horizontal-tabs tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
||||
@@ -34,20 +18,40 @@
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Location' }}</label>
|
||||
<input type="text" name="system.location" value="{{system.location}}" data-dtype="String" />
|
||||
<div class="item-details-grid">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Weight' }} ({{unitlabels.weight}})</label>
|
||||
<input type="number" value="{{weight}}" readonly style="opacity:0.7;" class="short" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Location' }}</label>
|
||||
<input type="text" name="system.location" value="{{system.location}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="field-row field-row--check">
|
||||
<label class="mgt2-checkbox">
|
||||
<input type="checkbox" name="system.onHand" id="onhand-{{item.id}}" data-dtype="Boolean" {{checked system.onHand}} />
|
||||
{{ localize 'MGT2.Items.OnHand' }}
|
||||
</label>
|
||||
</div>
|
||||
{{#if isGM}}
|
||||
<div class="field-row field-row--check">
|
||||
<label class="mgt2-checkbox">
|
||||
<input type="checkbox" name="system.locked" id="locked-{{item.id}}" data-dtype="Boolean" {{checked system.locked}} />
|
||||
{{ localize 'MGT2.Items.Locked' }}
|
||||
</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{#if isGM}}
|
||||
<div class="tab" data-group="primary" data-tab="tab3">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.LockedDescription' }}</label>
|
||||
<textarea name="system.lockedDescription" rows="6">{{system.lockedDescription}}</textarea>
|
||||
{{formInput systemFields.lockedDescription enriched=enrichedLockedDescription value=system.lockedDescription name="system.lockedDescription" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
@@ -12,32 +12,40 @@
|
||||
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
<input class="item-header-name" name="name" type="text" value="{{item.name}}" />
|
||||
</div>
|
||||
<div class="item-stats-bar">
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Type' }}</span>
|
||||
<select name="system.subType" style="font-size:0.75rem;">
|
||||
{{selectOptions config.DiseaseSubType selected=system.subType localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Difficulty' }}</span>
|
||||
<select name="system.difficulty" style="font-size:0.75rem;">
|
||||
{{selectOptions config.Difficulty selected=system.difficulty localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Damage' }}</span>
|
||||
<input type="text" name="system.damage" value="{{system.damage}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Interval' }}</span>
|
||||
<input type="text" name="system.interval" value="{{system.interval}}" data-dtype="String" />
|
||||
</div>
|
||||
</div>
|
||||
<nav class="horizontal-tabs tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
||||
</nav>
|
||||
<div class="tab-content-area">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.description" rows="8">{{system.description}}</textarea>
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
<div class="item-details-grid">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Type' }}</label>
|
||||
<select name="system.subType">
|
||||
{{selectOptions config.DiseaseSubType selected=system.subType localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Difficulty' }}</label>
|
||||
<select name="system.difficulty">
|
||||
{{selectOptions config.Difficulty selected=system.difficulty localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Damage' }}</label>
|
||||
<input type="text" name="system.damage" value="{{system.damage}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Interval' }}</label>
|
||||
<input type="text" name="system.interval" value="{{system.interval}}" data-dtype="String" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -14,15 +14,7 @@
|
||||
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
<input class="item-header-name" name="name" type="text" value="{{item.name}}" />
|
||||
</div>
|
||||
<div class="item-stats-bar">
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Type' }}</span>
|
||||
<select name="system.subType" style="font-size:0.75rem;">
|
||||
{{selectOptions config.EquipmentSubType selected=system.subType localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
{{> systems/mgt2/templates/items/parts/sheet-physical-item.html }}
|
||||
</div>
|
||||
|
||||
<nav class="horizontal-tabs tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
||||
@@ -32,16 +24,23 @@
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
<div class="field-groups">
|
||||
<div class="field-group">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.equipped" data-dtype="Boolean" {{checked system.equipped}} />Equipped</label>
|
||||
<div class="item-details-grid">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Type' }}</label>
|
||||
<select name="system.subType">
|
||||
{{selectOptions config.EquipmentSubType selected=system.subType localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
{{> systems/mgt2/templates/items/parts/sheet-physical-item-tab.html }}
|
||||
<div class="field-row field-row--check">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.equipped" data-dtype="Boolean" {{checked system.equipped}} />{{ localize 'MGT2.Items.Equipped' }}</label>
|
||||
</div>
|
||||
{{#if hadContainer}}
|
||||
<div class="field-group">
|
||||
<div class="field-row full">
|
||||
<label>{{ localize 'MGT2.Items.Storage' }}</label>
|
||||
<select name="system.container.id">
|
||||
{{selectOptions containers selected=system.container.id valueAttr="_id" labelAttr="name"}}
|
||||
|
||||
@@ -10,15 +10,7 @@
|
||||
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
<input class="item-header-name" name="name" type="text" value="{{item.name}}" />
|
||||
</div>
|
||||
<div class="item-stats-bar">
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Type' }}</span>
|
||||
<select name="system.subType" style="font-size:0.75rem;">
|
||||
{{selectOptions config.ItemSubType selected=system.subType localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
{{> systems/mgt2/templates/items/parts/sheet-physical-item.html }}
|
||||
</div>
|
||||
|
||||
<nav class="horizontal-tabs tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
||||
@@ -27,34 +19,41 @@
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
{{#if hadContainer}}
|
||||
<div class="field-groups">
|
||||
<div class="item-details-grid">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Type' }}</label>
|
||||
<select name="system.subType">
|
||||
{{selectOptions config.ItemSubType selected=system.subType localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
{{> systems/mgt2/templates/items/parts/sheet-physical-item-tab.html }}
|
||||
{{#if hadContainer}}
|
||||
<div class="field-row full">
|
||||
<label>{{ localize 'MGT2.Items.Storage' }}</label>
|
||||
<select name="system.container.id">
|
||||
{{selectOptions containers selected=system.container.id valueAttr="_id" labelAttr="name"}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if (eq system.subType "software")}}
|
||||
<div class="field-group">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Bandwidth' }}</label>
|
||||
<input type="number" name="system.software.bandwidth" value="{{system.software.bandwidth}}" data-dtype="Number" class="short" />
|
||||
</div>
|
||||
{{#if hadContainer}}
|
||||
<div class="field-row full">
|
||||
<label>{{ localize 'MGT2.Items.Computer' }}</label>
|
||||
<select name="system.software.computerId">
|
||||
{{selectOptions computers selected=system.software.computerId valueAttr="_id" labelAttr="name"}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Storage' }}</label>
|
||||
<select name="system.container.id">
|
||||
{{selectOptions containers selected=system.container.id valueAttr="_id" labelAttr="name"}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if (eq system.subType "software")}}
|
||||
<div class="field-group" style="margin-top:8px;">
|
||||
<label>{{ localize 'MGT2.Items.Bandwidth' }}</label>
|
||||
<input type="number" name="system.software.bandwidth" value="{{system.software.bandwidth}}" data-dtype="Number" />
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
24
templates/items/parts/sheet-physical-item-tab.html
Normal file
24
templates/items/parts/sheet-physical-item-tab.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Quantity' }}</label>
|
||||
<input type="number" name="system.quantity" value="{{system.quantity}}" data-dtype="Number" integer="true" positive="true" class="short" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Weight' }} ({{unitlabels.weight}})</label>
|
||||
<input type="number" name="weight" value="{{weight}}" data-dtype="Number" step="0.5" class="short" />
|
||||
</div>
|
||||
<div class="field-row field-row--check">
|
||||
<label class="mgt2-checkbox">
|
||||
<input type="checkbox" name="system.weightless" data-dtype="Boolean" {{checked system.weightless}} />
|
||||
{{ localize 'MGT2.Items.Weightless' }}
|
||||
</label>
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Cost' }}</label>
|
||||
<input type="number" name="system.cost" value="{{system.cost}}" data-dtype="Number" step="1" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.TL' }}</label>
|
||||
<select name="system.tl">
|
||||
{{selectOptions config.TL selected=system.tl localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
@@ -15,11 +15,11 @@
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
{{editor system.descriptionLong target="system.descriptionLong" button=true editable=true}}
|
||||
{{formInput systemFields.descriptionLong enriched=enrichedDescriptionLong value=system.descriptionLong name="system.descriptionLong" toggled=true}}
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab3">
|
||||
<div class="table-container">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="{{cssClass}} flexrow itemsheet">
|
||||
<div class="{{cssClass}} itemsheet">
|
||||
<div class="item-type-bar">
|
||||
{{#if (eq system.subType "skill")}}
|
||||
<span class="item-type-label"><i class="fas fa-star"></i> {{localize 'MGT2.TalentSubType.skill'}}</span>
|
||||
@@ -10,68 +10,75 @@
|
||||
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
<input class="item-header-name" name="name" type="text" value="{{item.name}}" />
|
||||
</div>
|
||||
<div class="item-stats-bar">
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Type' }}</span>
|
||||
<select name="system.subType" style="font-size:0.75rem;">
|
||||
{{selectOptions config.TalentSubType selected=system.subType localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
{{#if (eq system.subType "skill")}}
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Level' }}</span>
|
||||
<input type="number" name="system.level" value="{{system.level}}" data-dtype="Number" />
|
||||
</div>
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Speciality' }}</span>
|
||||
<input type="text" name="system.skill.speciality" value="{{system.skill.speciality}}" data-dtype="String" />
|
||||
</div>
|
||||
{{else if (eq system.subType "psionic")}}
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Level' }}</span>
|
||||
<input type="number" name="system.level" value="{{system.level}}" data-dtype="Number" />
|
||||
</div>
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.PSICost' }}</span>
|
||||
<input type="number" name="system.psionic.cost" value="{{system.psionic.cost}}" data-dtype="Number" />
|
||||
</div>
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Reach' }}</span>
|
||||
<select name="system.psionic.reach">
|
||||
<option></option>
|
||||
{{selectOptions config.PsionicReach selected=system.psionic.reach localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<nav class="horizontal-tabs tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
<a class="item tab-select" data-tab="config">{{ localize 'MGT2.Items.Configuration' }}</a>
|
||||
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
||||
<a class="item tab-select" data-tab="tab3">{{ localize 'MGT2.Items.Configuration' }}</a>
|
||||
</nav>
|
||||
<div class="tab-content-area">
|
||||
|
||||
{{!-- Tab 1 : Description --}}
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
{{#if (eq system.subType "psionic")}}
|
||||
<div class="field-groups" style="margin-bottom:8px;">
|
||||
<div class="field-group">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Tab 2 : Détails --}}
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
<div class="item-details-grid">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Type' }}</label>
|
||||
<select name="system.subType">
|
||||
{{selectOptions config.TalentSubType selected=system.subType localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Level' }}</label>
|
||||
<input type="number" name="system.level" value="{{system.level}}" data-dtype="Number" class="short" />
|
||||
</div>
|
||||
{{#if (eq system.subType "skill")}}
|
||||
<div class="field-row full">
|
||||
<label>{{ localize 'MGT2.Items.Speciality' }}</label>
|
||||
<input type="text" name="system.skill.speciality" value="{{system.skill.speciality}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="field-row field-row--check">
|
||||
<label class="mgt2-checkbox">
|
||||
<input type="checkbox" name="system.skill.reduceEncumbrance" data-dtype="Boolean" {{checked system.skill.reduceEncumbrance}} />
|
||||
{{ localize 'MGT2.Items.ReduceEncumbrance' }}
|
||||
</label>
|
||||
</div>
|
||||
{{else if (eq system.subType "psionic")}}
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.PSICost' }}</label>
|
||||
<input type="number" name="system.psionic.cost" value="{{system.psionic.cost}}" data-dtype="Number" class="short" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Reach' }}</label>
|
||||
<select name="system.psionic.reach">
|
||||
<option value=""></option>
|
||||
{{selectOptions config.PsionicReach selected=system.psionic.reach localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="field-row full">
|
||||
<label>{{ localize 'MGT2.Items.Duration' }}</label>
|
||||
<div style="display:flex;gap:4px;">
|
||||
<div class="range-inputs">
|
||||
<input type="text" name="system.psionic.duration" value="{{system.psionic.duration}}" data-dtype="String" />
|
||||
<select name="system.psionic.durationUnit">
|
||||
{{selectOptions config.Durations selected=system.psionic.durationUnit localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="config">
|
||||
{{#if (eq system.subType "skill")}}
|
||||
<div class="field-group">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.skill.reduceEncumbrance" data-dtype="Boolean" {{checked system.skill.reduceEncumbrance}} />{{ localize 'MGT2.Items.ReduceEncumbrance' }}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{!-- Tab 3 : Configuration (jet de dé) --}}
|
||||
<div class="tab" data-group="primary" data-tab="tab3">
|
||||
{{> systems/mgt2/templates/items/parts/sheet-configuration.html }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,28 +6,7 @@
|
||||
<img class="item-header-img" src="{{item.img}}" data-edit="img" data-tooltip="{{item.name}}" />
|
||||
<input class="item-header-name" name="name" type="text" value="{{item.name}}" />
|
||||
</div>
|
||||
<div class="item-stats-bar">
|
||||
{{> systems/mgt2/templates/items/parts/sheet-physical-item.html }}
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Damage' }}</span>
|
||||
<input type="text" name="system.damage" value="{{system.damage}}" data-dtype="String" />
|
||||
</div>
|
||||
{{#unless system.range.isMelee}}
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Range' }}</span>
|
||||
<div style="display:flex;gap:3px;align-items:center;">
|
||||
<input type="text" name="system.range.value" value="{{system.range.value}}" data-dtype="String" style="width:3rem;" />
|
||||
<select name="system.range.unit" style="width:5rem;">
|
||||
{{selectOptions config.MetricRange selected=system.range.unit localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
<div class="item-stat-pill">
|
||||
<span class="stat-label">{{ localize 'MGT2.Items.Magazine' }}</span>
|
||||
<input type="number" name="system.magazine" value="{{system.magazine}}" data-dtype="Number" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav class="horizontal-tabs tabs" data-group="primary">
|
||||
<a class="item tab-select" data-tab="tab1">{{ localize 'MGT2.Items.Description' }}</a>
|
||||
<a class="item tab-select" data-tab="tab2">{{ localize 'MGT2.Items.Details' }}</a>
|
||||
@@ -37,19 +16,61 @@
|
||||
<div class="tab" data-group="primary" data-tab="tab1">
|
||||
<div class="field-group">
|
||||
<label>{{ localize 'MGT2.Items.Description' }}</label>
|
||||
<textarea name="system.description" rows="6">{{system.description}}</textarea>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab" data-group="primary" data-tab="tab2">
|
||||
<div class="field-groups">
|
||||
<div class="field-group">
|
||||
<div class="item-details-grid">
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Quantity' }}</label>
|
||||
<input type="number" name="system.quantity" value="{{system.quantity}}" data-dtype="Number" integer="true" positive="true" class="short" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.TL' }}</label>
|
||||
<select name="system.tl">{{selectOptions config.TL selected=system.tl localize=true}}</select>
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Weight' }} ({{unitlabels.weight}})</label>
|
||||
<input type="number" name="weight" value="{{weight}}" data-dtype="Number" step="0.5" class="short" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Cost' }}</label>
|
||||
<input type="number" name="system.cost" value="{{system.cost}}" data-dtype="Number" step="1" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Damage' }}</label>
|
||||
<input type="text" name="system.damage" value="{{system.damage}}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Magazine' }}</label>
|
||||
<input type="number" name="system.magazine" value="{{system.magazine}}" data-dtype="Number" class="short" />
|
||||
</div>
|
||||
{{#unless system.range.isMelee}}
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.Range' }}</label>
|
||||
<div class="range-inputs">
|
||||
<input type="text" name="system.range.value" value="{{system.range.value}}" data-dtype="String" />
|
||||
<select name="system.range.unit">
|
||||
{{selectOptions config.MetricRange selected=system.range.unit localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
<div class="field-row">
|
||||
<label>{{ localize 'MGT2.Items.MagazineCost' }}</label>
|
||||
<input type="number" name="system.magazineCost" value="{{system.magazineCost}}" data-dtype="Number" class="short" />
|
||||
</div>
|
||||
<div class="field-row field-row--check">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.weightless" data-dtype="Boolean" {{checked system.weightless}} />{{ localize 'MGT2.Items.Weightless' }}</label>
|
||||
</div>
|
||||
<div class="field-row field-row--check">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.range.isMelee" data-dtype="Boolean" {{checked system.range.isMelee}} />{{ localize 'MGT2.Items.IsMelee' }}</label>
|
||||
</div>
|
||||
<div class="field-group">
|
||||
<div class="field-row field-row--check">
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="system.equipped" data-dtype="Boolean" {{checked system.equipped}} />{{ localize 'MGT2.Items.Equipped' }}</label>
|
||||
</div>
|
||||
{{#if hadContainer}}
|
||||
<div class="field-group">
|
||||
<div class="field-row full">
|
||||
<label>{{ localize 'MGT2.Items.Storage' }}</label>
|
||||
<select name="system.container.id">
|
||||
{{selectOptions containers selected=system.container.id valueAttr="_id" labelAttr="name"}}
|
||||
@@ -57,10 +78,6 @@
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="field-group" style="margin-top:8px;">
|
||||
<label>{{ localize 'MGT2.Items.MagazineCost' }}</label>
|
||||
<input type="number" name="system.magazineCost" value="{{system.magazineCost}}" data-dtype="Number" />
|
||||
</div>
|
||||
<div class="table-container">
|
||||
<div class="table-row heading">
|
||||
<div class="row-item row-item-left">{{ localize 'MGT2.Items.Trait' }}</div>
|
||||
|
||||
@@ -1,4 +1,32 @@
|
||||
<form class="{{cssClass}} flexcol" autocomplete="off" style="padding: 0 6px;">
|
||||
|
||||
{{!-- Hidden fields for healing --}}
|
||||
{{#if showHeal}}
|
||||
<input type="hidden" name="healType" value="{{healType}}" />
|
||||
{{/if}}
|
||||
|
||||
{{!-- ── Mode CRÉATURE : sélecteur de compétence de la créature ── --}}
|
||||
{{#if isCreature}}
|
||||
|
||||
{{#if showSkillSelector}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize 'MGT2.RollPrompt.CreatureSkill' }}</label>
|
||||
<select name="creatureSkillIndex">
|
||||
<option value="-1">— {{ localize 'MGT2.RollPrompt.NoSkill' }} —</option>
|
||||
{{#each creatureSkills}}
|
||||
<option value="{{@index}}" {{#if (eq @index ../selectedSkillIndex)}}selected{{/if}}>{{name}} ({{showDM level}})</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="form-group roll-prompt-info">
|
||||
<span class="roll-prompt-skill-name">{{skillName}}</span>
|
||||
<span class="roll-prompt-skill-level">{{showDM skillLevel}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{!-- ── Mode PERSONNAGE : caractéristique + compétence + états ── --}}
|
||||
{{else}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize 'MGT2.RollPrompt.CharacteristicDM' }}</label>
|
||||
<select name="characteristic">
|
||||
@@ -25,14 +53,34 @@
|
||||
<label class="mgt2-checkbox"><input type="checkbox" name="fatigue" data-dtype="Boolean" {{checked fatigue}} />{{ localize 'MGT2.RollPrompt.FatigueDM' }}</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
{{/if}}
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{ localize 'MGT2.RollPrompt.CustomDM' }}</label>
|
||||
<input type="text" name="customDM" maxlength="15" />
|
||||
<select name="customDM">
|
||||
<option value="-8">−8</option>
|
||||
<option value="-7">−7</option>
|
||||
<option value="-6">−6</option>
|
||||
<option value="-5">−5</option>
|
||||
<option value="-4">−4</option>
|
||||
<option value="-3">−3</option>
|
||||
<option value="-2">−2</option>
|
||||
<option value="-1">−1</option>
|
||||
<option value="0" selected>0</option>
|
||||
<option value="1">+1</option>
|
||||
<option value="2">+2</option>
|
||||
<option value="3">+3</option>
|
||||
<option value="4">+4</option>
|
||||
<option value="5">+5</option>
|
||||
<option value="6">+6</option>
|
||||
<option value="7">+7</option>
|
||||
<option value="8">+8</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ localize 'MGT2.RollPrompt.Difficulty' }}</label>
|
||||
<select name="difficulty">
|
||||
<option></option>
|
||||
<option value="">—</option>
|
||||
{{selectOptions config.Difficulty selected = difficulty localize = true}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user