169 lines
6.9 KiB
Handlebars
169 lines
6.9 KiB
Handlebars
<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>
|