mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-16 23:26:28 +01:00
Hide stuff not required for fate roll
This commit is contained in:
parent
916675fa43
commit
96224cf234
1 changed files with 62 additions and 59 deletions
|
|
@ -81,70 +81,73 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<fieldset class="experience-container">
|
{{#if (ne @root.rollType 'FateRoll')}}
|
||||||
<legend>{{localize "DAGGERHEART.GENERAL.experience.plural"}}</legend>
|
|
||||||
{{#each experiences}}
|
<fieldset class="experience-container">
|
||||||
{{#if name}}
|
<legend>{{localize "DAGGERHEART.GENERAL.experience.plural"}}</legend>
|
||||||
<div class="experience-chip {{#if (includes ../selectedExperiences id)}}selected{{/if}}" data-action="selectExperience" data-key="{{id}}" data-tooltip="{{this.description}}">
|
{{#each experiences}}
|
||||||
<span><i class="{{ifThen (includes ../selectedExperiences id) "fa-solid" "fa-regular"}} fa-circle"></i></span>
|
{{#if name}}
|
||||||
<span class="label">{{name}} +{{value}}</span>
|
<div class="experience-chip {{#if (includes ../selectedExperiences id)}}selected{{/if}}" data-action="selectExperience" data-key="{{id}}" data-tooltip="{{this.description}}">
|
||||||
</div>
|
<span><i class="{{ifThen (includes ../selectedExperiences id) "fa-solid" "fa-regular"}} fa-circle"></i></span>
|
||||||
{{/if}}
|
<span class="label">{{name}} +{{value}}</span>
|
||||||
{{/each}}
|
</div>
|
||||||
</fieldset>
|
|
||||||
<fieldset class="modifier-container {{#if (eq @root.rollType 'DualityRoll')}}two-columns{{else}}one-column{{/if}}">
|
|
||||||
<legend>{{localize "DAGGERHEART.GENERAL.Modifier.plural"}}</legend>
|
|
||||||
<div class="nest-inputs">
|
|
||||||
<button class="advantage-chip flex1 {{#if (eq advantage 1)}}selected{{/if}}" data-action="updateIsAdvantage" data-advantage="1">
|
|
||||||
{{#if (eq advantage 1)}}
|
|
||||||
<span><i class="fa-solid fa-circle"></i></span>
|
|
||||||
{{else}}
|
|
||||||
<span><i class="fa-regular fa-circle"></i></span>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="label">{{localize "DAGGERHEART.GENERAL.Advantage.full"}}</span>
|
{{/each}}
|
||||||
{{#if @root.rollConfig.data.advantageSources.length}}
|
</fieldset>
|
||||||
<span class="advantage-chip-tooltip" data-tooltip="{{concat "#advantage#" @root.rollConfig.source.actor}}"><i class="fa-solid fa-circle-info"></i></span>
|
<fieldset class="modifier-container {{#if (eq @root.rollType 'DualityRoll')}}two-columns{{else}}one-column{{/if}}">
|
||||||
{{/if}}
|
<legend>{{localize "DAGGERHEART.GENERAL.Modifier.plural"}}</legend>
|
||||||
</button>
|
|
||||||
<button class="disadvantage-chip flex1 {{#if (eq advantage -1)}}selected{{/if}}" data-action="updateIsAdvantage" data-advantage="-1">
|
|
||||||
{{#if (eq advantage -1)}}
|
|
||||||
<span><i class="fa-solid fa-circle"></i></span>
|
|
||||||
{{else}}
|
|
||||||
<span><i class="fa-regular fa-circle"></i></span>
|
|
||||||
{{/if}}
|
|
||||||
<span class="label">{{localize "DAGGERHEART.GENERAL.Disadvantage.full"}}</span>
|
|
||||||
{{#if @root.rollConfig.data.disadvantageSources.length}}
|
|
||||||
<span class="advantage-chip-tooltip" data-tooltip="{{concat "#disadvantage#" @root.rollConfig.source.actor}}"><i class="fa-solid fa-circle-info"></i></span>
|
|
||||||
{{/if}}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
{{#unless (eq @root.rollType 'D20Roll')}}
|
|
||||||
<div class="nest-inputs">
|
<div class="nest-inputs">
|
||||||
<select name="roll.dice.advantageNumber"{{#unless advantage}} disabled{{/unless}}>
|
<button class="advantage-chip flex1 {{#if (eq advantage 1)}}selected{{/if}}" data-action="updateIsAdvantage" data-advantage="1">
|
||||||
{{#times 10}}
|
{{#if (eq advantage 1)}}
|
||||||
<option value="{{add this 1}}" {{#if (eq @root.roll.advantageNumber (add this 1))}} selected{{/if}}>{{add this 1}}</option>
|
<span><i class="fa-solid fa-circle"></i></span>
|
||||||
{{/times}}
|
{{else}}
|
||||||
</select>
|
<span><i class="fa-regular fa-circle"></i></span>
|
||||||
<select name="roll.dice.advantageFaces"{{#unless advantage}} disabled{{/unless}}>
|
{{/if}}
|
||||||
{{selectOptions diceOptions selected=@root.roll.dAdvantage.denomination}}
|
<span class="label">{{localize "DAGGERHEART.GENERAL.Advantage.full"}}</span>
|
||||||
</select>
|
{{#if @root.rollConfig.data.advantageSources.length}}
|
||||||
|
<span class="advantage-chip-tooltip" data-tooltip="{{concat "#advantage#" @root.rollConfig.source.actor}}"><i class="fa-solid fa-circle-info"></i></span>
|
||||||
|
{{/if}}
|
||||||
|
</button>
|
||||||
|
<button class="disadvantage-chip flex1 {{#if (eq advantage -1)}}selected{{/if}}" data-action="updateIsAdvantage" data-advantage="-1">
|
||||||
|
{{#if (eq advantage -1)}}
|
||||||
|
<span><i class="fa-solid fa-circle"></i></span>
|
||||||
|
{{else}}
|
||||||
|
<span><i class="fa-regular fa-circle"></i></span>
|
||||||
|
{{/if}}
|
||||||
|
<span class="label">{{localize "DAGGERHEART.GENERAL.Disadvantage.full"}}</span>
|
||||||
|
{{#if @root.rollConfig.data.disadvantageSources.length}}
|
||||||
|
<span class="advantage-chip-tooltip" data-tooltip="{{concat "#disadvantage#" @root.rollConfig.source.actor}}"><i class="fa-solid fa-circle-info"></i></span>
|
||||||
|
{{/if}}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{{#if abilities}}
|
{{#unless (eq @root.rollType 'D20Roll')}}
|
||||||
<span>{{localize "DAGGERHEART.GENERAL.traitModifier"}}</span>
|
<div class="nest-inputs">
|
||||||
<select name="trait">
|
<select name="roll.dice.advantageNumber"{{#unless advantage}} disabled{{/unless}}>
|
||||||
{{selectOptions abilities selected=@root.rollConfig.roll.trait valueAttr="id" labelAttr="label" blank="" localize=true}}
|
{{#times 10}}
|
||||||
|
<option value="{{add this 1}}" {{#if (eq @root.roll.advantageNumber (add this 1))}} selected{{/if}}>{{add this 1}}</option>
|
||||||
|
{{/times}}
|
||||||
|
</select>
|
||||||
|
<select name="roll.dice.advantageFaces"{{#unless advantage}} disabled{{/unless}}>
|
||||||
|
{{selectOptions diceOptions selected=@root.roll.dAdvantage.denomination}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
{{#if abilities}}
|
||||||
|
<span>{{localize "DAGGERHEART.GENERAL.traitModifier"}}</span>
|
||||||
|
<select name="trait">
|
||||||
|
{{selectOptions abilities selected=@root.rollConfig.roll.trait valueAttr="id" labelAttr="label" blank="" localize=true}}
|
||||||
|
</select>
|
||||||
|
{{/if}}
|
||||||
|
{{/unless}}
|
||||||
|
{{#if @root.rallyDie.length}}
|
||||||
|
<span class="formula-label">{{localize "DAGGERHEART.CLASS.Feature.rallyDice"}}</span>
|
||||||
|
<select name="roll.dice._rallyIndex">
|
||||||
|
{{selectOptions @root.rallyDie blank="" selected=@root.roll._rallyIndex}}
|
||||||
</select>
|
</select>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/unless}}
|
{{#if (eq @root.rollType 'DualityRoll')}}<span class="formula-label">{{localize "DAGGERHEART.GENERAL.situationalBonus"}}</span>{{/if}}
|
||||||
{{#if @root.rallyDie.length}}
|
<input type="text" value="{{extraFormula}}" name="extraFormula" placeholder="{{#if (eq @root.rollType 'DualityRoll')}}Ex: 1d6 + 5{{else}}Situational Bonus{{/if}}">
|
||||||
<span class="formula-label">{{localize "DAGGERHEART.CLASS.Feature.rallyDice"}}</span>
|
</fieldset>
|
||||||
<select name="roll.dice._rallyIndex">
|
{{/if}}
|
||||||
{{selectOptions @root.rallyDie blank="" selected=@root.roll._rallyIndex}}
|
|
||||||
</select>
|
|
||||||
{{/if}}
|
|
||||||
{{#if (eq @root.rollType 'DualityRoll')}}<span class="formula-label">{{localize "DAGGERHEART.GENERAL.situationalBonus"}}</span>{{/if}}
|
|
||||||
<input type="text" value="{{extraFormula}}" name="extraFormula" placeholder="{{#if (eq @root.rollType 'DualityRoll')}}Ex: 1d6 + 5{{else}}Situational Bonus{{/if}}">
|
|
||||||
</fieldset>
|
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{#if (or costs uses)}}
|
{{#if (or costs uses)}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue