Small bug fix in the roll template for rest.

This commit is contained in:
eGellman89
2026-06-30 17:00:26 -07:00
parent a9deb3bf1a
commit 7ec6e6db1a
+1 -10
View File
@@ -3407,15 +3407,6 @@
<div class="sheet-value">{{computed::rest_healing}}</div>
<div class="sheet-key">Current HP</div>
<div class="sheet-value">{{computed::rest_hp}} / {{computed::rest_hp_max}}</div>
<div class="sheet-key">Reset</div>
<div class="sheet-value">{{rest_summary}}</div>
<div class="sheet-key">Death Save</div>
<div class="sheet-value">
{{#rollTotal() computed::rest_death_save_removed 0}}No death save failure cleared.{{/rollTotal() computed::rest_death_save_removed 0}}
{{#rollTotal() computed::rest_death_save_removed 1}}First failure cleared.{{/rollTotal() computed::rest_death_save_removed 1}}
{{#rollTotal() computed::rest_death_save_removed 2}}Second failure cleared.{{/rollTotal() computed::rest_death_save_removed 2}}
{{#rollTotal() computed::rest_death_save_removed 3}}Death is checked; no failure cleared.{{/rollTotal() computed::rest_death_save_removed 3}}
</div>
{{/rest}}
{{#allprops() title subtitle desc color characterid fullattack fullattackconfirm rest deathsave rest_multiplier rest_summary rest_healing rest_hp rest_hp_max rest_death_save_removed attack1 attack2 attack3 attack4 attack5 attack1_label attack2_label attack3_label attack4_label attack5_label attack1_next attack2_next attack3_next attack4_next attack5_next attack1_damage_action attack2_damage_action attack3_damage_action attack4_damage_action attack5_damage_action attack1_confirm_action attack2_confirm_action attack3_confirm_action attack4_confirm_action attack5_confirm_action confirm confirm_normal_action confirm_critical_action}}
<div class="sheet-key">{{key}}</div>
@@ -4333,7 +4324,7 @@
startRoll(
`&{template:custom}{{title=Rest}}{{subtitle=@{character_name}}}` +
`{{rest=1}}{{rest_multiplier=[[${REST_MULTIPLIER_QUERY}]]}}` +
`{{rest_healing=[[0]]}}{{rest_hp=[[0]]}}{{rest_hp_max=[[0]]}}{{rest_death_save_removed=[[0]]}}` +
`{{rest_healing=[[0]]}}{{rest_hp=[[0]]}}{{rest_hp_max=[[0]]}}` +
`{{desc=Spell uses, ability uses, and resources reset to maximum. `+
`One non-terminal death save failure is cleared. One point of ability damage is reduces from every attribute.}}`,
function(roll) {