tellement de trucs
This commit is contained in:
@@ -1,10 +1,21 @@
|
||||
<form class="{{cssClass}} {{actor.type}} flexcol form" autocomplete="off">
|
||||
|
||||
<div class="form">
|
||||
{{log this}}
|
||||
<aside>
|
||||
<div class="flexrow" id="edit">
|
||||
<span>mode jeu</span>
|
||||
<input type="checkbox" name="flags.world.editMode"
|
||||
{{#if actor.flags.world.editMode}}
|
||||
checked
|
||||
{{/if}} />
|
||||
<span>mode edit</span>
|
||||
|
||||
</div>
|
||||
<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"}}
|
||||
|
||||
@@ -1,71 +1,93 @@
|
||||
<div class="grid grid-2col">
|
||||
<div>
|
||||
<h4 class="align-center">{{ localize "VERMINE.self_control"}} :
|
||||
<div class="self-control-container">
|
||||
<h4 class="align-center">
|
||||
<a class="min-max-edit" data-prop="system.attributes.effort">
|
||||
<i class="fas fa-cogs"> </i>
|
||||
</a>
|
||||
|
||||
{{ localize "VERMINE.self_control"}} :
|
||||
{{@root.system.attributes.self_control.value}}/
|
||||
{{@root.system.attributes.self_control.max}}
|
||||
</h4>
|
||||
{{setVar "SCIndex" 1}}
|
||||
<div class="reserve-grid">
|
||||
{{#repeat 4 1 "row"}}
|
||||
|
||||
<div class="flexrow">
|
||||
{{#repeat 10 1}}
|
||||
<div class="hexa
|
||||
{{#iflteq @index @root.system.attributes.self_control.value }}
|
||||
<div class="flexrow">
|
||||
{{#repeat @row @root.SCIndex "case"}}
|
||||
{{log @root.SCIndex}}
|
||||
<div class="hexa
|
||||
{{#iflteq @case @root.system.attributes.self_control.value }}
|
||||
checked
|
||||
{{/iflteq}}
|
||||
{{#ifgt @index @root.system.attributes.self_control.max }}
|
||||
{{/iflteq}}
|
||||
{{#ifgt @case @root.system.attributes.self_control.max }}
|
||||
unavailable
|
||||
{{/ifgt}}">
|
||||
{{#iflteq @index @root.system.attributes.self_control.max }}
|
||||
<input type="radio" data-dtype="Number"
|
||||
name="system.attributes.self_control.value"
|
||||
value="{{@index}}" {{#ife @root.system.attributes.self_control.value
|
||||
@index
|
||||
}}checked="checked"{{/ife}}
|
||||
class="
|
||||
{{#iflteq @index @root.system.attributes.self_control.max }}
|
||||
{{/ifgt}}">
|
||||
{{#iflteq @row @root.system.attributes.self_control.max }}
|
||||
<input type="radio" data-dtype="Number"
|
||||
name="system.attributes.self_control.value"
|
||||
value="{{@case}}" {{#ife
|
||||
@root.system.attributes.self_control.value
|
||||
@root.selfControlIndex
|
||||
}}checked="checked"{{/ife}}
|
||||
class="
|
||||
{{#iflteq @case @root.system.attributes.self_control.max }}
|
||||
checked
|
||||
{{/iflteq}}
|
||||
|
||||
" />
|
||||
{{/iflteq}}
|
||||
|
||||
" />
|
||||
{{/iflteq}}
|
||||
|
||||
</div>
|
||||
{{setVar "SCIndex" (math_add @root.SCIndex 1)}}
|
||||
{{/repeat}}
|
||||
</div>
|
||||
{{/repeat}}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="align-center">{{ localize "VERMINE.effort"}} :
|
||||
<div class="effort-container">
|
||||
<h4 class="align-center">
|
||||
<a class="min-max-edit" data-prop="system.attributes.effort">
|
||||
<i class="fas fa-cogs"></i>
|
||||
</a>
|
||||
{{ localize "VERMINE.effort"}} :
|
||||
{{@root.system.attributes.effort.value}}/
|
||||
{{@root.system.attributes.effort.max}}
|
||||
</h4>
|
||||
{{setVar "EffIndex" 1}}
|
||||
|
||||
<div class="flexrow">
|
||||
{{#repeat 10 1}}
|
||||
<div
|
||||
class="hexa
|
||||
{{#iflteq @index @root.system.attributes.effort.value }}
|
||||
<div class="reserve-grid">
|
||||
{{#repeat 4 1 "row"}}
|
||||
|
||||
<div class="flexrow">
|
||||
{{#repeat @row @root.EffIndex "case"}}
|
||||
{{log @root.EffIndex}}
|
||||
<div class="hexa
|
||||
{{#iflteq @case @root.system.attributes.effort.value }}
|
||||
checked
|
||||
{{/iflteq}}
|
||||
{{#ifgt @index @root.system.attributes.effort.max }}
|
||||
{{/iflteq}}
|
||||
{{#ifgt @case @root.system.attributes.effort.max }}
|
||||
unavailable
|
||||
{{/ifgt}}">
|
||||
{{#iflteq @index @root.system.attributes.effort.max }}
|
||||
<input type="radio" data-dtype="Number"
|
||||
name="system.attributes.effort.value"
|
||||
value="{{@index}}" {{#ife @root.system.attributes.effort.value
|
||||
@index
|
||||
}}checked="checked"{{/ife}}
|
||||
class="
|
||||
{{#iflteq @index @root.system.attributes.effort.value }}
|
||||
{{/ifgt}}">
|
||||
{{#iflteq @row @root.system.attributes.effort.max }}
|
||||
<input type="radio" data-dtype="Number"
|
||||
name="system.attributes.effort.value"
|
||||
value="{{@case}}" {{#ife
|
||||
@root.system.attributes.effort.value
|
||||
@root.selfControlIndex
|
||||
}}checked="checked"{{/ife}}
|
||||
class="
|
||||
{{#iflteq @case @root.system.attributes.effort.max }}
|
||||
checked
|
||||
{{/iflteq}}
|
||||
|
||||
" />
|
||||
{{/iflteq}}
|
||||
|
||||
" />
|
||||
{{/iflteq}}
|
||||
|
||||
</div>
|
||||
{{setVar "EffIndex" (math_add @root.EffIndex 1)}}
|
||||
{{/repeat}}
|
||||
</div>
|
||||
{{#ife @index 1}}
|
||||
<br />
|
||||
{{/ife}}
|
||||
{{/repeat}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -77,7 +99,7 @@
|
||||
data-tooltip="seuil">({{
|
||||
system.minorWound.threshold }})</span>
|
||||
<div class="flexrow">
|
||||
{{#repeat system.minorWound.max 1}}
|
||||
{{#repeat system.minorWound.max 1 "minorwoundmax"}}
|
||||
<div class="hexa ability{{#iflteq @index @root.system.minorWound.value }}
|
||||
checked
|
||||
{{/iflteq}}">
|
||||
@@ -98,7 +120,7 @@
|
||||
<span>({{
|
||||
system.majorWound.threshold }})</span>
|
||||
<div class="flexrow">
|
||||
{{#repeat system.majorWound.max 1}}
|
||||
{{#repeat system.majorWound.max 1 majourwoundmax}}
|
||||
<div class="hexa ability{{#iflteq @index @root.system.majorWound.value }}
|
||||
checked
|
||||
{{/iflteq}}">
|
||||
@@ -119,7 +141,7 @@
|
||||
<li class="row mdb">{{ localize 'VERMINE.wounds.deadly'}}
|
||||
<span>({{system.deadlyWound.threshold }})</span>
|
||||
<div class="flexrow">
|
||||
{{#repeat system.deadlyWound.max 1}}
|
||||
{{#repeat system.deadlyWound.max 1 "deadlywoundmax"}}
|
||||
<div class="hexa ability{{#iflteq @index @root.system.deadlyWound.value }}
|
||||
checked
|
||||
{{/iflteq}}">
|
||||
|
||||
@@ -15,14 +15,25 @@
|
||||
</div>
|
||||
{{/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 system.skill_categories as |skillCategory sckey|}}
|
||||
{{#if skillCategory.label}}
|
||||
<div class="col
|
||||
{{#ife sckey @root.system.skill_categories.preferred}}
|
||||
preferred
|
||||
{{/ife}}">
|
||||
<h4>{{ smarttl "SKILLS_CATEGORIES" sckey }}
|
||||
<input type="radio" data-tooltip="domaine de prédilection ?"
|
||||
name="system.skill_categories.preferred" value="{{sckey}}"
|
||||
{{#ife sckey @root.system.skill_categories.preferred}}
|
||||
checked
|
||||
{{/ife}}>
|
||||
</h4>
|
||||
{{#each @root.system.skills as |skill skey|}}
|
||||
|
||||
{{#if (eq skill.category sckey) }}
|
||||
@@ -36,7 +47,11 @@
|
||||
|
||||
</label>
|
||||
<div class="specialties">
|
||||
{{#each @root.specialties as |spe ind|}}
|
||||
{{#ifgt skill.value 1}}
|
||||
<i class="fas fa-add add-specialty"
|
||||
data-tooltip="ajout de spécialité"></i>
|
||||
{{/ifgt}}
|
||||
{{#each skill.specialties as |spe ind|}}
|
||||
{{#ife spe.system.skill skey}}
|
||||
<i class="specialty"
|
||||
data-tooltip="spécialité utilisable">{{spe.name}}</i>
|
||||
@@ -53,11 +68,11 @@
|
||||
</select>
|
||||
<span class="hexa">{{skill.value}}</span>
|
||||
<div class="skill-dots flexrow">
|
||||
{{#repeat (skillLevel "dicePool" skill.value) 0}}
|
||||
{{#repeat (skillLevel "dicePool" skill.value) 0 "dicepool"}}
|
||||
<div class="dice-pool-dot"
|
||||
data-tooltip="{{localize "VERMINE.pool"}}"></div>
|
||||
{{/repeat}}
|
||||
{{#repeat (skillLevel "reroll" skill.value) 0}}
|
||||
{{#repeat (skillLevel "reroll" skill.value) 0 "dicereroll"}}
|
||||
<div class="dice-reroll-dot"
|
||||
data-tooltip="{{localize "VERMINE.reroll"}}">X</div>
|
||||
{{/repeat}}
|
||||
@@ -68,5 +83,6 @@
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
@@ -10,19 +10,21 @@
|
||||
major
|
||||
{{/ifgt}}
|
||||
">{{localize "TOTEMS.human.name"}}
|
||||
<img src="/systems/vermine2047/assets/images/ui/totems/human.webp" />
|
||||
<img class="img-totem"
|
||||
src="/systems/vermine2047/assets/images/ui/totems/human.webp" />
|
||||
</h5>
|
||||
|
||||
<h5 class="adapted
|
||||
{{#ifgt system.adaptation.totems.human.value system.adaptation.totems.adapted.value}}
|
||||
{{#ifgt system.adaptation.totems.adapted.value system.adaptation.totems.human.value}}
|
||||
major
|
||||
{{/ifgt}}">{{localize "TOTEMS.adapted.name"}}
|
||||
<img src="/systems/vermine2047/assets/images/ui/totems/adapted.webp" />
|
||||
<img class="img-totem"
|
||||
src="/systems/vermine2047/assets/images/ui/totems/adapted.webp" />
|
||||
</h5>
|
||||
|
||||
<div class="totem-dice flexrow flex-group-center">
|
||||
<div class="human-dice flexrow">
|
||||
{{#repeat system.adaptation.totems.human.max 1}}
|
||||
{{#repeat system.adaptation.totems.human.max 1 "humantotem"}}
|
||||
<div class="hexa" data-totem-name="human" data-totem-value="{{@index}}">
|
||||
{{#ifgteq system.adaptation.totems.human.value @index}}
|
||||
<div class="human-die"><i class="fas fa-dice-d10"></i></div>
|
||||
@@ -32,7 +34,7 @@
|
||||
</div>
|
||||
|
||||
<div class="adapted-dice flexrow">
|
||||
{{#repeat system.adaptation.totems.adapted.max 1}}
|
||||
{{#repeat system.adaptation.totems.adapted.max 1 "adaptedtotem"}}
|
||||
<div class="hexa" data-totem-name="adapted" data-totem-value="{{@index}}">
|
||||
{{#ifgteq system.adaptation.totems.adapted.value @index}}
|
||||
<div class="adapted-die"><i class="fas fa-dice-d10"></i></div>
|
||||
@@ -48,6 +50,7 @@
|
||||
<div class="flexcol flex-group-center items-center w-full">
|
||||
<h4>{{ smarttl 'TOTEMS' system.identity.totem 'name' }}</h4>
|
||||
<img
|
||||
class="img-totem"
|
||||
src="/systems/vermine2047/assets/images/ui/totems/{{ system.identity.totem }}.webp"
|
||||
alt="{{ smarttl 'TOTEMS' system.identity.totem 'name' }}" width="80"
|
||||
height="80" />
|
||||
|
||||
@@ -1,21 +1,35 @@
|
||||
{{#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 class="totem-details">
|
||||
<img
|
||||
class="img-totem"
|
||||
src="/systems/vermine2047/assets/images/ui/totems/{{ system.identity.totem }}.webp"
|
||||
alt="{{ smarttl 'TOTEMS' system.identity.totem 'name' }}" width="80"
|
||||
height="80" />
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
{{else}}
|
||||
|
||||
<h3>choisissez un totem</h3>
|
||||
|
||||
{{/if}}
|
||||
<div class="grid grid-2col">
|
||||
<div>
|
||||
<h4>
|
||||
@@ -128,9 +142,4 @@
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
|
||||
<h3>choisissez un totem</h3>
|
||||
|
||||
{{/if}}
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
<h2>edit {{actorName}} : {{propName}}</h2>
|
||||
@@ -0,0 +1,193 @@
|
||||
<form id="dice-pool-form" class="vermine form"
|
||||
data-actor-id="{{ speakerId }}">
|
||||
{{log this}}
|
||||
<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 }}" />
|
||||
<div class="dice-pool flexcol">
|
||||
<h1 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>
|
||||
|
||||
</h1>
|
||||
|
||||
<div class="flexrow">
|
||||
<label class="label">{{localize
|
||||
'VERMINE.difficulty'}}</label>
|
||||
<select class="info-value" data-roll="tue"
|
||||
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' 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>
|
||||
<label for="handicap">Handicap</label>
|
||||
<select class="info-value" data-roll="tue"
|
||||
data-dtype="String"
|
||||
type="number" name="handicap" id="handicap" min="0" max="2">
|
||||
{{#select difficulty }}
|
||||
<option value="1" selected>aucun</option>
|
||||
<option value="2">(I)</option>
|
||||
<option value="3">(II)</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="flexrow ">
|
||||
<h2 class="flexcol">
|
||||
<label class="label">{{localize
|
||||
'VERMINE.ability'}}</label>
|
||||
<select class="info-value" data-roll="true"
|
||||
data-dtype="String"
|
||||
type="number" name="ability" id="ability" min="1" max="5">
|
||||
<option value="0">-- Choisissez une caractéristique
|
||||
--</option>
|
||||
{{#each config.abilityCategories as |abilCategory catkey|}}
|
||||
|
||||
<optgroup label="{{ smarttlk 'ABILITY_CATEGORIES' catkey 'name' }}">
|
||||
{{#each @root.actor.system.abilities as |abil key|}}
|
||||
{{#ife abil.category catkey}}
|
||||
<option value="{{abil.value}}"
|
||||
data-label="{{key}}"
|
||||
{{#ife @root.rollType "ability"}}
|
||||
{{#ife @root.labelKey key}}
|
||||
selected="true"
|
||||
{{/ife}}
|
||||
{{/ife}}>{{ smarttlk 'ABILITIES' key 'name'
|
||||
}} / {{abil.value}}</option>
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
|
||||
</optgroup>
|
||||
|
||||
{{/each}}
|
||||
</select>
|
||||
</h2>
|
||||
<h3 class="flexcol">
|
||||
<label class="label">{{localize
|
||||
'VERMINE.skill_title'}}</label>
|
||||
<select class="info-value" data-roll="true"
|
||||
data-dtype="String"
|
||||
type="number" name="skill" id="skill" min="1" max="5">
|
||||
<option>-- Choisissez une caractéristique
|
||||
--</option>
|
||||
{{#each config.skillCategories as |skillCategory catkey|}}
|
||||
|
||||
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' catkey 'name' }}">
|
||||
{{#each @root.actor.system.skills as |skill key|}}
|
||||
{{#ife skill.category catkey}}
|
||||
<option value="{{skill.value}}" data-pool="{{skillLevel "dicePool"
|
||||
skill.value}}"
|
||||
data-label="{{key}}"
|
||||
data-reroll="{{skillLevel "reroll" skill.value}}"
|
||||
{{#ife @root.rollType "skill"}}
|
||||
{{#ife @root.labelKey key}}
|
||||
selected="true"
|
||||
{{/ife}}
|
||||
{{/ife}}>
|
||||
<b>{{ smarttlk 'SKILLS' key 'name' }},</b>
|
||||
<i>dés:{{skillLevel "dicePool" skill.value}},
|
||||
relances:{{skillLevel "reroll" skill.value}}</i>
|
||||
</option>
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</optgroup>
|
||||
{{/each}}
|
||||
</select>
|
||||
<label class="label">{{localize 'VERMINE.specialty'}} (+1D)</label>
|
||||
<div class="flexrow">
|
||||
{{#each availableSpecialties as |spec ind|}}
|
||||
<span data-spec-skill="{{spec.system.skill}}">
|
||||
<i>{{spec.name}}</i>
|
||||
<input type="radio" data-roll="true" name="usingSpecialization"
|
||||
id="usingSpecialization"
|
||||
value="{{spec.name}}" {{#if specialty}}checked{{/if}}>
|
||||
</span>
|
||||
{{/each}}
|
||||
|
||||
</div>
|
||||
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-2col">
|
||||
<div class="flexrow row smb">
|
||||
<label class="label">{{localize 'VERMINE.help'}} (+1D)</label>
|
||||
<input type="checkbox" data-roll="true" name="helped" id="helped"
|
||||
value="1" {{#if
|
||||
help}}checked{{/if}}>
|
||||
</div>
|
||||
<div class="flexrow row mdb">
|
||||
<label class="label">{{localize
|
||||
'VERMINE.group'}}</label>
|
||||
<input type="number" data-roll="true" class="numeric-entry"
|
||||
style="text-align: center;"
|
||||
name="group" id="group" min="0" max="5" value="0">
|
||||
</div>
|
||||
<div class="flexrow row mdb">
|
||||
<label class="label">{{localize
|
||||
'VERMINE.self_control'}} + <span id="self_control_value">0</span>D
|
||||
</label>
|
||||
<input type="range" id="self_control" data-roll="true"
|
||||
name="self_control"
|
||||
min="0"
|
||||
max="0" value="0" />
|
||||
</div>
|
||||
<div class="flexrow row mdb">
|
||||
<label class="label">{{localize 'VERMINE.tooling'}} (+1D)</label>
|
||||
<span>
|
||||
<i>Auncun</i>
|
||||
<input type="radio" data-roll="true" name="usingTools"
|
||||
id="usingTools" value="0" checked>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="item-list grid grid-4col">
|
||||
{{#each availableItems as |item ind|}}
|
||||
<span>
|
||||
<i>{{item.name}}</i>
|
||||
<input type="radio" data-roll="true" name="usingTools"
|
||||
id="usingTools"
|
||||
value="{{item.name}}">
|
||||
</span>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
<div class="flexrow">
|
||||
<label class="label">utiliser des dés totems ?
|
||||
</label>
|
||||
{{#ifgt @root.actor.system.adaptation.totems.human.value 0}}
|
||||
<div class="totem-human">
|
||||
<h4 for="human-totem">totem humain </h4>
|
||||
<input type="checkbox" data-roll="true" name="human-totem"
|
||||
id="human-totem"
|
||||
value="1">
|
||||
</div>
|
||||
{{/ifgt}}
|
||||
{{#ifgt @root.actor.system.adaptation.totems.adapted.value 0}}
|
||||
<div class="totem-adapted">
|
||||
<h4 for="human-totem">totem adapté </h4>
|
||||
<input type="checkbox" data-roll="true" name="adapted-totem"
|
||||
id="adapted-totem"
|
||||
value="1">
|
||||
</div>
|
||||
{{/ifgt}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><input type="hidden" name="speakerId" value="{{ speakerId }}" />
|
||||
<input type="hidden" name="skillLabel" value="{{ skill }}" /></p>
|
||||
</form>
|
||||
@@ -61,5 +61,7 @@
|
||||
<h2>description</h2>
|
||||
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
{{> "systems/vermine2047/templates/item/partials/damages.html"}}
|
||||
|
||||
</section>
|
||||
</form>
|
||||
@@ -67,5 +67,6 @@
|
||||
<h2>Description</h2>
|
||||
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
|
||||
|
||||
{{> "systems/vermine2047/templates/item/partials/damages.html"}}
|
||||
</section>
|
||||
</form>
|
||||
@@ -28,9 +28,9 @@
|
||||
{{#ife skill.category sckey}}
|
||||
<option value="{{key}}">{{ smarttlk 'SKILLS' key 'name' }}</option>
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</optgroup>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
|
||||
|
||||
@@ -57,5 +57,7 @@
|
||||
<h2>Description</h2>
|
||||
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
{{> "systems/vermine2047/templates/item/partials/damages.html"}}
|
||||
|
||||
</section>
|
||||
</form>
|
||||
@@ -82,5 +82,7 @@
|
||||
<h2>description</h2>
|
||||
{{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
{{> "systems/vermine2047/templates/item/partials/damages.html"}}
|
||||
|
||||
</section>
|
||||
</form>
|
||||
@@ -0,0 +1,33 @@
|
||||
<h3>dommages</h3>
|
||||
<div class="damages-row flexrow">
|
||||
<div class="radios flexrow">
|
||||
{{#repeat system.damages.max 1 index}}
|
||||
<div class="hexa
|
||||
{{#ifgteq system.damages.value @index }}
|
||||
checked
|
||||
{{/ifgteq }}">
|
||||
<input
|
||||
type="radio"
|
||||
name="system.damages.value"
|
||||
value="{{@index}}"
|
||||
{{#ife system.damages.value @index }}
|
||||
checked="true"
|
||||
{{/ife }}
|
||||
>
|
||||
</div>
|
||||
{{/repeat}}
|
||||
</div>
|
||||
<div class="damage-pannes">
|
||||
<h4>pannes :</h4>
|
||||
{{getDamagesData system.damages "pannes"}}
|
||||
</div>
|
||||
<div class="damage-state">
|
||||
<h4>état :</h4>
|
||||
{{getDamagesData system.damages "state"}}
|
||||
</div>
|
||||
<div class="damage-effect">
|
||||
<h4> effets : </h4>
|
||||
{{getDamagesData system.damages "effect"}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -1,168 +0,0 @@
|
||||
<form id="dice-pool-form" class="vermine 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 }}" />
|
||||
<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>
|
||||
|
||||
<div class="flexrow form-group row mdb">
|
||||
<label class="label" style="flex: 60%;">{{localize
|
||||
'VERMINE.difficulty'}}</label>
|
||||
<select class="info-value" data-roll="tue" 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' 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>
|
||||
</div>
|
||||
<div class="flexrow row mdb">
|
||||
<label class="label" style="flex: 60%;">{{localize
|
||||
'VERMINE.ability'}}</label>
|
||||
<select class="info-value" data-roll="true" style="max-width: 40%;"
|
||||
data-dtype="String"
|
||||
type="number" name="ability" id="ability" min="1" max="5">
|
||||
<option value="0">-- Choisissez une caractéristique
|
||||
--</option>
|
||||
{{#each config.abilityCategories as |abilCategory catkey|}}
|
||||
|
||||
<optgroup label="{{ smarttlk 'ABILITY_CATEGORIES' catkey 'name' }}">
|
||||
{{#each @root.actor.system.abilities as |abil key|}}
|
||||
{{#ife abil.category catkey}}
|
||||
<option value="{{abil.value}}"
|
||||
{{#ife @root.rollType "ability"}}
|
||||
{{#ife @root.labelKey key}}
|
||||
selected="true"
|
||||
{{/ife}}
|
||||
{{/ife}}>{{ smarttlk 'ABILITIES' key 'name'
|
||||
}} / {{abil.value}}</option>
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
|
||||
</optgroup>
|
||||
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="flexrow row mdb">
|
||||
<label class="label" style="flex: 60%;">{{localize
|
||||
'VERMINE.skill_title'}}</label>
|
||||
<select class="info-value" data-roll="true" style="max-width: 40%;"
|
||||
data-dtype="String"
|
||||
type="number" name="skill" id="skill" min="1" max="5">
|
||||
<option>-- Choisissez une caractéristique
|
||||
--</option>
|
||||
{{#each config.skillCategories as |skillCategory catkey|}}
|
||||
|
||||
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' catkey 'name' }}">
|
||||
{{#each @root.actor.system.skills as |skill key|}}
|
||||
{{#ife skill.category catkey}}
|
||||
<option value="{{skill.value}}" data-pool="{{skillLevel "dicePool"
|
||||
skill.value}}"
|
||||
data-reroll="{{skillLevel "reroll" skill.value}}"
|
||||
{{#ife @root.rollType "skill"}}
|
||||
{{#ife @root.labelKey key}}
|
||||
selected="true"
|
||||
{{/ife}}
|
||||
{{/ife}}>
|
||||
<b>{{ smarttlk 'SKILLS' key 'name' }},</b>
|
||||
<i>dés:{{skillLevel "dicePool" skill.value}},
|
||||
relances:{{skillLevel "reroll" skill.value}}</i>
|
||||
</option>
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
|
||||
</optgroup>
|
||||
|
||||
{{/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>
|
||||
<div class="flexrow row smb">
|
||||
<label class="label">{{localize 'VERMINE.specialty'}} (+1D)</label>
|
||||
<input type="checkbox" data-roll="true" name="usingSpecialization"
|
||||
id="usingSpecialization"
|
||||
value="1" {{#if specialty}}checked{{/if}}>
|
||||
</div>
|
||||
<div class="flexrow row smb">
|
||||
<label class="label">{{localize 'VERMINE.help'}} (+1D)</label>
|
||||
<input type="checkbox" data-roll="true" 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" data-roll="true" 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'}} <span id="self_control_value"></span>
|
||||
</label>
|
||||
<input type="range" id="self_control" data-roll="true" name="self_control"
|
||||
min="0"
|
||||
max="0" value="0" />
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
<h4 class="label">utiliser des dés totems ?
|
||||
</h4>
|
||||
{{#ifgt @root.actor.system.adaptation.totems.human.value 0}}
|
||||
<div class="totem-human">
|
||||
<label for="human-totem">totem humain </label>
|
||||
<input type="checkbox" data-roll="true" name="human-totem"
|
||||
id="human-totem"
|
||||
value="1">
|
||||
</div>
|
||||
{{/ifgt}}
|
||||
{{#ifgt @root.actor.system.adaptation.totems.adapted.value 0}}
|
||||
<div class="totem-adapted">
|
||||
<label for="human-totem">totem adapté </label>
|
||||
<input type="checkbox" data-roll="true" name="adapted-totem"
|
||||
id="adapted-totem"
|
||||
value="1">
|
||||
</div>
|
||||
{{/ifgt}}
|
||||
</div>
|
||||
<div class="flexrow row mdb">
|
||||
<label class="label" style="flex: 80%;">{{localize
|
||||
'VERMINE.group'}}</label>
|
||||
<input type="number" data-roll="true" class="numeric-entry"
|
||||
style="text-align: center;"
|
||||
name="group" id="group" min="0" max="5" value="0">
|
||||
</div>
|
||||
</div>
|
||||
<p><input type="hidden" name="speakerId" value="{{ speakerId }}" />
|
||||
<input type="hidden" name="skillLabel" value="{{ skill }}" /></p>
|
||||
</form>
|
||||
+32
-26
@@ -4,6 +4,30 @@
|
||||
<div class="flexrow">
|
||||
<h4>difficulté</h4>
|
||||
<span id="difficulty">{{param.difficulty}}</span>
|
||||
</div>
|
||||
<div class="reroll-fromroll">
|
||||
<h4>relances possibles : <span id="allowed_reroll">{{param.Reroll}}</span></h4>
|
||||
<div class="reroll flexrow">
|
||||
<div class="reroll-from-effort flexrow">
|
||||
<h4 class="flexcol">
|
||||
<span>effort</span>
|
||||
</h4>
|
||||
<input type="range" min="0"
|
||||
{{#iflt param.max_effort param.actor.system.attributes.effort.value}}
|
||||
max="{{param.max_effort}}"
|
||||
{{/iflt}}
|
||||
{{#iflteq param.actor.system.attributes.effort.value param.max_effort }}
|
||||
max="{{param.actor.system.attributes.effort.value}}"
|
||||
{{/iflteq}}
|
||||
value="0"
|
||||
id="effort-reroll">
|
||||
</input>
|
||||
<button class="grant-reroll" data-tooltip="s'accorder des relances"> <span id="granted-reroll">0</span> </button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<ul class="flexrow roll-results initial-roll"
|
||||
data-difficulty="{{param.difficulty}}">
|
||||
@@ -41,32 +65,14 @@
|
||||
{{/each}}
|
||||
</ul>
|
||||
<div class="roll-total flexrow">
|
||||
<h4>nombre de succès :</h4>
|
||||
<span id="total">{{roll._total}}</span>
|
||||
</div>
|
||||
<div class="reroll flexrow">
|
||||
<div class="reroll-from-effort ">
|
||||
<div class="flexcol">
|
||||
<h4 class="flexcol">
|
||||
<span>effort</span>
|
||||
</h4>
|
||||
<input type="range" min="0"
|
||||
{{#iflt param.max_effort param.actor.system.attributes.effort.value}}
|
||||
max="{{param.max_effort}}"
|
||||
{{/iflt}}
|
||||
{{#iflteq param.actor.system.attributes.effort.value param.max_effort }}
|
||||
max="{{param.actor.system.attributes.effort.value}}"
|
||||
{{/iflteq}}
|
||||
value="0"
|
||||
id="effort-reroll">
|
||||
</input>
|
||||
|
||||
</div>
|
||||
<button class="grant-reroll" data-tooltip="s'accorder des relances"> <span id="granted-reroll">0</span> </button>
|
||||
</div>
|
||||
<div class="reroll-fromroll">
|
||||
<h4>relances possibles : </h4>
|
||||
<span id="allowed_reroll">{{param.Reroll}}</span>
|
||||
<div class="flexcol">
|
||||
<h4>nombre de succès :</h4>
|
||||
<span id="total">{{roll._total}}</span>
|
||||
</div>
|
||||
<div class="flexcol">
|
||||
<h4>succès <br> requis :</h4>
|
||||
<span id="total">{{param.handicap}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user