plein de truc

This commit is contained in:
rwanoux
2024-04-21 16:51:13 +02:00
parent 0fe0d530b1
commit 74e11d439c
78 changed files with 9447 additions and 2112 deletions
+49 -36
View File
@@ -1,52 +1,64 @@
<form class="{{cssClass}} {{actor.type}} flexcol form" autocomplete="off">
<div class="form">
<aside>
<img class="logo mx-auto" src="systems/vermine2047/assets/images/ui/logo.webp" width="200" alt="logo Vermine" />
<img class="logo mx-auto"
src="systems/vermine2047/assets/images/ui/logo.webp" width="200"
alt="logo Vermine" />
<div class="sidebar" data-group="dashboard" data-tab="sidebar">
<!--ID -->
{{> "systems/vermine2047/templates/actor/character/character-id.hbs"}}
<!--ID -->
{{> "systems/vermine2047/templates/actor/character/character-id.hbs"}}
</div>
</aside>
<main>
<!-- HEADER -->
{{> "systems/vermine2047/templates/actor/character/character-header.hbs"}}
</aside>
<main>
<!-- HEADER -->
{{> "systems/vermine2047/templates/actor/character/character-header.hbs"}}
<!-- SHEET NAVIGATION -->
<nav class="sheet-navigation sheet-tabs tabs flex-group-end" data-group="primary">
<a class="item" data-tab="character" title="{{localize "VERMINE.tab_character_label"}}">
<i class="fas fa-address-card"></i>
<!-- SHEET NAVIGATION -->
<nav class="sheet-navigation sheet-tabs tabs flex-group-center"
data-group="primary">
<a class="item" data-tab="character"
data-tooltip="{{localize "VERMINE.tabs.abilities"}}">
<i class="fas fa-address-card"></i>
</a>
<a class="item" data-tab="totem" title="{{localize "VERMINE.tab_totem_label"}}">
<i class="fas fa-star"></i>
<a class="item" data-tab="totem"
data-tooltip="{{localize "VERMINE.tabs.totem"}}">
<i class="fas fa-star"></i>
</a>
<a class="item" data-tab="equipment" title="{{localize "VERMINE.tab_equipment_label"}}">
<i class="fas fa-hammer"></i>
<a class="item" data-tab="equipment"
data-tooltip="{{localize "VERMINE.tabs.equipment"}}">
<i class="fas fa-hammer"></i>
</a>
<a class="item" data-tab="stories" title="{{localize "VERMINE.tab_stories_label"}}">
<i class="fas fa-hand-paper"></i>
<a class="item" data-tab="stories"
data-tooltip="{{localize "VERMINE.tabs.stories"}}">
<i class="fas fa-book-open-reader"></i>
</a>
<a class="item" data-tab="combat" title="{{localize "VERMINE.tab_combat_label"}}">
<i class="fas fa-medal"></i>
<a class="item" data-tab="combat"
data-tooltip="{{localize "VERMINE.tabs.combat"}}">
<i class="fas fa-medal"></i>
</a>
<!--a class="manage-tabs" data-action="manage-tabs" title="{{localize "VERMINE.tab_options"}}">
<!--a class="manage-tabs" data-action="manage-tabs" data-tooltip="{{localize "VERMINE.tab_options"}}">
<i class="fas fa-fw fa-ellipsis-v"></i>
</a-->
</nav>
</nav>
<!-- BODY -->
<section class="sheet-body">
<!-- BODY -->
<section class="sheet-body">
<section class="sheet-content">
<div class="tab character character-pane active" data-group="primary" data-tab="character">
<!-- Character -->
{{> "systems/vermine2047/templates/actor/character/character-features.hbs"}}
<div class="tab character character-pane active" data-group="primary"
data-tab="character">
<!-- Character -->
{{>
"systems/vermine2047/templates/actor/character/character-features.hbs"}}
</div>
<div class="tab totem" data-group="primary" data-tab="totem">
<h3>{{ localize 'IDENTITY.totem'}}</h3>
{{> "systems/vermine2047/templates/actor/character/character-totem.hbs"}}
{{>
"systems/vermine2047/templates/actor/character/character-totem.hbs"}}
</div>
<div class="tab equipment" data-group="primary" data-tab="equipment">
<h3>{{ localize 'VERMINE.equipment'}}</h3>
@@ -56,17 +68,18 @@
<div class="tab combat" data-group="primary" data-tab="combat">
<h3>{{ localize 'VERMINE.combat'}}</h3>
<!-- effects -->
{{> "systems/vermine2047/templates/actor/character/character-combat.hbs"}}
{{>
"systems/vermine2047/templates/actor/character/character-combat.hbs"}}
</div>
<div class="tab stories" data-group="primary" data-tab="stories">
<h3>{{ localize 'VERMINE.stories'}}</h3>
{{> "systems/vermine2047/templates/actor/character/character-stories.hbs"}}
</div>
<h3>{{ localize 'VERMINE.stories'}}</h3>
{{>
"systems/vermine2047/templates/actor/character/character-stories.hbs"}}
</div>
</section>
</section>
</main>
</section>
</main>
</div>
</form>
+97 -52
View File
@@ -2,75 +2,120 @@
<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 }}
<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>
</div>
</div>
<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 }}
<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>
</div>
</div>
</div>
<h4 class="item-name effect-name flexrow">{{ localize "VERMINE.wounds.name"}}</h4>
<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 }})
{{#range system.minorWound.max }}
<input type="radio" data-dtype="Number" name="system.minorWound.value" value="{{this}}" {{#ife @root.system.minorWound.value this }}checked="checked"{{/ife}} />
{{/range}}</li>
<li class="row mdb">{{ localize 'VERMINE.wounds.heavy'}} ({{ system.majorWound.threshold }})
{{#range system.majorWound.max }}
<input type="radio" name="system.majorWound.value" value="{{this}}" {{#ife @root.system.majorWound.value this }}checked="checked"{{/ife}} />
{{/range}}
<li class="row mdb">{{ localize 'VERMINE.wounds.light'}} <span
data-tooltip="seuil">({{
system.minorWound.threshold }})</span>
{{#repeat system.minorWound.max 1}}
<input type="radio" data-dtype="Number" name="system.minorWound.value"
value="{{@index}}" {{#ife @root.system.minorWound.value @index
}}checked="checked"{{/ife}} data-wound="minorWound"
class="
{{#iflteq @index @root.system.minorWound.value }}
checked
{{/iflteq}}
" />
{{/repeat}}</li>
<li class="row mdb">{{ localize 'VERMINE.wounds.heavy'}} ({{
system.majorWound.threshold }})
{{#repeat system.majorWound.max 1}}
<input type="radio" name="system.majorWound.value" value="{{@index}}" {{#ife
@root.system.majorWound.value @index }}checked="checked"{{/ife}}
data-wound="majorWound"
class="
{{#iflteq @index @root.system.majorWound.value }}
checked
{{/iflteq}}
" />
{{/repeat}}
</li>
<li class="row mdb">{{ localize 'VERMINE.wounds.deadly'}} ({{ system.deadlyWound.threshold }})
{{#range system.deadlyWound.max }}
<input type="radio" name="system.deadlyWound.value" value="{{this}}" {{#ife @root.system.deadlyWound.value this }}checked="checked"{{/ife}} />
{{/range}}
<li class="row mdb">{{ localize 'VERMINE.wounds.deadly'}} ({{
system.deadlyWound.threshold }})
{{#repeat system.deadlyWound.max 1}}
<input type="radio" name="system.deadlyWound.value" value="{{@index}}"
{{#ife
@root.system.deadlyWound.value @index }}checked="checked"{{/ife}}
data-wound="deadlyWound"
class="
{{#iflteq @index @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>
<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="create" title="{{localize 'UI.effect_create'}}">
<i class="fas fa-plus"></i> {{localize "UI.add"}}
<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>
<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>
</ol>
{{/each}}
</ol>
@@ -2,36 +2,71 @@
<h3>Caractéristiques</h3>
<div class="grid grid-4col">
{{#each config.abilityCategories as |abilityCategory ackey|}}
<div class="characteristics">
<h4 class="align-center">{{ smarttl "ABILITY_CATEGORIES" ackey }}</h4>
{{#each @root.system.abilities as |ability key|}}
{{#if (eq ability.category ackey) }}
<div class="ability flexcol flex-group-center items-center">
<label for="system.abilities.{{key}}.value" class="resource-label rollable flexlarge align-left" data-type="ability" data-label="{{ key }}">{{ smarttl "ABILITIES" key }}</label>
<input type="number" name="system.abilities.{{key}}.value" value="{{ability.value}}" data-dtype="Number" min="1" max="5" />
</div>
{{/if}}
{{/each}}
<div class="characteristics">
<h4 class="align-center">{{ smarttl "ABILITY_CATEGORIES" ackey }}</h4>
{{#each @root.system.abilities as |ability key|}}
{{#if (eq ability.category ackey) }}
<div class="ability flexrow flex-group-center items-center">
<label for="system.abilities.{{key}}.value"
class="resource-label rollable flexlarge align-left" data-type="ability"
data-label="{{ key }}">{{ smarttl "ABILITIES" key }}</label>
<input type="number" class="hexa" name="system.abilities.{{key}}.value"
value="{{ability.value}}" data-dtype="Number" min="1" max="5" />
</div>
{{/each}}
{{/if}}
{{/each}}
</div>
{{/each}}
</div>
<h3>Compétences</h3>
<div class="grid grid-2col">
{{#each config.skillCategories as |skillCategory sckey|}}
<div class="col">
<h4>{{ smarttl "SKILLS_CATEGORIES" sckey }}</h4>
{{#each config.skillCategories as |skillCategory sckey|}}
<div class="col">
<h4>{{ smarttl "SKILLS_CATEGORIES" sckey }}</h4>
{{#each @root.system.skills as |skill skey|}}
{{#if (eq skill.category sckey) }}
<div class="ability flexrow flex-group-center">
<label style="flex:60%;" for="system.skills.{{skey}}.value" class="resource-label rollable flexlarge align-left" data-type="skill" data-label="{{ skey }}">{{ smarttl "SKILLS" skey }}
{{#if (eq skill.rarity 1)}}<sup>(I)</sup>{{/if}}{{#if (eq skill.rarity 2)}}<sup>(II)</sup>{{/if}}</label>
<span class="die d10 pool" title="pool">{{ skillLevel "dicePool" skill.value }}</span>
<span class="die d10 reroll" title="reroll">{{ skillLevel "reroll" skill.value }}</span>
<input type="number" name="system.skills.{{skey}}.value" value="{{skill.value}}" class="skill" data-dtype="Number" min="0" max="5" />
{{#if (eq skill.category sckey) }}
<div class="ability flexrow ">
<label for="system.skills.{{skey}}.value"
class="resource-label rollable flexlarge align-left" data-type="skill"
data-label="{{ skey }}">
{{ smarttl "SKILLS" skey }}
{{#if (eq skill.rarity 1)}}<sup>(I)</sup>{{/if}}
{{#if (eq skill.rarity 2)}}<sup>(II)</sup>{{/if}}
</label>
<div class="specialties">
{{#each @root.specialties as |spe ind|}}
{{#ife spe.system.skill skey}}
<i class="specialty"
data-tooltip="spécialité utilisable">{{spe.name}}</i>
{{/ife}}
{{/each}}
</div>
{{/if}}
{{/each}}
<select name="system.skills.{{skey}}.value" class="skill-select">
{{#select skill.value}}
{{#each @root.config.SkillLevels as |level ind|}}
<option value="{{ind}}" title="{{localize level.label}}">
{{localize level.label}}</option>
{{/each}}
{{/select}}
</select>
<span class="hexa">{{skill.value}}</span>
<div class="skill-dots flexrow">
{{#repeat (skillLevel "dicePool" skill.value) 0}}
<div class="dice-pool-dot"
data-tooltip="{{localize "VERMINE.pool"}}"></div>
{{/repeat}}
{{#repeat (skillLevel "reroll" skill.value) 0}}
<div class="dice-reroll-dot"
data-tooltip="{{localize "VERMINE.reroll"}}">X</div>
{{/repeat}}
</div>
</div>
{{/each}}
{{/if}}
{{/each}}
</div>
{{/each}}
</div>
+23 -14
View File
@@ -3,36 +3,45 @@
<section class="char-details">
<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.CharacterNamePlaceholder"}}" />
<input name="name" type="text" value="{{actor.name}}"
placeholder="{{localize "VERMINE.CharacterNamePlaceholder"}}" />
</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" />
<input name="system.identity.profile" type="text"
value="{{system.identity.profile }}" data-dtype="String" />
</div>
<div class="flexrow flex-group-center">
<label for="system.identity.age">{{ localize 'IDENTITY.age' }}</label>
<label for="system.identity.age">{{ localize 'IDENTITY.age'
}}</label>
<div class="flexrow row">
<input type="number" name="system.identity.age" value="{{ system.identity.age }}" data-dtype="Number"/>
<span id="ageType">({{ ageType "name" system.identity.ageType }})</span>
<input type="number" name="system.identity.age"
value="{{ system.identity.age }}" data-dtype="Number" />
<span id="ageType">({{ ageType "name" system.identity.ageType
}})</span>
</div>
</div>
</div>
</section>
<section class="char-level">
<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 votre totem</a>
{{ else }}
<a name="chooseTotem" class="chooseTotem">{{ smarttl "TOTEMS" system.identity.totem }}</a>
<a name="chooseTotem" class="chooseTotem">Choisissez votre totem</a>
{{ else }}
<a name="chooseTotem" class="chooseTotem">{{ smarttl "TOTEMS"
system.identity.totem }}</a>
{{/if}}
</h1>
<div class="reputation flexrow flex-group-center">
<label>{{ localize 'VERMINE.reputation' }}</label>
<input name="system.attributes.reputation.value" type="text" value="{{system.attributes.reputation.value }}" data-dtype="Number" />
</div>
<div class="experience flexrow flex-group-center">
<input name="system.attributes.reputation.value" type="text"
value="{{system.attributes.reputation.value }}"
data-dtype="Number" />
<label>{{ localize 'VERMINE.experience' }}</label>
<input name="system.details.xp.value" type="text" value="{{system.attributes.xp.value}}" data-dtype="Number" />
<input name="system.details.xp.value" type="text"
value="{{system.attributes.xp.value}}" data-dtype="Number" />
</div>
</section>
</header>
+64 -51
View File
@@ -1,54 +1,67 @@
<div class="image-wrapper">
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="100" width="100"/>
<img class="profile-img" src="{{actor.img}}" data-edit="img"
title="{{actor.name}}" height="100" width="100" />
</div>
<ul class="padding-with-frieze unstyled paper">
{{#if system.identity.totem }}
<li class="row lgb">
<div class="flexcol flex-group-center items-center w-full">
<img src="/systems/vermine2047/assets/images/ui/totems/{{ system.identity.totem }}.webp" alt="{{ smarttl 'TOTEMS' system.identity.totem 'name' }}" width="80" height="80" />
</div>
</li>
{{/if}}
{{#if system.identity.theme}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.theme" class="resource-label flexlarge align-left">{{ localize "IDENTITY.theme"}}</label>
<p>{{{ system.identity.theme }}}</p>
</div>
</li>
{{/if}}
{{#if system.identity.instincts}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.instincts" class="resource-label flexlarge align-left">{{ localize "IDENTITY.instincts"}}</label>
<p>{{{ system.identity.instincts }}}</p>
</div>
</li>
{{/if}}
{{#if system.identity.prohibits}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.prohibits" class="resource-label flexlarge align-left">{{ localize "IDENTITY.prohibits"}}</label>
<p>{{{ system.identity.prohibits }}}</p>
</div>
</li>
{{/if}}
{{#if system.identity.objectives}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.objectives" class="resource-label flexlarge align-left">{{ localize "IDENTITY.objectives"}}</label>
<p>{{{ system.identity.objectives }}}</p>
</div>
</li>
{{/if}}
</ul>
{{#if system.identity.relations}}
<ul class="padding-with-frieze unstyled second-paper">
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.relations" class="resource-label flexlarge align-left">{{ localize "IDENTITY.relations"}}</label>
{{{ system.identity.relations }}}
</div>
</li>
</ul>
<ul class="padding-with-frieze unstyled paper">
{{#if system.identity.totem }}
<li class="row lgb">
<div class="flexcol flex-group-center items-center w-full">
<img
src="/systems/vermine2047/assets/images/ui/totems/{{ system.identity.totem }}.webp"
alt="{{ smarttl 'TOTEMS' system.identity.totem 'name' }}" width="80"
height="80"
data-tooltip="{{localize system.identity.totem}}" />
</div>
</li>
{{/if}}
{{#if system.identity.theme}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.theme"
class="resource-label flexlarge align-left"><h4>{{ localize
"IDENTITY.theme"}}</h4></label>
<p>{{{ system.identity.theme }}}</p>
</div>
</li>
{{/if}}
{{#if system.identity.instincts}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.instincts"
class="resource-label flexlarge align-left"><h4>{{ localize
"IDENTITY.instincts"}}</h4></label>
<p>{{{ system.identity.instincts }}}</p>
</div>
</li>
{{/if}}
{{#if system.identity.prohibits}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.prohibits"
class="resource-label flexlarge align-left"><h4>{{ localize
"IDENTITY.prohibits"}}</h4></label>
<p>{{{ system.identity.prohibits }}}</p>
</div>
</li>
{{/if}}
{{#if system.identity.objectives}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.objectives"
class="resource-label flexlarge align-left"><h4>{{ localize
"IDENTITY.objectives"}}</h4></label>
<p>{{{ system.identity.objectives }}}</p>
</div>
</li>
{{/if}}
{{#if system.identity.relations}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.relations"
class="resource-label flexlarge align-left"><h4>{{ localize
"IDENTITY.relations"}}</h4></label>
{{{ system.identity.relations }}}
</div>
</li>
</ul>
{{/if}}
@@ -1,24 +1,30 @@
<section class="flexrow flex-group-left flex-align-left gap-md">
<div>
<h4>{{ localize 'IDENTITY.theme'}}</h4>
<textarea name="system.identity.theme">{{ system.identity.theme }}</textarea>
<textarea
name="system.identity.theme">{{ system.identity.theme }}</textarea>
<h4>{{ localize 'IDENTITY.objectives'}}</h4>
<textarea name="system.identity.objectives">{{ system.identity.objectives }}</textarea>
<textarea
name="system.identity.objectives">{{ system.identity.objectives }}</textarea>
</div>
<div>
<h4>{{ localize 'IDENTITY.instincts'}}</h4>
<textarea name="system.identity.instincts">{{ system.identity.instincts }}</textarea>
<textarea
name="system.identity.instincts">{{ system.identity.instincts }}</textarea>
<h4>{{ localize 'IDENTITY.prohibits'}}</h4>
<textarea name="system.identity.prohibits">{{ system.identity.prohibits }}</textarea>
<textarea
name="system.identity.prohibits">{{ system.identity.prohibits }}</textarea>
</div>
</section>
<section class="flexcol flex-group-left flex-align-left">
<section class="flexcol ">
<div>
<h4>{{ localize 'IDENTITY.notes'}}</h4>
{{editor system.identity.biography target="system.identity.biography" button=true owner=owner editable=editable}}
{{editor system.identity.biography target="system.identity.biography"
button=true owner=owner editable=editable}}
</div>
<div>
<div>
<h4>{{ localize 'IDENTITY.relations'}}</h4>
{{editor system.identity.relations target="system.identity.relations" button=true owner=owner editable=editable}}
{{editor system.identity.relations target="system.identity.relations"
button=true owner=owner editable=editable}}
</div>
</section>
+128 -98
View File
@@ -1,106 +1,136 @@
{{#if system.identity.totem}}
<h4 class="align-center">
{{ smarttl 'TOTEMS' system.identity.totem 'name' }}
</h4>
<p style="font-size:80%;">{{ smarttlk "TOTEMS" system.identity.totem "description"}}</p>
<div class="grid grid-2col">
<div class="">
<div class="item-name"><strong>Principes</strong><br />{{ smarttlk "TOTEMS" system.identity.totem "instincts"}}</div>
</div>
<div class="">
<div class="item-name"><strong>Interdits</strong><br />{{ smarttlk "TOTEMS" system.identity.totem "bans"}}</div>
</div>
<p style="font-size:80%;">{{ smarttlk "TOTEMS" system.identity.totem
"description"}}</p>
<div class="grid grid-2col">
<div class>
<div class="item-name"><strong>Principes</strong><br />{{ smarttlk "TOTEMS"
system.identity.totem "instincts"}}</div>
</div>
<hr>
<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">
<div class>
<div class="item-name"><strong>Interdits</strong><br />{{ smarttlk "TOTEMS"
system.identity.totem "bans"}}</div>
</div>
</div>
<hr>
<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|}}
<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>
<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">
<i class="fas fa-circle-question"
data-tooltip="{{item.system.description}}"></i>
<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.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>
</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">
<i class="fas fa-circle-question"
data-tooltip="{{item.system.description}}"></i>
<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">
<i class="fas fa-circle-question"
data-tooltip="{{item.system.description}}"></i>
<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">
<i class="fas fa-circle-question"
data-tooltip="{{item.system.description}}"></i>
<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">
<i class="fas fa-circle-question"
data-tooltip="{{item.system.description}}"></i>
<a class="item-control item-delete" title="Delete Item"><i
class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ol>
</div>
</div>
{{else}}
<h3>choisissez un totem</h3>
{{/if}}
+90 -47
View File
@@ -2,75 +2,118 @@
<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 }}
<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>
</div>
</div>
<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 }}
<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>
</div>
</div>
</div>
<h4 class="item-name effect-name flexrow">{{ localize "VERMINE.wounds.name"}}</h4>
<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 }})
<li class="row mdb">{{ localize 'VERMINE.wounds.light'}} <span
data-tooltip="seuil">({{
system.minorWound.threshold }})</span>
{{#range system.minorWound.max }}
<input type="radio" data-dtype="Number" name="system.minorWound.value" value="{{this}}" {{#ife @root.system.minorWound.value this }}checked="checked"{{/ife}} />
<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}}
" />
{{/range}}</li>
<li class="row mdb">{{ localize 'VERMINE.wounds.heavy'}} ({{ system.majorWound.threshold }})
<li class="row mdb">{{ localize 'VERMINE.wounds.heavy'}} ({{
system.majorWound.threshold }})
{{#range system.majorWound.max }}
<input type="radio" name="system.majorWound.value" value="{{this}}" {{#ife @root.system.majorWound.value this }}checked="checked"{{/ife}} />
<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}}
" />
{{/range}}
</li>
<li class="row mdb">{{ localize 'VERMINE.wounds.deadly'}} ({{ system.deadlyWound.threshold }})
<li class="row mdb">{{ localize 'VERMINE.wounds.deadly'}} ({{
system.deadlyWound.threshold }})
{{#range system.deadlyWound.max }}
<input type="radio" name="system.deadlyWound.value" value="{{this}}" {{#ife @root.system.deadlyWound.value this }}checked="checked"{{/ife}} />
{{/range}}
<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}}
" />
{{/range}}
</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>
<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="create" title="{{localize 'UI.effect_create'}}">
<i class="fas fa-plus"></i> {{localize "UI.add"}}
<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>
<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>
</ol>
{{/each}}
</ol>
+102 -45
View File
@@ -1,4 +1,5 @@
<section class="{{cssClass}} directory flexcol" id="{{cssId}}" data-tab="{{tabName}}">
<section class="{{cssClass}} directory flexcol" id="{{cssId}}"
data-tab="{{tabName}}">
<header class="combat-tracker-header">
{{#if user.isGM}}
<nav class="encounters flexrow" aria-label="COMBAT.NavLabel">
@@ -6,17 +7,24 @@
<i class="fas fa-plus"></i>
</a>
{{#if combatCount}}
<a class="combat-button combat-cycle" data-tooltip="COMBAT.EncounterPrevious"
{{#if previousId}}data-document-id="{{previousId}}"{{else}}disabled{{/if}}>
<a class="combat-button combat-cycle"
data-tooltip="COMBAT.EncounterPrevious"
{{#if
previousId}}data-document-id="{{previousId}}"{{else}}disabled{{/if}}>
<i class="fas fa-caret-left"></i>
</a>
<h4 class="encounter">{{localize "COMBAT.Encounter"}} {{currentIndex}} / {{combatCount}}</h4>
<a class="combat-button combat-cycle" data-tooltip="COMBAT.EncounterNext"
{{#if nextId}}data-document-id="{{nextId}}"{{else}}disabled{{/if}}>
<h4 class="encounter">{{localize "COMBAT.Encounter"}}
{{currentIndex}} / {{combatCount}}</h4>
<a class="combat-button combat-cycle"
data-tooltip="COMBAT.EncounterNext"
{{#if
nextId}}data-document-id="{{nextId}}"{{else}}disabled{{/if}}>
<i class="fas fa-caret-right"></i>
</a>
{{/if}}
<a class="combat-button combat-control" data-tooltip="COMBAT.Delete" data-control="endCombat" {{#unless combatCount}}disabled{{/unless}}>
<a class="combat-button combat-control" data-tooltip="COMBAT.Delete"
data-control="endCombat" {{#unless
combatCount}}disabled{{/unless}}>
<i class="fas fa-trash"></i>
</a>
</nav>
@@ -24,34 +32,44 @@
<div class="encounter-controls flexrow {{#if hasCombat}}combat{{/if}}">
{{#if user.isGM}}
<a class="combat-button combat-control" data-tooltip="COMBAT.RollAll" data-control="rollAll" {{#unless turns}}disabled{{/unless}}>
<a class="combat-button combat-control"
data-tooltip="COMBAT.RollAll" data-control="rollAll" {{#unless
turns}}disabled{{/unless}}>
<i class="fas fa-users"></i>
</a>
<a class="combat-button combat-control" data-tooltip="COMBAT.RollNPC" data-control="rollNPC" {{#unless turns}}disabled{{/unless}}>
<a class="combat-button combat-control"
data-tooltip="COMBAT.RollNPC" data-control="rollNPC" {{#unless
turns}}disabled{{/unless}}>
<i class="fas fa-users-cog"></i>
</a>
{{/if}}
{{#if combatCount}}
{{#if combat.round}}
<h3 class="encounter-title noborder">{{localize 'COMBAT.Round'}} {{combat.round}}</h3>
<h3 class="encounter-title noborder">{{localize 'COMBAT.Round'}}
{{combat.round}}</h3>
{{else}}
<h3 class="encounter-title noborder">{{localize 'COMBAT.NotStarted'}}</h3>
<h3 class="encounter-title noborder">{{localize
'COMBAT.NotStarted'}}</h3>
{{/if}}
{{else}}
<h3 class="encounter-title noborder">{{localize "COMBAT.None"}}</h3>
{{/if}}
{{#if user.isGM}}
<a class="combat-button combat-control" data-tooltip="COMBAT.InitiativeReset" data-control="resetAll"
<a class="combat-button combat-control"
data-tooltip="COMBAT.InitiativeReset" data-control="resetAll"
{{#unless hasCombat}}disabled{{/unless}}>
<i class="fas fa-undo"></i>
</a>
<a class="combat-button combat-control" data-tooltip="{{labels.scope}}"
data-control="toggleSceneLink" {{#unless hasCombat}}disabled{{/unless}}>
<a class="combat-button combat-control"
data-tooltip="{{labels.scope}}"
data-control="toggleSceneLink" {{#unless
hasCombat}}disabled{{/unless}}>
<i class="fas fa-{{#unless linked}}un{{/unless}}link"></i>
</a>
<a class="combat-button combat-settings" data-tooltip="COMBAT.Settings" data-control="trackerSettings">
<a class="combat-button combat-settings"
data-tooltip="COMBAT.Settings" data-control="trackerSettings">
<i class="fas fa-cog"></i>
</a>
{{/if}}
@@ -60,34 +78,60 @@
<ol id="combat-tracker" class="directory-list">
{{#each turns}}
<li class="combatant actor directory-item flexrow {{this.css}}" data-combatant-id="{{this.id}}">
<img class="token-image" data-src="{{this.img}}" alt="{{this.name}}"/>
<li class="combatant actor directory-item flexrow {{this.css}}"
data-combatant-id="{{this.id}}">
<img class="token-image" data-src="{{this.img}}"
alt="{{this.name}}" />
<div class="token-name flexcol">
<h4 class="{{getCombatTrackerColor this.isPlayer this.isNpc}}">{{this.name}}</h4>
<h4
class="{{getCombatTrackerColor this.isPlayer this.isNpc}}">{{this.name}}</h4>
<div class="combatant-controls flexrow">
<a class="combatant-control {{#if this.hidden}}active{{/if}}" data-tooltip="COMBAT.ToggleVis" data-control="toggleHidden">
<a
class="combatant-control {{#if this.hidden}}active{{/if}}"
data-tooltip="COMBAT.ToggleVis"
data-control="toggleHidden">
<i class="fas fa-eye-slash"></i>
</a>
<a class="combatant-control {{#if this.defeated}}active{{/if}}" data-tooltip="COMBAT.ToggleDead" data-control="toggleDefeated">
<a
class="combatant-control {{#if this.defeated}}active{{/if}}"
data-tooltip="COMBAT.ToggleDead"
data-control="toggleDefeated">
<i class="fas fa-skull"></i>
</a>
<a class="combatant-control offensive status" {{#if (eq this.attitude "offensive")}} data-tooltip="{{localize 'ATTITUDES.offensive.name'}}" {{else}} data-tooltip="{{localize 'ATTITUDES.offensive.name'}}" {{/if}}>
<i {{#if (eq this.attitude "offensive")}} class="fas fa-fist-raised" style="color:white" {{else}} class="fas fa-fist-raised" style="color:gray" {{/if}}></i>
<a class="combatant-control offensive status"
data-tooltip="{{localize 'ATTITUDES.offensive.name'}}"
data-attitude="offensive">
<i
class="fas fa-fist-raised"
style="{{#if (eq this.attitude "offensive")}}color:white
{{else}}color:gray {{/if}}"></i>
</a>
<a class="combatant-control active status" {{#if (eq this.attitude "active")}} data-tooltip="{{localize 'ATTITUDES.active.name'}}" {{else}} data-tooltip="{{localize 'ATTITUDES.active.name'}}" {{/if}}>
<i {{#if (eq this.attitude "active")}} class="fas fa-bow-arrow" style="color:white" {{else}} class="fas fa-bow-arrow" style="color:gray" {{/if}}></i>
<a class="combatant-control active status"
data-tooltip="{{localize 'ATTITUDES.active.name'}}"
data-attitude="active">
<i
class="fas fa-bow-arrow"
style="{{#if (eq this.attitude "active")}}color:white
{{else}} color:gray
{{/if}}"></i>
</a>
<a class="combatant-control passive status" {{#if (eq this.attitude "passive")}} data-tooltip="{{localize 'ATTITUDES.passive.name'}}" {{else}} data-tooltip="{{localize 'ATTITUDES.passive.name'}}" {{/if}}>
<i {{#if (eq this.attitude "passive")}} class="fas fa-shield-cross" style="color:white" {{else}} class="fas fa-shield-cross" style="color:gray" {{/if}}></i>
<a class="combatant-control passive status"
data-tooltip="{{localize 'ATTITUDES.passive.name'}}"
data-attitude="passive">
<i class="fas fa-shield-quartered"
style="{{#if (eq this.attitude "passive")}}color:white
{{else}} color:gray{{/if}}"></i>
</a>
{{#if this.canPing}}
<a class="combatant-control" data-tooltip="COMBAT.PingCombatant" data-control="pingCombatant">
<a class="combatant-control"
data-tooltip="COMBAT.PingCombatant"
data-control="alertPingCombatant">
<i class="fa-solid fa-bullseye-arrow"></i>
</a>
{{/if}}
<div class="token-effects">
{{#each this.effects}}
<img class="token-effect" src="{{this}}"/>
<img class="token-effect" src="{{this}}" />
{{/each}}
</div>
</div>
@@ -103,30 +147,43 @@
{{#if this.hasRolled}}
<span class="initiative">{{this.initiative}}</span>
{{else if this.owner}}
<a class="combatant-control roll" data-tooltip="COMBAT.InitiativeRoll" data-control="rollInitiative"></a>
<a class="combatant-control roll"
data-tooltip="COMBAT.InitiativeRoll"
data-control="rollInitiative"></a>
{{/if}}
</div>
</li>
{{/each}}
</ol>
<nav id="combat-controls" class="directory-footer flexrow" data-tooltip-direction="UP">
{{#if hasCombat}}
<nav id="combat-controls" class="directory-footer flexrow"
data-tooltip-direction="UP">
{{#if hasCombat}}
{{#if user.isGM}}
{{#if round}}
<a class="combat-control" data-tooltip="COMBAT.RoundPrev" data-control="previousRound"><i class="fas fa-step-backward"></i></a>
<a class="combat-control" data-tooltip="COMBAT.TurnPrev" data-control="previousTurn"><i class="fas fa-arrow-left"></i></a>
<a class="combat-control center" data-control="endCombat">{{localize 'COMBAT.End'}}</a>
<a class="combat-control" data-tooltip="COMBAT.TurnNext" data-control="nextTurn"><i class="fas fa-arrow-right"></i></a>
<a class="combat-control" data-tooltip="COMBAT.RoundNext" data-control="nextRound"><i class="fas fa-step-forward"></i></a>
{{else}}
<a class="combat-control center" data-control="startCombat">{{localize 'COMBAT.Begin'}}</a>
{{/if}}
{{else if control}}
<a class="combat-control" data-tooltip="COMBAT.TurnPrev" data-control="previousTurn"><i class="fas fa-arrow-left"></i></a>
<a class="combat-control center" data-control="nextTurn">{{localize 'COMBAT.TurnEnd'}}</a>
<a class="combat-control" data-tooltip="COMBAT.TurnNext" data-control="nextTurn"><i class="fas fa-arrow-right"></i></a>
{{#if round}}
<a class="combat-control" data-tooltip="COMBAT.RoundPrev"
data-control="previousRound"><i
class="fas fa-step-backward"></i></a>
<a class="combat-control" data-tooltip="COMBAT.TurnPrev"
data-control="previousTurn"><i class="fas fa-arrow-left"></i></a>
<a class="combat-control center" data-control="endCombat">{{localize
'COMBAT.End'}}</a>
<a class="combat-control" data-tooltip="COMBAT.TurnNext"
data-control="nextTurn"><i class="fas fa-arrow-right"></i></a>
<a class="combat-control" data-tooltip="COMBAT.RoundNext"
data-control="nextRound"><i class="fas fa-step-forward"></i></a>
{{else}}
<a class="combat-control center" data-control="startCombat">{{localize
'COMBAT.Begin'}}</a>
{{/if}}
{{else if control}}
<a class="combat-control" data-tooltip="COMBAT.TurnPrev"
data-control="previousTurn"><i class="fas fa-arrow-left"></i></a>
<a class="combat-control center" data-control="nextTurn">{{localize
'COMBAT.TurnEnd'}}</a>
<a class="combat-control" data-tooltip="COMBAT.TurnNext"
data-control="nextTurn"><i class="fas fa-arrow-right"></i></a>
{{/if}}
{{/if}}
{{/if}}
</nav>
</section>
+36 -24
View File
@@ -1,29 +1,41 @@
<form class="{{cssClass}}" autocomplete="off">
<form
class="{{cssClass}}"
autocomplete="off"
>
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<img
class="profile-img"
src="{{item.img}}"
data-edit="img"
title="{{item.name}}"
/>
{{log this}}
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<h1 class="charname"><input
name="name"
type="text"
value="{{item.name}}"
placeholder="Name"
/></h1>
<select
name="system.skill"
class="skill-select"
>
{{#select system.skill}}
{{#each @root.config.skillCategories as |skillCategory sckey|}}
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' sckey 'name' }}">
{{#each @root.config.model.Actor.character.skills as |skill key|}}
{{#ife skill.category sckey}}
<option value="{{key}}">{{ smarttlk 'SKILLS' key 'name' }}</option>
{{/ife}}
</optgroup>
{{/each}}
{{/each}}
{{/select}}
</select>
</div>
</header>
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">Description</a>
<a class="item" data-tab="attributes">Attributes</a>
</nav>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Description Tab --}}
<div class="tab" data-group="primary" data-tab="description">
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
</div>
{{!-- Attributes Tab --}}
<div class="tab attributes" data-group="primary" data-tab="attributes">
{{!-- As you add new fields, add them in here! --}}
</div>
</section>
</form>
</form>
+69 -36
View File
@@ -1,74 +1,107 @@
<form id="dice-pool-form" class="ecryme-dv-form" data-actor-id="{{ speakerId }}">
<form id="dice-pool-form" class="ecryme-dv-form"
data-actor-id="{{ speakerId }}">
<input type="hidden" name="label" id="label" value="{{ label }}" />
<input type="hidden" name="rollType" id="rollType" value="{{ rollType }}" />
<input type="hidden" name="abilityScore" id="abilityScore" value="{{ abilityScore }}" />
<input type="hidden" name="skillScore" id="skillScore" value="{{ skillScore }}" />
<input type="hidden" name="abilityScore" id="abilityScore"
value="{{ abilityScore }}" />
<input type="hidden" name="skillScore" id="skillScore"
value="{{ skillScore }}" />
<div class="dice-pool flexcol">
<div class="flexrow row lgb flex-group-center">
<span>Type de jet <strong>{{#if (eq rollType 'skill')}}{{ localize 'VERMINE.skill_title' }}{{else}}{{ localize 'VERMINE.ability' }}{{/if}}</strong></span>
<span>{{#if (eq rollType 'skill')}}{{ localize 'VERMINE.skill_title' }}{{else}}{{ localize 'VERMINE.ability' }}{{/if}}
<strong>{{#if (eq rollType 'skill')}}{{ smarttl "SKILLS" label }}{{else}}{{ smarttl "ABILITIES" label }}{{/if}}</strong> </span>
<div class="flexrow row lgb flex-group-center">
<span>Type de jet <strong>{{#if (eq rollType 'skill')}}{{ localize
'VERMINE.skill_title' }}{{else}}{{ localize 'VERMINE.ability'
}}{{/if}}</strong></span>
<span>{{#if (eq rollType 'skill')}}{{ localize 'VERMINE.skill_title'
}}{{else}}{{ localize 'VERMINE.ability' }}{{/if}}
<strong>{{#if (eq rollType 'skill')}}{{ smarttl "SKILLS" label
}}{{else}}{{ smarttl "ABILITIES" label }}{{/if}}</strong> </span>
</div>
<div class="flexrow row mdb">
<label class="label" style="flex: 60%;">{{localize 'VERMINE.difficulty'}}</label>
<select class="info-value" style="max-width: 40%;" data-dtype="String" type="number" name="difficulty" id="difficulty" min="3" max="10">
<label class="label" style="flex: 60%;">{{localize
'VERMINE.difficulty'}}</label>
<select class="info-value" style="max-width: 40%;" data-dtype="String"
type="number" name="difficulty" id="difficulty" min="3" max="10">
{{#select difficulty }}
<option value="{{ diffLevel 'difficulty' 1}}">{{ diffLevel 'label' 1}} - {{ diffLevel 'difficulty' 1}}</option>
<option value="{{ diffLevel 'difficulty' 1}}">{{ diffLevel 'label' 2}} - {{ diffLevel 'difficulty' 2}}</option>
<option value="{{ diffLevel 'difficulty' 1}}" selected>{{ diffLevel 'label' 3}} - {{ diffLevel 'difficulty' 3}}</option>
<option value="{{ diffLevel 'difficulty' 1}}">{{ diffLevel 'label' 4}} - {{ diffLevel 'difficulty' 4}}</option>
<option value="{{ diffLevel 'difficulty' 1}}">{{ diffLevel 'label' 5}} - {{ diffLevel 'difficulty' 5}}</option>
<option value="{{ diffLevel 'difficulty' 1}}">{{ diffLevel 'label' 1}} -
{{ diffLevel 'difficulty' 1}}</option>
<option value="{{ diffLevel 'difficulty' 2}}">{{ diffLevel 'label' 2}} -
{{ diffLevel 'difficulty' 2}}</option>
<option value="{{ diffLevel 'difficulty' 3}}" selected>{{ diffLevel
'label' 3}} - {{ diffLevel 'difficulty' 3}}</option>
<option value="{{ diffLevel 'difficulty' 4}}">{{ diffLevel 'label' 4}} -
{{ diffLevel 'difficulty' 4}}</option>
<option value="{{ diffLevel 'difficulty' 5}}">{{ diffLevel 'label' 5}} -
{{ diffLevel 'difficulty' 5}}</option>
{{/select}}
</select>
</select>
</div>
<!--div class="flexrow row">
<input style="text-align: center;" class="numeric-entry" type="number" name="difficulty" value="7" id="difficulty" min="3" max="10">
</div-->
</div-->
<div class="flexrow row mdb">
<label class="label" style="flex: 60%;">{{localize 'VERMINE.ability'}}</label>
<select class="info-value" style="max-width: 40%;" data-dtype="String" type="number" name="ability" id="ability" min="1" max="5">
{{#if (eq rollType 'skill')}}<option>-- Choisissez une caractéristique --</option>{{/if}}
<label class="label" style="flex: 60%;">{{localize
'VERMINE.ability'}}</label>
<select class="info-value" style="max-width: 40%;" data-dtype="String"
type="number" name="ability" id="ability" min="1" max="5">
{{#if (eq rollType 'skill')}}<option>-- Choisissez une caractéristique
--</option>{{/if}}
{{#each abilities as |ability key| }}
<option value="{{ key }}" {{#if (eq key @root.label)}}selected{{/if}}> {{ smarttl "ABILITIES" key }} - {{ ability.value }}</option>
<option value="{{ key }}" {{#if (eq key @root.label)}}selected{{/if}}>
{{ smarttl "ABILITIES" key }} - {{ ability.value }}</option>
{{/each}}
</select>
</select>
</div>
{{#if (eq rollType 'skill')}}
<div class="flexrow row mdb">
<label class="label" style="flex: 60%;">{{localize 'VERMINE.skill_title'}}</label>
<select class="info-value" style="max-width: 40%;" data-dtype="String" type="number" name="skill" id="skill" min="1" max="5">
<label class="label" style="flex: 60%;">{{localize
'VERMINE.skill_title'}}</label>
<select class="info-value" style="max-width: 40%;" data-dtype="String"
type="number" name="skill" id="skill" min="1" max="5">
{{#each skills as |skill key| }}
<option value="{{ key }}" {{#if (eq key @root.label)}}selected{{/if}}> {{ smarttl "SKILLS" key }} - {{ skill.value }}</option>
<option value="{{ key }}" {{#if (eq key @root.label)}}selected{{/if}}>
{{ smarttl "SKILLS" key }} - {{ skill.value }}</option>
{{/each}}
</select>
</div>
<div class="flexrow row lgb">
<span id="skillLevel">{{#if (ne skillScore 0)}}{{ skillLevel 'label' skillScore }}{{/if}}</span>
<span>{{localize 'VERMINE.bonus'}} : <em id="skillDicePool">{{#if (ne skillScore 0)}}{{ skillLevel 'dicePool' skillScore }}{{else}}0{{/if}}</em></span>
<span>{{localize 'VERMINE.reroll'}} : <em id="skillReroll">{{#if (ne skillScore 0)}}{{ skillLevel 'reroll' skillScore }}{{else}}0{{/if}}</em></span>
</div>
<span id="skillLevel">{{#if (ne skillScore 0)}}{{ skillLevel 'label'
skillScore }}{{/if}}</span>
<span>{{localize 'VERMINE.bonus'}} : <em id="skillDicePool">{{#if (ne
skillScore 0)}}{{ skillLevel 'dicePool' skillScore
}}{{else}}0{{/if}}</em></span>
<span>{{localize 'VERMINE.reroll'}} : <em id="skillReroll">{{#if (ne
skillScore 0)}}{{ skillLevel 'reroll' skillScore
}}{{else}}0{{/if}}</em></span>
</div>
<div class="flexrow row smb">
<label class="label">{{localize 'VERMINE.specialty'}} (+1D)</label>
<input type="checkbox" name="usingSpecialization" id="usingSpecialization" value="1" {{#if specialty}}checked{{/if}}>
<input type="checkbox" name="usingSpecialization" id="usingSpecialization"
value="1" {{#if specialty}}checked{{/if}}>
</div>
{{/if}}
<div class="flexrow row smb">
<label class="label">{{localize 'VERMINE.help'}} (+1D)</label>
<input type="checkbox" name="helped" id="helped" value="1" {{#if help}}checked{{/if}}>
<input type="checkbox" name="helped" id="helped" value="1" {{#if
help}}checked{{/if}}>
</div>
<div class="flexrow row mdb">
<label class="label">{{localize 'VERMINE.tooling'}} (+1D)</label>
<input type="checkbox" name="usingTools" id="usingTools" value="1" {{#if help}}checked{{/if}}>
<input type="checkbox" name="usingTools" id="usingTools" value="1" {{#if
help}}checked{{/if}}>
</div>
<div class="flexrow row mdb">
<label class="label" style="flex: 80%;">{{localize 'VERMINE.self_control'}}</label>
<input type="number" class="numeric-entry" style="text-align: center;" name="self_control" id="self_control" min="0" max="5" value="0">
<label class="label" style="flex: 80%;">{{localize
'VERMINE.self_control'}}</label>
<input type="number" class="numeric-entry" style="text-align: center;"
name="self_control" id="self_control" min="0" max="5" value="0">
</div>
<div class="flexrow row mdb">
<label class="label" style="flex: 80%;">{{localize 'VERMINE.group'}}</label>
<input type="number" class="numeric-entry" style="text-align: center;" name="group" id="group" min="0" max="" value="0">
<label class="label" style="flex: 80%;">{{localize
'VERMINE.group'}}</label>
<input type="number" class="numeric-entry" style="text-align: center;"
name="group" id="group" min="0" max value="0">
</div>
</div>
</div>
<p><input type="hidden" name="speakerId" value="{{ speakerId }}" />
<input type="hidden" name="skillLabel" value="{{ skill }}" /></p>
</form>