fix: Correct critical bugs and complete Creature/Group DataModel implementation
- Fix TypeError: controls.find is not a function in hooks.mjs - Fix undefined 'npc' variable in applications.mjs - Fix CONFIG.VERMINE.model undefined by checking game.system.template existence - Fix TypeError: html.find(...).forEach is not a function in roll.mjs - Fix Cannot set properties of undefined (setting 'initial') in actor.mjs - Fix Cannot read properties of undefined (reading 'difficulty') in actor.mjs - Fix ActiveEffect application phase 'initial' already completed by adding combatStatus to base template - Fix Missing helper: 'select' in roll-dialog.hbs (removed invalid Handlebars select block) - Add SIZE_LEVELS labels to creatureSizeLevels config - Add SIZE_LEVELS translations to fr.json - Add combatStatus to base actor template - Convert all .html templates to .hbs for Foundry v14 compatibility - Update item-sheet.mjs to use .hbs extension - Update handlebars-manager.mjs to use .hbs for all partials Complete Vermine2047 Creature and Group sheet implementation: - Creature: Pattern, Size, Role, Pack with computed values - Group: Totem, Reserve, Morale, Objectives, Members management - All templates functional with proper styling Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -4,107 +4,154 @@
|
||||
<header class="sheet-header">
|
||||
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="100" width="100"/>
|
||||
<div class="header-fields">
|
||||
<div class="resources grid grid-3col">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="Nom"/>
|
||||
<div class="resources grid grid-4col">
|
||||
<h1 class="charname grid-span-2">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'IDENTITY.name' }}"/>
|
||||
</h1>
|
||||
<div class="resource-content flexrow row text-right">
|
||||
<label for="system.pack.value" class="resource-label">{{ localize 'ADVERSITY.pack'}}</label>
|
||||
<select
|
||||
name="system.pack.value"
|
||||
id="system.pack.value"
|
||||
data-dtype="Number"
|
||||
>
|
||||
<option value="0">{{localize 'VERMINE.none'}}</option>
|
||||
{{#each ../config.creaturePackLevels}}
|
||||
{{#if @key}}
|
||||
<option
|
||||
value="{{@key}}"
|
||||
{{#ife @key ../system.pack.value}}selected{{/ife}}
|
||||
>{{@key}}</option>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</select>
|
||||
<div class="resource flex-group-center grid-span-1">
|
||||
<label for="system.pattern.value" class="resource-label">{{ localize 'ADVERSITY.pattern' }}</label>
|
||||
<div class="resource-content">
|
||||
<select name="system.pattern.value" id="system.pattern.value" data-dtype="Number">
|
||||
{{#each ../config.creaturePatternLevels}}
|
||||
<option value="{{@key}}" {{#ife @key ../system.pattern.value}}selected{{/ife}}>
|
||||
{{localize this.label}} ({{@key}})
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="resource flex-group-center grid-span-1">
|
||||
<label for="system.role.value" class="resource-label">{{ localize 'ADVERSITY.role' }}</label>
|
||||
<div class="resource-content">
|
||||
<select name="system.role.value" id="system.role.value" data-dtype="Number">
|
||||
{{#each ../config.creatureRoleLevels}}
|
||||
<option value="{{@key}}" {{#ife @key ../system.role.value}}selected{{/ife}}>
|
||||
{{localize this.label}} ({{@key}})
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="resources grid grid-3col">
|
||||
<div class="resources grid grid-4col">
|
||||
<div class="resource flex-group-center">
|
||||
<label for="system.pattern.value" class="resource-label">{{ localize 'ADVERSITY.pattern'}}</label>
|
||||
<label for="system.size.value" class="resource-label">{{ localize 'ADVERSITY.size' }}</label>
|
||||
<div class="resource-content">
|
||||
<select
|
||||
name="system.pattern.value"
|
||||
id="system.pattern.value"
|
||||
data-dtype="Number"
|
||||
>
|
||||
{{#each ../config.creaturePatternLevels}}
|
||||
<option
|
||||
value="{{@key}}"
|
||||
{{#ife @key ../system.pattern.value}}selected{{/ife}}
|
||||
>{{localize this.label}} ({{@key}})</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="resource flex-group-center">
|
||||
<label for="system.size.value" class="resource-label">{{ localize 'ADVERSITY.size'}}</label>
|
||||
<div class="resource-content">
|
||||
<select
|
||||
name="system.size.value"
|
||||
id="system.size.value"
|
||||
data-dtype="Number"
|
||||
>
|
||||
<select name="system.size.value" id="system.size.value" data-dtype="Number">
|
||||
{{#each ../config.creatureSizeLevels}}
|
||||
<option
|
||||
value="{{@key}}"
|
||||
{{#ife @key ../system.size.value}}selected{{/ife}}
|
||||
>{{@key}}</option>
|
||||
<option value="{{@key}}" {{#ife @key ../system.size.value}}selected{{/ife}}>
|
||||
{{@key}}
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="resource flex-group-center">
|
||||
<label for="system.role.value" class="resource-label">{{ localize 'ADVERSITY.role'}}</label>
|
||||
<label for="system.pack.value" class="resource-label">{{ localize 'ADVERSITY.pack' }}</label>
|
||||
<div class="resource-content">
|
||||
<select
|
||||
name="system.role.value"
|
||||
id="system.role.value"
|
||||
data-dtype="Number"
|
||||
>
|
||||
{{#each ../config.creatureRoleLevels}}
|
||||
<option
|
||||
value="{{@key}}"
|
||||
{{#ife @key ../system.role.value}}selected{{/ife}}
|
||||
>{{localize this.label}} ({{@key}})</option>
|
||||
<select name="system.pack.value" id="system.pack.value" data-dtype="Number">
|
||||
<option value="0">{{localize 'VERMINE.none'}}</option>
|
||||
{{#each ../config.creaturePackLevels}}
|
||||
{{#if @key}}
|
||||
<option value="{{@key}}" {{#ife @key ../system.pack.value}}selected{{/ife}}>
|
||||
{{@key}}
|
||||
</option>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="resource flex-group-center grid-span-2">
|
||||
<label class="resource-label">{{ localize 'VERMINE.computed_values' }}</label>
|
||||
<div class="resource-content">
|
||||
<span>{{ localize 'VERMINE.total_attack' }}: {{ system.computed.attack }}</span>
|
||||
<span style="margin-left: 10px;">{{ localize 'ADVERSITY.damage' }}: {{ system.computed.damage }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
<nav class="sheet-tabs tabs" data-group="primary">
|
||||
{{!-- Default tab is specified in actor-sheet.mjs --}}
|
||||
<a class="item" data-tab="description">{{ localize 'VERMINE.abilities'}}</a>
|
||||
<a class="item" data-tab="effects">{{ localize 'VERMINE.combat'}}</a>
|
||||
<a class="item" data-tab="description">{{ localize 'VERMINE.information' }}</a>
|
||||
<a class="item" data-tab="stats">{{ localize 'VERMINE.stats' }}</a>
|
||||
<a class="item" data-tab="combat">{{ localize 'VERMINE.combat' }}</a>
|
||||
<a class="item" data-tab="effects">{{ localize 'UI.effects.name' }}</a>
|
||||
</nav>
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{!-- Biography Tab --}}
|
||||
<div class="tab stats" data-group="primary" data-tab="description">
|
||||
{{!-- Information Tab --}}
|
||||
<div class="tab biography" data-group="primary" data-tab="description">
|
||||
<div class="grid grid-2col">
|
||||
<div>
|
||||
<h4>{{ localize 'IDENTITY.profile' }}</h4>
|
||||
<input type="text" name="system.identity.profile" value="{{system.identity.profile}}"
|
||||
placeholder="Profil..." style="width: 100%;" />
|
||||
</div>
|
||||
<div>
|
||||
<h4>{{ localize 'IDENTITY.origin' }}</h4>
|
||||
<input type="text" name="system.identity.origin" value="{{system.identity.origin}}"
|
||||
placeholder="Origine..." style="width: 100%;" />
|
||||
</div>
|
||||
<div>
|
||||
<h4>{{ localize 'IDENTITY.theme' }}</h4>
|
||||
<input type="text" name="system.identity.theme" value="{{system.identity.theme}}"
|
||||
placeholder="Concept..." style="width: 100%;" />
|
||||
</div>
|
||||
<div>
|
||||
<h4>{{ localize 'ADVERSITY.skills' }}</h4>
|
||||
<input type="text" name="system.skills" value="{{system.skills}}"
|
||||
placeholder="Compétences..." style="width: 100%;" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid-span-2">
|
||||
<h4>{{ localize 'IDENTITY.notes' }}</h4>
|
||||
{{editor system.identity.notes target="system.identity.notes" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
{{!-- Modes --}}
|
||||
<div class="grid-span-2">
|
||||
<h4>{{ localize 'VERMINE.modes' }}</h4>
|
||||
<div class="grid grid-3col">
|
||||
<div>
|
||||
<label>
|
||||
<input type="checkbox" name="system.modes.survival"
|
||||
{{#if system.modes.survival}}checked{{/if}} data-dtype="Boolean" />
|
||||
{{ localize 'GAME_MODES.survival' }}
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input type="checkbox" name="system.modes.nightmare"
|
||||
{{#if system.modes.nightmare}}checked{{/if}} data-dtype="Boolean" />
|
||||
{{ localize 'GAME_MODES.nightmare' }}
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input type="checkbox" name="system.modes.apocalypse"
|
||||
{{#if system.modes.apocalypse}}checked{{/if}} data-dtype="Boolean" />
|
||||
{{ localize 'GAME_MODES.apocalypse' }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Stats Tab --}}
|
||||
<div class="tab stats" data-group="primary" data-tab="stats">
|
||||
<h3>{{ localize 'VERMINE.base_values' }}</h3>
|
||||
<section class="grid grid-3col gap-md">
|
||||
<div class="mdb">
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.pattern'}}</h4>
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.pattern' }}: {{ patternLabel }}</h4>
|
||||
<ul class="unstyled">
|
||||
<li>{{ localize 'ADVERSITY.attack'}} {{ creaturePatternLevel "attack" system.pattern.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.damage'}} {{ creaturePatternLevel "damage" system.pattern.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.wounds'}}
|
||||
<li>{{ localize 'ADVERSITY.attack' }}: {{ creaturePatternLevel "attack" system.pattern.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.damage' }}: {{ creaturePatternLevel "damage" system.pattern.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.wounds' }}:
|
||||
{{ creaturePatternLevel "minorWound" system.pattern.value }}/
|
||||
{{ creaturePatternLevel "majorWound" system.pattern.value }}/
|
||||
{{ creaturePatternLevel "deadlyWound" system.pattern.value }}
|
||||
@@ -112,11 +159,11 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="mdb">
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.size'}}</h4>
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.size' }}: {{ sizeLabel }}</h4>
|
||||
<ul class="unstyled">
|
||||
<li>{{ localize 'ADVERSITY.attack'}} {{ creatureSizeLevel "attack" system.size.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.vigor'}} {{ creatureSizeLevel "vigor" system.size.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.wounds'}}
|
||||
<li>{{ localize 'ADVERSITY.attack' }}: {{ creatureSizeLevel "attack" system.size.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.vigor' }}: {{ creatureSizeLevel "vigor" system.size.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.wounds' }}:
|
||||
{{ creatureSizeLevel "minorWound" system.size.value }}/
|
||||
{{ creatureSizeLevel "majorWound" system.size.value }}/
|
||||
{{ creatureSizeLevel "deadlyWound" system.size.value }}
|
||||
@@ -124,22 +171,23 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="mdb">
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.role'}}</h4>
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.role' }}: {{ roleLabel }}</h4>
|
||||
<ul class="unstyled">
|
||||
<li>{{ localize 'ADVERSITY.reaction'}} {{ creatureRoleLevel "reaction" system.role.value }} + {{ creatureRoleLevel "reaction_bonus" system.role.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.pools'}} {{ creatureRoleLevel "pools" system.role.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.gear'}} {{ creatureRoleLevel "gear" system.role.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.protection'}} {{ creatureRoleLevel "protection" system.role.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.reaction' }}: {{ creatureRoleLevel "reaction" system.role.value }} + {{ creatureRoleLevel "reaction_bonus" system.role.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.pools' }}: {{ creatureRoleLevel "pools" system.role.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.gear' }}: {{ creatureRoleLevel "gear" system.role.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.protection' }}: {{ creatureRoleLevel "protection" system.role.value }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section class="grid grid-3col gap-md">
|
||||
|
||||
<section class="grid grid-2col gap-md">
|
||||
<div class="mdb">
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.pack'}}</h4>
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.pack' }}: {{ packLabel }}</h4>
|
||||
<ul class="unstyled">
|
||||
<li>{{ localize 'ADVERSITY.attack'}} {{ creaturePackLevel "attack" system.pack.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.damage'}} {{ creaturePackLevel "damage" system.pack.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.wounds'}}
|
||||
<li>{{ localize 'ADVERSITY.attack' }}: {{ creaturePackLevel "attack" system.pack.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.damage' }}: {{ creaturePackLevel "damage" system.pack.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.wounds' }}:
|
||||
{{ creaturePackLevel "minorWound" system.pack.value }}/
|
||||
{{ creaturePackLevel "majorWound" system.pack.value }}/
|
||||
{{ creaturePackLevel "deadlyWound" system.pack.value }}
|
||||
@@ -147,62 +195,27 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="mdb">
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.skills'}}</h4>
|
||||
<h4 class="align-center">{{ localize 'VERMINE.wound_thresholds' }}</h4>
|
||||
<ul class="unstyled">
|
||||
<li>
|
||||
<input type="text" name="system.skills" value="{{ system.skills }}" data-dtype="String" placeholder="{{ localize 'ADVERSITY.skills' }}"/>
|
||||
</li>
|
||||
<li>{{ localize 'VERMINE.wounds.light' }}: {{ system.minorWound.threshold }}D</li>
|
||||
<li>{{ localize 'VERMINE.wounds.heavy' }}: {{ system.majorWound.threshold }}D</li>
|
||||
<li>{{ localize 'VERMINE.wounds.deadly' }}: {{ system.deadlyWound.threshold }}D</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="mdb">
|
||||
<h4 class="align-center">{{ localize 'VERMINE.modes'}}</h4>
|
||||
<ul class="unstyled">
|
||||
<li>
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
name="system.modes.survival"
|
||||
{{#if system.modes.survival}}checked{{/if}}
|
||||
data-dtype="Boolean"
|
||||
/>
|
||||
{{ localize 'GAME_MODES.survival' }}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
name="system.modes.nightmare"
|
||||
{{#if system.modes.nightmare}}checked{{/if}}
|
||||
data-dtype="Boolean"
|
||||
/>
|
||||
{{ localize 'GAME_MODES.nightmare' }}
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
name="system.modes.apocalypse"
|
||||
{{#if system.modes.apocalypse}}checked{{/if}}
|
||||
data-dtype="Boolean"
|
||||
/>
|
||||
{{ localize 'GAME_MODES.apocalypse' }}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section class="flexcol col gap-md">
|
||||
<h4 class="align-center">{{ localize 'IDENTITY.notes'}}</h4>
|
||||
{{editor system.biography target="system.biography" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{{!-- Active Effects Tab --}}
|
||||
<div class="tab effects flexcol" data-group="primary" data-tab="effects">
|
||||
{{!-- Combat Tab --}}
|
||||
<div class="tab effects" data-group="primary" data-tab="combat">
|
||||
<h3>{{ localize 'VERMINE.combat' }}</h3>
|
||||
{{> "systems/vermine2047/templates/actor/creature/creature-combat.hbs"}}
|
||||
</div>
|
||||
|
||||
{{!-- Effects Tab --}}
|
||||
<div class="tab effects" data-group="primary" data-tab="effects">
|
||||
<h3>{{ localize 'UI.effects.name' }}</h3>
|
||||
{{> "systems/vermine2047/templates/actor/parts/actor-effects.hbs"}}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
||||
|
||||
@@ -7,36 +7,47 @@
|
||||
<nav class="sheet-tabs tabs sheet-navigation" data-group="primary">
|
||||
{{!-- Default tab is specified in actor-sheet.mjs --}}
|
||||
<a class="item" data-tab="description">
|
||||
<i data-tooltip="{{localize 'VERMINE.information' }}"
|
||||
<i data-tooltip="{{localize 'VERMINE.information'}}"
|
||||
class="fas fa-star"></i>
|
||||
</a>
|
||||
|
||||
<a class="item" data-tab="gear">
|
||||
<i data-tooltip="{{localize 'VERMINE.gear' }}" class="fas fa-gear"></i>
|
||||
</a>
|
||||
|
||||
<a class="item" data-tab="totem">
|
||||
<i data-tooltip="{{localize 'VERMINE.road' }}" class="fas fa-map"></i>
|
||||
<i data-tooltip="{{localize 'VERMINE.road' }}" class="fas fa-route"></i>
|
||||
</a>
|
||||
|
||||
<a class="item" data-tab="reserve">
|
||||
<i data-tooltip="{{localize 'VERMINE.reserve' }}" class="fas fa-users"></i>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{!-- Biography Tab --}}
|
||||
{{!-- Information Tab --}}
|
||||
<div class="tab biography" data-group="primary" data-tab="description">
|
||||
<h3>{{ localize 'VERMINE.information'}}</h3>
|
||||
{{> "systems/vermine2047/templates/actor/group/group-info.hbs"}}
|
||||
</div>
|
||||
|
||||
{{!-- Owned Items Tab --}}
|
||||
{{!-- Equipment Tab --}}
|
||||
<div class="tab items" data-group="primary" data-tab="gear">
|
||||
<h3>{{ localize 'VERMINE.gear'}}</h3>
|
||||
{{> "systems/vermine2047/templates/actor/group/group-items.hbs"}}
|
||||
</div>
|
||||
|
||||
{{!-- Road Tab --}}
|
||||
<div class="tab effects" data-group="primary" data-tab="totem">
|
||||
{{!-- Totem/Group Tab --}}
|
||||
<div class="tab totem" data-group="primary" data-tab="totem">
|
||||
<h3>{{ localize 'VERMINE.road'}}</h3>
|
||||
{{> "systems/vermine2047/templates/actor/group/group-vehicles.hbs"}}
|
||||
</div>
|
||||
|
||||
{{!-- Reserve/Morale Tab --}}
|
||||
<div class="tab effects" data-group="primary" data-tab="reserve">
|
||||
<h3>{{ localize 'VERMINE.reserve' }}</h3>
|
||||
{{> "systems/vermine2047/templates/actor/group/group-experience.hbs"}}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -4,131 +4,436 @@
|
||||
<header class="sheet-header">
|
||||
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="100" width="100"/>
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
|
||||
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'NAME' }}"/></h1>
|
||||
|
||||
{{!-- Niveaux de Menace, Experience, Role --}}
|
||||
<div class="resources grid grid-3col">
|
||||
<div class="resource flex-group-center">
|
||||
<label for="system.threat.value" class="resource-label">{{ localize 'ADVERSITY.threat'}}</label>
|
||||
<label for="system.threat.value" class="resource-label">{{ localize 'ADVERSITY.threat' }}</label>
|
||||
<div class="resource-content">
|
||||
<select
|
||||
name="system.threat.value"
|
||||
id="system.threat.value"
|
||||
data-dtype="Number"
|
||||
>
|
||||
<select name="system.threat.value" id="system.threat.value" data-dtype="Number">
|
||||
{{#each ../config.npcThreatLevels}}
|
||||
<option
|
||||
value="{{@key}}"
|
||||
{{#ife @key ../system.threat.value}}selected{{/ife}}
|
||||
>{{localize this.label}} ({{@key}})</option>
|
||||
<option value="{{@key}}" {{#ife @key ../system.threat.value}}selected{{/ife}}>
|
||||
{{localize this.label}} ({{@key}})
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="resource flex-group-center">
|
||||
<label for="system.experience.value" class="resource-label">{{ localize 'ADVERSITY.experience'}}</label>
|
||||
<label for="system.experience.value" class="resource-label">{{ localize 'ADVERSITY.experience' }}</label>
|
||||
<div class="resource-content">
|
||||
<select
|
||||
name="system.experience.value"
|
||||
id="system.experience.value"
|
||||
data-dtype="Number"
|
||||
>
|
||||
<select name="system.experience.value" id="system.experience.value" data-dtype="Number">
|
||||
{{#each ../config.npcExperienceLevels}}
|
||||
<option
|
||||
value="{{@key}}"
|
||||
{{#ife @key ../system.experience.value}}selected{{/ife}}
|
||||
>{{localize this.label}} ({{@key}})</option>
|
||||
<option value="{{@key}}" {{#ife @key ../system.experience.value}}selected{{/ife}}>
|
||||
{{localize this.label}} ({{@key}})
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="resource flex-group-center">
|
||||
<label for="system.role.value" class="resource-label">{{ localize 'ADVERSITY.role'}}</label>
|
||||
<label for="system.role.value" class="resource-label">{{ localize 'ADVERSITY.role' }}</label>
|
||||
<div class="resource-content">
|
||||
<select
|
||||
name="system.role.value"
|
||||
id="system.role.value"
|
||||
data-dtype="Number"
|
||||
>
|
||||
<select name="system.role.value" id="system.role.value" data-dtype="Number">
|
||||
{{#each ../config.npcRoleLevels}}
|
||||
<option
|
||||
value="{{@key}}"
|
||||
{{#ife @key ../system.role.value}}selected{{/ife}}
|
||||
>{{localize this.label}} ({{@key}})</option>
|
||||
<option value="{{@key}}" {{#ife @key ../system.role.value}}selected{{/ife}}>
|
||||
{{localize this.label}} ({{@key}})
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Totem et Origine --}}
|
||||
<div class="resources grid grid-2col">
|
||||
<div class="resource flex-group-center">
|
||||
<label for="system.identity.totem" class="resource-label">{{ localize 'TOTEM' }}</label>
|
||||
<div class="resource-content">
|
||||
<select name="system.identity.totem" id="system.identity.totem" data-dtype="String">
|
||||
<option value="">{{ localize 'NONE' }}</option>
|
||||
{{#each ../config.totems}}
|
||||
<option value="{{@key}}" {{#ife @key ../system.identity.totem}}selected{{/ife}}>
|
||||
{{localize this}}
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="resource flex-group-center">
|
||||
<label for="system.identity.origin" class="resource-label">{{ localize 'ORIGIN' }}</label>
|
||||
<div class="resource-content">
|
||||
<select name="system.identity.origin" id="system.identity.origin" data-dtype="String">
|
||||
<option value="">{{ localize 'NONE' }}</option>
|
||||
{{#each ../config.origins}}
|
||||
<option value="{{@key}}" {{#ife @key ../system.identity.origin}}selected{{/ife}}>
|
||||
{{this}}
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
{{!-- Navigation --}}
|
||||
<nav class="sheet-tabs tabs" data-group="primary">
|
||||
{{!-- Default tab is specified in actor-sheet.mjs --}}
|
||||
<a class="item" data-tab="description">{{ localize 'VERMINE.abilities'}}</a>
|
||||
<a class="item" data-tab="items">{{ localize 'VERMINE.equipment'}}</a>
|
||||
<a class="item" data-tab="effects">{{ localize 'VERMINE.combat'}}</a>
|
||||
<a class="item" data-tab="characteristics"><i class="fas fa-dice"></i> {{ localize 'VERMINE.abilities' }}</a>
|
||||
<a class="item" data-tab="skills"><i class="fas fa-brain"></i> {{ localize 'VERMINE.skills' }}</a>
|
||||
<a class="item" data-tab="threat"><i class="fas fa-exclamation-triangle"></i> {{ localize 'ADVERSITY.threat' }}</a>
|
||||
<a class="item" data-tab="equipment"><i class="fas fa-backpack"></i> {{ localize 'VERMINE.equipment' }}</a>
|
||||
<a class="item" data-tab="combat"><i class="fas fa-sword"></i> {{ localize 'VERMINE.combat' }}</a>
|
||||
<a class="item" data-tab="notes"><i class="fas fa-sticky-note"></i> {{ localize 'IDENTITY.notes' }}</a>
|
||||
</nav>
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{!-- Biography Tab --}}
|
||||
<div class="tab stats" data-group="primary" data-tab="description">
|
||||
<section class="grid grid-3col gap-md">
|
||||
<div class="mdb">
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.threat'}}</h4>
|
||||
{{!-- Characteristics Tab --}}
|
||||
<div class="tab characteristics" data-group="primary" data-tab="characteristics">
|
||||
<h3>{{ localize 'VERMINE.abilities' }}</h3>
|
||||
|
||||
{{!-- Caracteristiques physiques --}}
|
||||
<div class="ability-section">
|
||||
<h4 class="ability-category-header">{{ localize 'VERMINE.ability_category.physical' }}</h4>
|
||||
<div class="grid grid-2col">
|
||||
<div class="ability-item">
|
||||
<label for="system.abilities.vigor.value">{{ localize 'ABILITIES.vigor.name' }}</label>
|
||||
<div class="ability-control">
|
||||
<input type="range" name="system.abilities.vigor.value" value="{{system.abilities.vigor.value}}" min="{{system.abilities.vigor.min}}" max="{{system.abilities.vigor.max}}" data-dtype="Number"/>
|
||||
<span class="ability-value">{{system.abilities.vigor.value}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ability-item">
|
||||
<label for="system.abilities.health.value">{{ localize 'ABILITIES.health.name' }}</label>
|
||||
<div class="ability-control">
|
||||
<input type="range" name="system.abilities.health.value" value="{{system.abilities.health.value}}" min="{{system.abilities.health.min}}" max="{{system.abilities.health.max}}" data-dtype="Number"/>
|
||||
<span class="ability-value">{{system.abilities.health.value}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Caracteristiques manuelles --}}
|
||||
<div class="ability-section">
|
||||
<h4 class="ability-category-header">{{ localize 'VERMINE.ability_category.manual' }}</h4>
|
||||
<div class="grid grid-2col">
|
||||
<div class="ability-item">
|
||||
<label for="system.abilities.precision.value">{{ localize 'ABILITIES.precision.name' }}</label>
|
||||
<div class="ability-control">
|
||||
<input type="range" name="system.abilities.precision.value" value="{{system.abilities.precision.value}}" min="{{system.abilities.precision.min}}" max="{{system.abilities.precision.max}}" data-dtype="Number"/>
|
||||
<span class="ability-value">{{system.abilities.precision.value}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ability-item">
|
||||
<label for="system.abilities.reflexes.value">{{ localize 'ABILITIES.reflexes.name' }}</label>
|
||||
<div class="ability-control">
|
||||
<input type="range" name="system.abilities.reflexes.value" value="{{system.abilities.reflexes.value}}" min="{{system.abilities.reflexes.min}}" max="{{system.abilities.reflexes.max}}" data-dtype="Number"/>
|
||||
<span class="ability-value">{{system.abilities.reflexes.value}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Caracteristiques mentales --}}
|
||||
<div class="ability-section">
|
||||
<h4 class="ability-category-header">{{ localize 'VERMINE.ability_category.mental' }}</h4>
|
||||
<div class="grid grid-2col">
|
||||
<div class="ability-item">
|
||||
<label for="system.abilities.knowledge.value">{{ localize 'ABILITIES.knowledge.name' }}</label>
|
||||
<div class="ability-control">
|
||||
<input type="range" name="system.abilities.knowledge.value" value="{{system.abilities.knowledge.value}}" min="{{system.abilities.knowledge.min}}" max="{{system.abilities.knowledge.max}}" data-dtype="Number"/>
|
||||
<span class="ability-value">{{system.abilities.knowledge.value}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ability-item">
|
||||
<label for="system.abilities.perception.value">{{ localize 'ABILITIES.perception.name' }}</label>
|
||||
<div class="ability-control">
|
||||
<input type="range" name="system.abilities.perception.value" value="{{system.abilities.perception.value}}" min="{{system.abilities.perception.min}}" max="{{system.abilities.perception.max}}" data-dtype="Number"/>
|
||||
<span class="ability-value">{{system.abilities.perception.value}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Caracteristiques sociales --}}
|
||||
<div class="ability-section">
|
||||
<h4 class="ability-category-header">{{ localize 'VERMINE.ability_category.social' }}</h4>
|
||||
<div class="grid grid-2col">
|
||||
<div class="ability-item">
|
||||
<label for="system.abilities.will.value">{{ localize 'ABILITIES.will.name' }}</label>
|
||||
<div class="ability-control">
|
||||
<input type="range" name="system.abilities.will.value" value="{{system.abilities.will.value}}" min="{{system.abilities.will.min}}" max="{{system.abilities.will.max}}" data-dtype="Number"/>
|
||||
<span class="ability-value">{{system.abilities.will.value}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ability-item">
|
||||
<label for="system.abilities.empathy.value">{{ localize 'ABILITIES.empathy.name' }}</label>
|
||||
<div class="ability-control">
|
||||
<input type="range" name="system.abilities.empathy.value" value="{{system.abilities.empathy.value}}" min="{{system.abilities.empathy.min}}" max="{{system.abilities.empathy.max}}" data-dtype="Number"/>
|
||||
<span class="ability-value">{{system.abilities.empathy.value}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Reserves --}}
|
||||
<div class="ability-section">
|
||||
<h4 class="ability-category-header">{{ localize 'VERMINE.reserves' }}</h4>
|
||||
<div class="grid grid-2col">
|
||||
<div class="ability-item">
|
||||
<label for="system.attributes.effort.value">{{ localize 'VERMINE.effort' }}</label>
|
||||
<div class="ability-control">
|
||||
<input type="range" name="system.attributes.effort.value" value="{{system.attributes.effort.value}}" min="{{system.attributes.effort.min}}" max="{{system.attributes.effort.max}}" data-dtype="Number"/>
|
||||
<span class="ability-value">{{system.attributes.effort.value}}/{{system.attributes.effort.max}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ability-item">
|
||||
<label for="system.attributes.self_control.value">{{ localize 'VERMINE.self_control' }}</label>
|
||||
<div class="ability-control">
|
||||
<input type="range" name="system.attributes.self_control.value" value="{{system.attributes.self_control.value}}" min="{{system.attributes.self_control.min}}" max="{{system.attributes.self_control.max}}" data-dtype="Number"/>
|
||||
<span class="ability-value">{{system.attributes.self_control.value}}/{{system.attributes.self_control.max}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Skills Tab --}}
|
||||
<div class="tab skills" data-group="primary" data-tab="skills">
|
||||
<h3>{{ localize 'VERMINE.skills' }}</h3>
|
||||
|
||||
{{!-- Category Selector --}}
|
||||
<div class="skill-category-selector">
|
||||
<label>{{ localize 'VERMINE.preferred_category' }}:</label>
|
||||
<select name="system.skill_categories.preferred" data-dtype="String">
|
||||
<option value="">{{ localize 'NONE' }}</option>
|
||||
{{#each system.skill_categories as |category key|}}
|
||||
{{#unless key "eq" "preferred"}}
|
||||
<option value="{{key}}" {{#ife key ../system.skill_categories.preferred}}selected{{/ife}}>
|
||||
{{localize category.label}}
|
||||
</option>
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{!-- Skills Grid by Category --}}
|
||||
<div class="skills-container">
|
||||
{{!-- Homme --}}
|
||||
<div class="skill-category">
|
||||
<h4>{{ localize 'VERMINE.skill_category.man' }}</h4>
|
||||
<div class="grid grid-2col">
|
||||
{{#each system.skills as |skill key|}}
|
||||
{{#ife skill.category "man"}}
|
||||
{{> "systems/vermine2047/templates/actor/parts/npc-skill-item.hbs" skill=skill key=key}}
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Animal --}}
|
||||
<div class="skill-category">
|
||||
<h4>{{ localize 'VERMINE.skill_category.animal' }}</h4>
|
||||
<div class="grid grid-2col">
|
||||
{{#each system.skills as |skill key|}}
|
||||
{{#ife skill.category "animal"}}
|
||||
{{> "systems/vermine2047/templates/actor/parts/npc-skill-item.hbs" skill=skill key=key}}
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Outil --}}
|
||||
<div class="skill-category">
|
||||
<h4>{{ localize 'VERMINE.skill_category.tool' }}</h4>
|
||||
<div class="grid grid-2col">
|
||||
{{#each system.skills as |skill key|}}
|
||||
{{#ife skill.category "tool"}}
|
||||
{{> "systems/vermine2047/templates/actor/parts/npc-skill-item.hbs" skill=skill key=key}}
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Arme --}}
|
||||
<div class="skill-category">
|
||||
<h4>{{ localize 'VERMINE.skill_category.weapon' }}</h4>
|
||||
<div class="grid grid-2col">
|
||||
{{#each system.skills as |skill key|}}
|
||||
{{#ife skill.category "weapon"}}
|
||||
{{> "systems/vermine2047/templates/actor/parts/npc-skill-item.hbs" skill=skill key=key}}
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Survie --}}
|
||||
<div class="skill-category">
|
||||
<h4>{{ localize 'VERMINE.skill_category.survival' }}</h4>
|
||||
<div class="grid grid-2col">
|
||||
{{#each system.skills as |skill key|}}
|
||||
{{#ife skill.category "survival"}}
|
||||
{{> "systems/vermine2047/templates/actor/parts/npc-skill-item.hbs" skill=skill key=key}}
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Monde --}}
|
||||
<div class="skill-category">
|
||||
<h4>{{ localize 'VERMINE.skill_category.world' }}</h4>
|
||||
<div class="grid grid-2col">
|
||||
{{#each system.skills as |skill key|}}
|
||||
{{#ife skill.category "world"}}
|
||||
{{> "systems/vermine2047/templates/actor/parts/npc-skill-item.hbs" skill=skill key=key}}
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Threat/Experience/Role Details Tab --}}
|
||||
<div class="tab threat-details" data-group="primary" data-tab="threat">
|
||||
<h3>{{ localize 'ADVERSITY.threat_details' }}</h3>
|
||||
<div class="grid grid-3col">
|
||||
{{!-- Menace --}}
|
||||
<div class="card npc-card">
|
||||
<h4 class="align-center"><i class="fas fa-exclamation-triangle"></i> {{ localize 'ADVERSITY.threat' }}</h4>
|
||||
<ul class="unstyled">
|
||||
<li>{{ localize 'ADVERSITY.attack'}} {{ npcThreatLevel "attack" system.threat.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.vigor'}} {{ npcThreatLevel "vigor" system.threat.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.wounds'}}
|
||||
{{ npcThreatLevel "minorWound" system.threat.value }}/
|
||||
{{ npcThreatLevel "majorWound" system.threat.value }}/
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.attack' }}:</strong>
|
||||
{{ npcThreatLevel "attack" system.threat.value }}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.vigor' }}:</strong>
|
||||
{{ npcThreatLevel "vigor" system.threat.value }}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.wounds' }}:</strong>
|
||||
{{ npcThreatLevel "minorWound" system.threat.value }} /
|
||||
{{ npcThreatLevel "majorWound" system.threat.value }} /
|
||||
{{ npcThreatLevel "deadlyWound" system.threat.value }}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="mdb">
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.experience'}}</h4>
|
||||
|
||||
{{!-- Experience --}}
|
||||
<div class="card npc-card">
|
||||
<h4 class="align-center"><i class="fas fa-star"></i> {{ localize 'ADVERSITY.experience' }}</h4>
|
||||
<ul class="unstyled">
|
||||
<li>
|
||||
<label for="system.skills" class="">{{ localize "ADVERSITY.skills" }}</label>
|
||||
<input type="text" name="system.skills" value="{{ system.skills }}" data-dtype="String"/>
|
||||
<label for="system.skills">{{ localize 'ADVERSITY.skills' }}</label>
|
||||
<input type="text" name="system.skills" value="{{system.skills}}" data-dtype="String" placeholder="{{ localize 'ADVERSITY.skills_placeholder' }}"/>
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.action' }}:</strong>
|
||||
{{ npcExperienceLevel "action" system.experience.value }}D
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.specialties' }}:</strong>
|
||||
{{ npcExperienceLevel "specialties" system.experience.value }}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.rerolls' }}:</strong>
|
||||
{{ npcExperienceLevel "rerolls" system.experience.value }}D
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.contact' }}:</strong>
|
||||
{{ npcExperienceLevel "contact" system.experience.value }}
|
||||
</li>
|
||||
<li>{{ localize 'ADVERSITY.action'}} {{ npcExperienceLevel "action" system.experience.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.specialties'}} {{ npcExperienceLevel "specialties" system.experience.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.rerolls'}} {{ npcExperienceLevel "rerolls" system.experience.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.contact'}} {{ npcExperienceLevel "contact" system.experience.value }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="mdb">
|
||||
<h4 class="align-center">{{ localize 'ADVERSITY.role'}}</h4>
|
||||
|
||||
{{!-- Role --}}
|
||||
<div class="card npc-card">
|
||||
<h4 class="align-center"><i class="fas fa-users"></i> {{ localize 'ADVERSITY.role' }}</h4>
|
||||
<ul class="unstyled">
|
||||
<li>{{ localize 'ADVERSITY.reaction'}} {{ npcRoleLevel "reaction" system.role.value }} + {{ npcRoleLevel "reaction_bonus" system.role.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.pools'}} {{ npcRoleLevel "pools" system.role.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.gear'}} {{ npcRoleLevel "gear" system.role.value }}</li>
|
||||
<li>{{ localize 'ADVERSITY.protection'}} {{ npcRoleLevel "protection" system.role.value }}</li>
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.reaction' }}:</strong>
|
||||
{{ npcRoleLevel "reaction" system.role.value }} + {{ npcRoleLevel "reaction_bonus" system.role.value }}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.pools' }}:</strong>
|
||||
{{ npcRoleLevel "pools" system.role.value }}D
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.gear' }}:</strong>
|
||||
{{ npcRoleLevel "gear" system.role.value }}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.gear_hindrance' }}:</strong>
|
||||
{{ npcRoleLevel "gear_hindrance" system.role.value }}
|
||||
</li>
|
||||
<li>
|
||||
<strong>{{ localize 'ADVERSITY.protection' }}:</strong>
|
||||
{{ npcRoleLevel "protection" system.role.value }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section class="flexcol col gap-md">
|
||||
<h4 class="align-center">{{ localize 'IDENTITY.notes'}}</h4>
|
||||
{{editor system.biography target="system.biography" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{{!-- Blessures --}}
|
||||
<div class="card npc-card wounds-card">
|
||||
<h4 class="align-center"><i class="fas fa-heart-broken"></i> {{ localize 'VERMINE.wounds' }}</h4>
|
||||
<div class="grid grid-3col">
|
||||
<div class="wound-item">
|
||||
<label>{{ localize 'VERMINE.minorWound' }}</label>
|
||||
<div class="wound-control">
|
||||
<input type="range" name="system.minorWound.value" value="{{system.minorWound.value}}" min="{{system.minorWound.min}}" max="{{system.minorWound.max}}" data-dtype="Number"/>
|
||||
<span>{{system.minorWound.value}}/{{system.minorWound.max}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wound-item">
|
||||
<label>{{ localize 'VERMINE.majorWound' }}</label>
|
||||
<div class="wound-control">
|
||||
<input type="range" name="system.majorWound.value" value="{{system.majorWound.value}}" min="{{system.majorWound.min}}" max="{{system.majorWound.max}}" data-dtype="Number"/>
|
||||
<span>{{system.majorWound.value}}/{{system.majorWound.max}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wound-item">
|
||||
<label>{{ localize 'VERMINE.deadlyWound' }}</label>
|
||||
<div class="wound-control">
|
||||
<input type="range" name="system.deadlyWound.value" value="{{system.deadlyWound.value}}" min="{{system.deadlyWound.min}}" max="{{system.deadlyWound.max}}" data-dtype="Number"/>
|
||||
<span>{{system.deadlyWound.value}}/{{system.deadlyWound.max}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Owned Items Tab --}}
|
||||
<div class="tab items" data-group="primary" data-tab="items">
|
||||
{{> "systems/vermine2047/templates/actor/parts/actor-items.hbs"}}
|
||||
{{!-- Equipment Tab --}}
|
||||
<div class="tab equipment" data-group="primary" data-tab="equipment">
|
||||
<h3>{{ localize 'VERMINE.equipment' }}</h3>
|
||||
{{editor system.equipment.description target="system.equipment.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
{{!-- Active Effects Tab --}}
|
||||
<div class="tab effects flexcol" data-group="primary" data-tab="effects">
|
||||
{{!-- Combat Tab --}}
|
||||
<div class="tab combat" data-group="primary" data-tab="combat">
|
||||
<h3>{{ localize 'VERMINE.combat' }}</h3>
|
||||
{{> "systems/vermine2047/templates/actor/npc/npc-combat.hbs"}}
|
||||
</div>
|
||||
|
||||
{{!-- Notes Tab --}}
|
||||
<div class="tab notes" data-group="primary" data-tab="notes">
|
||||
<h3>{{ localize 'IDENTITY.notes' }}</h3>
|
||||
<div class="grid grid-1col">
|
||||
<div class="form-group">
|
||||
<label for="system.identity.profile">{{ localize 'IDENTITY.profile' }}</label>
|
||||
<input type="text" name="system.identity.profile" value="{{system.identity.profile}}" data-dtype="String" placeholder="{{ localize 'PROFILE' }}"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="system.identity.theme">{{ localize 'IDENTITY.theme' }}</label>
|
||||
<input type="text" name="system.identity.theme" value="{{system.identity.theme}}" data-dtype="String" placeholder="{{ localize 'THEME' }}"/>
|
||||
</div>
|
||||
</div>
|
||||
{{editor system.identity.notes target="system.identity.notes" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
||||
|
||||
@@ -1,119 +1,73 @@
|
||||
<div class="grid grid-2col">
|
||||
{{!-- Computed Values --}}
|
||||
<div>
|
||||
<h4 class="align-center">{{ localize "VERMINE.self_control"}}</h4>
|
||||
<p class="align-center">
|
||||
<input type="number" name="system.attributes.self_control.value"
|
||||
value="{{ system.attributes.self_control.value }}" data-dtype="Number"
|
||||
min="{{ system.attributes.self_control.min }}"
|
||||
max="{{ system.attributes.self_control.max }}" /> / {{
|
||||
system.attributes.self_control.max }}
|
||||
</p>
|
||||
<h4 class="align-center">{{ localize 'VERMINE.computed_values' }}</h4>
|
||||
<div class="stats-grid">
|
||||
<div class="stat">
|
||||
<label>{{ localize 'VERMINE.total_attack' }}:</label>
|
||||
<span>{{ system.computed.attack }}</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<label>{{ localize 'ADVERSITY.damage' }}:</label>
|
||||
<span>{{ system.computed.damage }}</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<label>{{ localize 'ADVERSITY.vigor' }}:</label>
|
||||
<span>{{ system.computed.vigor }}</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<label>{{ localize 'ADVERSITY.reaction' }}:</label>
|
||||
<span>{{ system.computed.reaction }}</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<label>{{ localize 'ADVERSITY.pools' }}:</label>
|
||||
<span>{{ system.computed.pools }}</span>
|
||||
</div>
|
||||
<div class="stat">
|
||||
<label>{{ localize 'ADVERSITY.protection' }}:</label>
|
||||
<span>{{ system.computed.protection }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Wounds --}}
|
||||
<div>
|
||||
<h4 class="align-center">{{ localize "VERMINE.effort"}}</h4>
|
||||
<p class="align-center">
|
||||
<input type="number" name="system.attributes.effort.value"
|
||||
value="{{ system.attributes.effort.value }}" data-dtype="Number"
|
||||
min="{{ system.attributes.effort.min }}"
|
||||
max="{{ system.attributes.effort.max }}" /> / {{
|
||||
system.attributes.effort.max }}
|
||||
</p>
|
||||
<h4 class="item-name effect-name flexrow">{{ localize "VERMINE.wounds.name" }}</h4>
|
||||
<ul class="unstyled">
|
||||
<li class="row mdb">
|
||||
{{ localize 'VERMINE.wounds.light' }} ({{ system.minorWound.threshold }}D)
|
||||
{{#repeat system.minorWound.max }}
|
||||
<input type="radio" data-dtype="Number" name="system.minorWound.value"
|
||||
value="{{this}}" {{#ife @root.system.minorWound.value this }}checked="checked"{{/ife}}
|
||||
data-wound="minorWound"
|
||||
class="{{#iflteq this @root.system.minorWound.value }}checked{{/iflteq}}"
|
||||
/>
|
||||
{{/repeat}}
|
||||
</li>
|
||||
<li class="row mdb">
|
||||
{{ localize 'VERMINE.wounds.heavy' }} ({{ system.majorWound.threshold }}D)
|
||||
{{#repeat system.majorWound.max }}
|
||||
<input type="radio" name="system.majorWound.value" value="{{this}}" {{#ife @root.system.majorWound.value this }}checked="checked"{{/ife}}
|
||||
data-wound="majorWound"
|
||||
class="{{#iflteq this @root.system.majorWound.value }}checked{{/iflteq}}"
|
||||
/>
|
||||
{{/repeat}}
|
||||
</li>
|
||||
<li class="row mdb">
|
||||
{{ localize 'VERMINE.wounds.deadly' }} ({{ system.deadlyWound.threshold }}D)
|
||||
{{#repeat system.deadlyWound.max }}
|
||||
<input type="radio" name="system.deadlyWound.value" value="{{this}}" {{#ife @root.system.deadlyWound.value this }}checked="checked"{{/ife}}
|
||||
data-wound="deadlyWound"
|
||||
class="{{#iflteq this @root.system.deadlyWound.value }}checked{{/iflteq}}"
|
||||
/>
|
||||
{{/repeat}}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="item-name effect-name flexrow">{{ localize
|
||||
"VERMINE.wounds.name"}}</h4>
|
||||
<ul class="unstyled">
|
||||
<li class="row mdb">{{ localize 'VERMINE.wounds.light'}} <span
|
||||
data-tooltip="seuil">({{
|
||||
system.minorWound.threshold }})</span>
|
||||
{{#repeat system.minorWound.max }}
|
||||
<input type="radio" data-dtype="Number" name="system.minorWound.value"
|
||||
value="{{this}}" {{#ife @root.system.minorWound.value this
|
||||
}}checked="checked"{{/ife}} data-wound="minorWound"
|
||||
class="
|
||||
{{#iflteq this @root.system.minorWound.value }}
|
||||
checked
|
||||
{{/iflteq}}
|
||||
|
||||
" />
|
||||
{{/repeat}}</li>
|
||||
<li class="row mdb">{{ localize 'VERMINE.wounds.heavy'}} ({{
|
||||
system.majorWound.threshold }})
|
||||
{{#repeat system.majorWound.max }}
|
||||
<input type="radio" name="system.majorWound.value" value="{{this}}" {{#ife
|
||||
@root.system.majorWound.value this }}checked="checked"{{/ife}}
|
||||
data-wound="majorWound"
|
||||
class="
|
||||
{{#iflteq this @root.system.majorWound.value }}
|
||||
checked
|
||||
{{/iflteq}}
|
||||
|
||||
" />
|
||||
{{/repeat}}
|
||||
</li>
|
||||
<li class="row mdb">{{ localize 'VERMINE.wounds.deadly'}} ({{
|
||||
system.deadlyWound.threshold }})
|
||||
{{#repeat system.deadlyWound.max }}
|
||||
<input type="radio" name="system.deadlyWound.value" value="{{this}}" {{#ife
|
||||
@root.system.deadlyWound.value this }}checked="checked"{{/ife}}
|
||||
data-wound="deadlyWound"
|
||||
class="
|
||||
{{#iflteq this @root.system.deadlyWound.value }}
|
||||
checked
|
||||
{{/iflteq}}
|
||||
|
||||
" />
|
||||
{{/repeat}}
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="item-name effect-name flexrow">{{ localize "UI.effects.name"}}</h4>
|
||||
<ol class="items-list effects-list">
|
||||
{{#each effects as |section sid|}}
|
||||
<li class="items-header flexrow" data-effect-type="{{section.type}}">
|
||||
<p class="item-name effect-name flexrow">{{#if (eq section.type
|
||||
'temporary')}}
|
||||
{{localize "UI.effects.temporary" }}
|
||||
{{else if (eq section.type 'passive')}}
|
||||
{{localize "UI.effects.passive" }}
|
||||
{{else if (eq section.type 'inactive')}}
|
||||
{{localize "UI.effects.inactive" }}
|
||||
{{/if}}
|
||||
</p>
|
||||
<div class="effect-source">{{localize 'UI.source'}}</div>
|
||||
<div class="effect-source">{{localize 'UI.duration'}}</div>
|
||||
<div class="item-controls effect-controls flexrow">
|
||||
<a class="effect-control" data-action="create"
|
||||
title="{{localize 'UI.effect_create'}}">
|
||||
<i class="fas fa-plus"></i> {{localize "UI.add"}}
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<ol class="item-list">
|
||||
{{#each section.effects as |effect|}}
|
||||
<li class="item effect flexrow" data-effect-id="{{effect.id}}">
|
||||
<div class="item-name effect-name">
|
||||
<a class="effect-control flexrow flex-group-center items-center"
|
||||
data-action="edit" title="{{localize 'UI.effect_edit'}}">
|
||||
<img class="item-image" src="{{effect.icon}}" />
|
||||
<span>{{effect.label}}</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="effect-source">{{effect.sourceName}}</div>
|
||||
<div class="effect-duration">{{effect.duration.label}}</div>
|
||||
<div class="item-controls effect-controls flexrow">
|
||||
<a class="effect-control" data-action="toggle"
|
||||
title="{{localize 'UI.effect_toggle'}}">
|
||||
<i
|
||||
class="fas {{#if effect.disabled}}fa-check{{else}}fa-times{{/if}}"></i>
|
||||
</a>
|
||||
<a class="effect-control" data-action="delete"
|
||||
title="{{localize 'UI.effect_delete'}}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{!-- Equipment --}}
|
||||
<div class="grid-span-2">
|
||||
<h4>{{ localize 'VERMINE.gear' }}</h4>
|
||||
{{editor system.equipment.description target="system.equipment.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
@@ -1,88 +1,171 @@
|
||||
<div class="grid grid-2col">
|
||||
<div class="grid grid-2col">
|
||||
{{!-- Group Reserve and Morale --}}
|
||||
<div class="grid-span-2">
|
||||
<h4 class="align-center">{{ localize 'VERMINE.reserve' }}</h4>
|
||||
<div class="reserve-control flexrow flex-group-center">
|
||||
<label>{{ localize 'VERMINE.pool' }}:</label>
|
||||
<input type="number" name="system.reserve.value" value="{{system.reserve.value}}"
|
||||
data-dtype="Number" min="{{system.reserve.min}}" max="{{system.reserve.max}}" />
|
||||
<span>/ {{system.reserve.max}}D</span>
|
||||
</div>
|
||||
<div class="morale-control flexrow flex-group-center">
|
||||
<label>{{ localize 'VERMINE.morale' }}:</label>
|
||||
<select name="system.morale.level">
|
||||
<option value="high" {{#if (eq system.morale.level "high")}}selected{{/if}}>{{ localize 'VERMINE.morale_high' }}</option>
|
||||
<option value="normal" {{#if (eq system.morale.level "normal")}}selected{{/if}}>{{ localize 'VERMINE.morale_normal' }}</option>
|
||||
<option value="low" {{#if (eq system.morale.level "low")}}selected{{/if}}>{{ localize 'VERMINE.morale_low' }}</option>
|
||||
<option value="crisis" {{#if (eq system.morale.level "crisis")}}selected{{/if}}>{{ localize 'VERMINE.morale_crisis' }}</option>
|
||||
</select>
|
||||
<input type="number" name="system.morale.value" value="{{system.morale.value}}"
|
||||
data-dtype="Number" min="{{system.morale.min}}" max="{{system.morale.max}}" />
|
||||
<span>/ {{system.morale.max}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Group Members --}}
|
||||
<div>
|
||||
<h4 class="align-center">
|
||||
<span>{{ localize 'VERMINE.group_members'}}</span>
|
||||
<a class="item-control chooseActor" title="Add member"
|
||||
data-type="members"><i class="fas fa-plus"></i></a>
|
||||
<span>{{ localize 'VERMINE.group_members' }}</span>
|
||||
<a class="item-control chooseActor" title="{{ localize 'UI.add' }}"
|
||||
data-type="members"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="actor-list">
|
||||
{{#each members as |actor id|}}
|
||||
{{log actor}}
|
||||
<li class="actor flexrow" data-actor-id="{{actor._id}}">
|
||||
<div class="actor-name" style="flex:4;">
|
||||
<a class="item-control">{{actor.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control member-delete" title="Delete Member"><i
|
||||
class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{#each system.members as |memberId|}}
|
||||
{{#with (lookup ../resolvedMembers memberId) as |member|}}
|
||||
<li class="actor flexrow" data-actor-id="{{memberId}}">
|
||||
<div class="actor-name" style="flex:4;">
|
||||
{{#if member}}
|
||||
<a class="item-control">{{member.name}}</a>
|
||||
{{else}}
|
||||
<a class="item-control" style="color: red;">ID: {{memberId}}</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control member-delete" title="{{ localize 'UI.effect_delete' }}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
{{!-- Group Encounters --}}
|
||||
<div>
|
||||
<h4 class="align-center">
|
||||
<span>{{ localize 'VERMINE.encounters'}}</span>
|
||||
<a class="item-control chooseActor" title="Add member"
|
||||
data-type="encounters"><i class="fas fa-plus"></i></a>
|
||||
<span>{{ localize 'VERMINE.encounters' }}</span>
|
||||
<a class="item-control chooseActor" title="{{ localize 'UI.add' }}"
|
||||
data-type="encounters"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="actor-list">
|
||||
{{#each encounters as |actor id|}}
|
||||
<li class="actor flexrow" data-actor-id="{{actor._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control">{{actor.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control encounter-delete" title="Delete Encounter"><i
|
||||
class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{#each system.encounters as |encounterId|}}
|
||||
{{#with (lookup ../resolvedEncounters encounterId) as |encounter|}}
|
||||
<li class="actor flexrow" data-actor-id="{{encounterId}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
{{#if encounter}}
|
||||
<a class="item-control">{{encounter.name}}</a>
|
||||
{{else}}
|
||||
<a class="item-control" style="color: red;">ID: {{encounterId}}</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control encounter-delete" title="{{ localize 'UI.effect_delete' }}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
{{!-- Group Objectives --}}
|
||||
<div class="grid-span-2">
|
||||
<h4 class="align-center">{{ localize 'VERMINE.objectives' }}</h4>
|
||||
|
||||
<div>
|
||||
<h5>{{ localize 'VERMINE.major_objectives' }}</h5>
|
||||
<ol class="list-item">
|
||||
{{#each system.objectives.major as |objective id|}}
|
||||
<li class="item flexrow" data-index="{{id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<input type="text" name="system.objectives.major.{{id}}" value="{{objective}}"
|
||||
placeholder="Objectif majeur..." />
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control objective-delete" title="{{ localize 'UI.effect_delete' }}"
|
||||
data-type="major" data-index="{{id}}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
<a class="item-control item-create" title="{{ localize 'UI.add' }}"
|
||||
data-type="major_objective"><i class="fas fa-plus"></i> {{ localize 'ITEMS.new_objective' }}</a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5>{{ localize 'VERMINE.minor_objectives' }}</h5>
|
||||
<ol class="list-item">
|
||||
{{#each system.objectives.minor as |objective id|}}
|
||||
<li class="item flexrow" data-index="{{id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<input type="text" name="system.objectives.minor.{{id}}" value="{{objective}}"
|
||||
placeholder="Objectif mineur..." />
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control objective-delete" title="{{ localize 'UI.effect_delete' }}"
|
||||
data-type="minor" data-index="{{id}}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
<a class="item-control item-create" title="{{ localize 'UI.add' }}"
|
||||
data-type="minor_objective"><i class="fas fa-plus"></i> {{ localize 'ITEMS.new_objective' }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Group Abilities --}}
|
||||
<div class="grid-span-2">
|
||||
<h4 class="align-center">
|
||||
<span>{{ localize 'VERMINE.boost'}}</span>
|
||||
<a class="item-control chooseActor" title="Add encounter"
|
||||
data-type="npc"><i class="fas fa-plus"></i></a>
|
||||
<span>{{ localize 'VERMINE.group_abilities' }}</span>
|
||||
<a class="item-control item-create" title="{{ localize 'ITEMS.new_ability' }}"
|
||||
data-type="ability"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each abilities as |item id|}}
|
||||
{{#if (ne item.type 'totem')}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||
<a class="item-control item-edit" title="{{ localize 'UI.effect_edit' }}">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="Delete Item"><i
|
||||
class="fas fa-trash"></i></a>
|
||||
<a class="item-control item-delete" title="{{ localize 'UI.effect_delete' }}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="align-center">
|
||||
<span>{{ localize 'VERMINE.totem_abilities'}}</span>
|
||||
<a class="item-control item-create" title="Create item"
|
||||
data-type="ability"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each totem_abilities as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="Delete Item"><i
|
||||
class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="align-center">
|
||||
{{ localize 'VERMINE.pool' }}
|
||||
</h4>
|
||||
|
||||
{{!-- Totem Section --}}
|
||||
<div class="grid-span-2">
|
||||
<h4 class="align-center">{{ localize 'IDENTITY.totem' }}</h4>
|
||||
<div class="flexrow flex-group-center">
|
||||
<label>{{ localize 'IDENTITY.instincts' }}:</label>
|
||||
<input type="text" name="system.identity.instincts" value="{{system.identity.instincts}}"
|
||||
placeholder="Ex: Triompher, relever un défi..." />
|
||||
</div>
|
||||
<div class="flexrow flex-group-center">
|
||||
<label>{{ localize 'IDENTITY.prohibits' }}:</label>
|
||||
<input type="text" name="system.identity.prohibits" value="{{system.identity.prohibits}}"
|
||||
placeholder="Ex: Fuir, abandonner..." />
|
||||
</div>
|
||||
<div class="flexrow flex-group-center">
|
||||
{{#if (eq system.identity.totem "")}}
|
||||
<a name="chooseTotem" class="chooseTotem">{{ localize 'VERMINE.totem_picker' }}</a>
|
||||
{{else}}
|
||||
<div class="totem-display flexrow">
|
||||
<span style="flex: 1;">{{ smarttl "TOTEMS" system.identity.totem }}</span>
|
||||
<a name="chooseTotem" class="chooseTotem">{{ localize 'UI.effect_edit' }}</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,47 +8,34 @@
|
||||
<h1 class="char-name flexrow flex-group-left w-full">
|
||||
<label>{{ localize 'IDENTITY.name' }}</label>
|
||||
<input name="name" type="text" value="{{actor.name}}"
|
||||
placeholder="{{localize "VERMINE.GroupNamePlaceholder"}}" />
|
||||
placeholder="Nom du groupe" />
|
||||
</h1>
|
||||
<div class="profile flexrow flex-group-center">
|
||||
<label>{{ localize 'IDENTITY.profile' }}</label>
|
||||
<input name="system.identity.profile" type="text"
|
||||
value="{{system.identity.profile }}" data-dtype="String" />
|
||||
</div>
|
||||
<div class="flexrow flex-group-center w-full">
|
||||
<label for="system.identity.age">{{ localize 'IDENTITY.morale'
|
||||
}}</label>
|
||||
<div class="flexrow row">
|
||||
<input type="number" name="system.identity.age"
|
||||
value="{{ system.morale.value }}" data-dtype="Number"
|
||||
max="7" min="1" />
|
||||
<span id="moraleLevel">({{ system.morale.level }})</span>
|
||||
</div>
|
||||
value="{{system.identity.profile}}" data-dtype="String" />
|
||||
</div>
|
||||
</section>
|
||||
<section class="char-level grid-span-5">
|
||||
<h1 class="char-vermine2047 flexrow flex-group-left w-full">
|
||||
<label for="system.identity.totem">{{ localize 'IDENTITY.totem'
|
||||
}}</label>
|
||||
<label for="system.identity.totem">{{ localize 'IDENTITY.totem' }}</label>
|
||||
{{#if (eq system.identity.totem "")}}
|
||||
<a name="chooseTotem" class="chooseTotem">Choisissez…</a>
|
||||
{{ else }}
|
||||
<a name="chooseTotem" class="chooseTotem">{{ smarttl "TOTEMS"
|
||||
system.identity.totem }}</a>
|
||||
<a name="chooseTotem" class="chooseTotem">{{ smarttl "TOTEMS" system.identity.totem }}</a>
|
||||
{{/if}}
|
||||
</h1>
|
||||
<div class="level flexrow flex-group-center">
|
||||
<label>{{ localize 'VERMINE.level' }}</label>
|
||||
<input name="system.level.value" type="number"
|
||||
value="{{system.level.value}}" data-dtype="Number" min="{{system.level.min}}" max="{{system.level.max}}" />
|
||||
<span>/ {{system.level.max}}</span>
|
||||
</div>
|
||||
<div class="reputation flexrow flex-group-center">
|
||||
<label>{{ localize 'VERMINE.reputation' }}</label>
|
||||
<input name="system.reputation.value" type="number"
|
||||
value="{{system.reputation.value }}" data-dtype="Number" min="2"
|
||||
max="10" />
|
||||
<img src="{{totem}}" alt>
|
||||
</div>
|
||||
<div class="experience flexrow flex-group-center">
|
||||
<label>{{ localize 'VERMINE.level' }}</label>
|
||||
<input name="system.level.value" type="number"
|
||||
value="{{system.level.value }}" data-dtype="Number" min="0"
|
||||
max="3" />
|
||||
value="{{system.reputation.value}}" data-dtype="Number" min="{{system.reputation.min}}" max="{{system.reputation.max}}" />
|
||||
<span>/ {{system.reputation.max}}</span>
|
||||
</div>
|
||||
</section>
|
||||
</header>
|
||||
</header>
|
||||
|
||||
@@ -1,96 +1,152 @@
|
||||
<div class="grid grid-2col">
|
||||
<div>
|
||||
<h4>
|
||||
<span>{{ localize 'ITEMS.abilities'}}</span>
|
||||
<a class="item-control item-create" title="Create item" data-type="ability"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each abilities as |item id|}}
|
||||
{{#if (ne item.type 'totem')}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h4>
|
||||
<span>{{ localize 'ITEMS.specialties'}}</span>
|
||||
<a class="item-control item-create" title="Create item" data-type="specialty"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each specialties as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
<div>
|
||||
<h4>
|
||||
<span>{{ localize 'ITEMS.backgrounds'}}</span>
|
||||
<a class="item-control item-create" title="Create item" data-type="background"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each backgrounds as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
<div>
|
||||
<h4>
|
||||
<span>{{ localize 'ITEMS.traumas'}}</span>
|
||||
<a class="item-control item-create" title="Create item" data-type="trauma"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each traumas as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
<div>
|
||||
<h4>
|
||||
<span>{{ localize 'ITEMS.evolutions'}}</span>
|
||||
<a class="item-control item-create" title="Create item" data-type="evolution"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each evolutions as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
<div class="grid grid-2col">
|
||||
{{!-- Group Identity --}}
|
||||
<div>
|
||||
<h4>{{ localize 'IDENTITY.profile' }}</h4>
|
||||
<div class="flexrow flex-group-center">
|
||||
<input type="text" name="system.identity.profile" value="{{system.identity.profile}}"
|
||||
placeholder="Profil du groupe..." style="flex: 1;" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<h4>{{ localize 'IDENTITY.origin' }}</h4>
|
||||
<div class="flexrow flex-group-center">
|
||||
<input type="text" name="system.identity.origin" value="{{system.identity.origin}}"
|
||||
placeholder="Origine..." style="flex: 1;" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h4>{{ localize 'IDENTITY.theme' }}</h4>
|
||||
<div class="flexrow flex-group-center">
|
||||
<input type="text" name="system.identity.theme" value="{{system.identity.theme}}"
|
||||
placeholder="Concept..." style="flex: 1;" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h4>{{ localize 'VERMINE.level' }}</h4>
|
||||
<div class="flexrow flex-group-center">
|
||||
<input type="number" name="system.level.value" value="{{system.level.value}}"
|
||||
data-dtype="Number" min="{{system.level.min}}" max="{{system.level.max}}" />
|
||||
<span>/ {{system.level.max}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h4>{{ localize 'VERMINE.reputation' }}</h4>
|
||||
<div class="flexrow flex-group-center">
|
||||
<input type="number" name="system.reputation.value" value="{{system.reputation.value}}"
|
||||
data-dtype="Number" min="{{system.reputation.min}}" max="{{system.reputation.max}}" />
|
||||
<span>/ {{system.reputation.max}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Group Notes --}}
|
||||
<div class="grid-span-2">
|
||||
<h4>{{ localize 'IDENTITY.notes' }}</h4>
|
||||
{{editor system.identity.notes target="system.identity.notes" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
{{!-- Group Abilities (from items) --}}
|
||||
<div class="grid-span-2">
|
||||
<h4>
|
||||
<span>{{ localize 'VERMINE.abilities' }}</span>
|
||||
<a class="item-control item-create" title="{{ localize 'ITEMS.new_ability' }}" data-type="ability"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each abilities as |item id|}}
|
||||
{{#if (ne item.type 'totem')}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="{{ localize 'UI.effect_edit' }}">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="{{ localize 'UI.effect_delete' }}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
{{!-- Specialties --}}
|
||||
<div>
|
||||
<h4>
|
||||
<span>{{ localize 'ITEMS.specialties' }}</span>
|
||||
<a class="item-control item-create" title="{{ localize 'ITEMS.new_specialty' }}" data-type="specialty"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each specialties as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="{{ localize 'UI.effect_edit' }}">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="{{ localize 'UI.effect_delete' }}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
{{!-- Backgrounds --}}
|
||||
<div>
|
||||
<h4>
|
||||
<span>{{ localize 'ITEMS.backgrounds' }}</span>
|
||||
<a class="item-control item-create" title="{{ localize 'ITEMS.new_background' }}" data-type="background"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each backgrounds as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="{{ localize 'UI.effect_edit' }}">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="{{ localize 'UI.effect_delete' }}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
{{!-- Traumas --}}
|
||||
<div>
|
||||
<h4>
|
||||
<span>{{ localize 'ITEMS.traumas' }}</span>
|
||||
<a class="item-control item-create" title="{{ localize 'ITEMS.new_trauma' }}" data-type="trauma"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each traumas as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="{{ localize 'UI.effect_edit' }}">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="{{ localize 'UI.effect_delete' }}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
{{!-- Evolutions --}}
|
||||
<div>
|
||||
<h4>
|
||||
<span>{{ localize 'ITEMS.evolutions' }}</span>
|
||||
<a class="item-control item-create" title="{{ localize 'ITEMS.new_evolution' }}" data-type="evolution"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="list-item">
|
||||
{{#each evolutions as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" style="flex:4;">
|
||||
<a class="item-control item-edit" title="{{ localize 'UI.effect_edit' }}">{{item.name}}</a>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-delete" title="{{ localize 'UI.effect_delete' }}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<h4 class="item-name effect-name flexrow">{{ localize "UI.effects.name" }}</h4>
|
||||
<ol class="items-list effects-list">
|
||||
{{#each effects as |section sid|}}
|
||||
<li class="items-header flexrow" data-effect-type="{{section.type}}">
|
||||
<p class="item-name effect-name flexrow">{{#if (eq section.type 'temporary')}}
|
||||
{{localize "UI.effects.temporary" }}
|
||||
{{else if (eq section.type 'passive')}}
|
||||
{{localize "UI.effects.passive" }}
|
||||
{{else if (eq section.type 'inactive')}}
|
||||
{{localize "UI.effects.inactive" }}
|
||||
{{/if}}
|
||||
</p>
|
||||
<div class="effect-source">{{localize 'UI.source'}}</div>
|
||||
<div class="effect-source">{{localize 'UI.duration'}}</div>
|
||||
<div class="item-controls effect-controls flexrow">
|
||||
<a class="effect-control" data-action="create" title="{{localize 'UI.effect_create'}}">
|
||||
<i class="fas fa-plus"></i> {{localize "UI.add"}}
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<ol class="item-list">
|
||||
{{#each section.effects as |effect|}}
|
||||
<li class="item effect flexrow" data-effect-id="{{effect.id}}">
|
||||
<div class="item-name effect-name">
|
||||
<a class="effect-control flexrow flex-group-center items-center" data-action="edit" title="{{localize 'UI.effect_edit'}}">
|
||||
<img class="item-image" src="{{effect.icon}}" />
|
||||
<span>{{effect.label}}</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="effect-source">{{effect.sourceName}}</div>
|
||||
<div class="effect-duration">{{effect.duration.label}}</div>
|
||||
<div class="item-controls effect-controls flexrow">
|
||||
<a class="effect-control" data-action="toggle" title="{{localize 'UI.effect_toggle'}}">
|
||||
<i class="fas {{#if effect.disabled}}fa-check{{else}}fa-times{{/if}}"></i>
|
||||
</a>
|
||||
<a class="effect-control" data-action="delete" title="{{localize 'UI.effect_delete'}}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/each}}
|
||||
</ol>
|
||||
@@ -0,0 +1,21 @@
|
||||
<div class="skill-item">
|
||||
<label for="system.skills.{{key}}.value" title="{{ localize (concat 'SKILLS.' key) }} - {{ localize (concat 'VERMINE.rarity_' skill.rarity) }}">
|
||||
{{ localize (concat 'SKILLS.' key) }}
|
||||
{{#if skill.rarity}}
|
||||
<span class="rarity-badge rarity-{{skill.rarity}}" title="{{ localize (concat 'VERMINE.rarity_' skill.rarity) }}">
|
||||
{{skill.rarity}}
|
||||
</span>
|
||||
{{/if}}
|
||||
</label>
|
||||
<div class="skill-control">
|
||||
<input
|
||||
type="range"
|
||||
name="system.skills.{{key}}.value"
|
||||
value="{{skill.value}}"
|
||||
min="{{skill.min}}"
|
||||
max="{{skill.max}}"
|
||||
data-dtype="Number"
|
||||
/>
|
||||
<span class="skill-value">{{skill.value}}D</span>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user