Files
fvtt-prism-rpg/templates/roll-dialog.hbs
T
2025-12-20 17:20:01 +01:00

77 lines
2.0 KiB
Handlebars

<div class="prismrpg-roll-dialog">
<fieldSet>
<legend>{{localize (concat "PRISMRPG.Label." rollType)}}
-
{{actorName}}</legend>
{{#if hasModifier}}
<div class="dialog-save">
<strong>{{upperFirst rollName}}</strong>
:
{{dice}}
+
{{baseValue}}
</div>
{{#if (eq rollType "save")}}
<div class="dialog-save" style="font-size: 0.9em; color: #666;">
(Ability Mod:
{{#if
(gt rollTarget.abilityModifier 0)
}}+{{/if}}{{rollTarget.abilityModifier}}
+ Save Bonus:
{{#if
(gt rollTarget.saveProficiency 0)
}}+{{/if}}{{rollTarget.saveProficiency}})
</div>
{{/if}}
{{else}}
<div class="dialog-save">
<strong>{{upperFirst rollName}}</strong>
:
{{dice}}
</div>
{{/if}}
{{#if rollTarget.weapon}}
<div class="dialog-save">
{{localize "PRISMRPG.Label.weapon"}}
:
{{rollTarget.weapon.name}}
</div>
<div class="dialog-save">
{{localize "PRISMRPG.Label.skill"}}
:
{{rollTarget.name}}
</div>
{{/if}}
</fieldSet>
{{#if hasAdvantage}}
<fieldSet class="dialog-advantage">
<legend>{{localize "PRISMRPG.Roll.advantageDisadvantage"}}</legend>
<select
name="advantage"
class="advantage-choice"
data-tooltip-direction="UP"
>
{{selectOptions choiceAdvantage selected=advantage}}
</select>
</fieldSet>
{{/if}}
{{#if hasModifier}}
<fieldSet class="dialog-modifier">
<legend>{{localize "PRISMRPG.Roll.modifierBonusMalus"}}</legend>
<select name="modifier" data-tooltip-direction="UP">
{{selectOptions choiceModifier selected=modifier}}
</select>
</fieldSet>
{{/if}}
<fieldSet>
<legend>{{localize "PRISMRPG.Roll.visibility"}}</legend>
<select name="visibility">
{{selectOptions rollModes selected=visibility localize=true}}
</select>
</fieldSet>
</div>