mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-11 09:32:33 +00:00
heal query on traits and spells
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -59,4 +59,8 @@
|
||||
<div class="attack-toggle col-12 center">
|
||||
<input type="number" name="attr_heal_bonus" value="0">
|
||||
</div>
|
||||
<div class="attack-toggle col-26 center">
|
||||
<input type="hidden" name="attr_heal_query" value="?{Heal Bonus Amount|}">
|
||||
<input type="checkbox" name="attr_heal_query_toggle" value="@{heal_query}" class="toggle-query"><span class="toggle-query">{{'QUERY' | translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1634,6 +1634,9 @@ function updateHealToggle (v, finalSetAttrs, repeatingString) {
|
||||
if (exists(v.global_spell_heal_bonus)) {
|
||||
healFormula += ADD + '@{global_spell_heal_bonus}[global spell heal bonus]';
|
||||
}
|
||||
if (v[repeatingString + 'heal_query_toggle'] === '@{heal_query}') {
|
||||
healFormula += ADD + '@{heal_query_toggle}[query amount]';
|
||||
}
|
||||
|
||||
finalSetAttrs[repeatingString + 'heal_formula'] = healFormula;
|
||||
}
|
||||
@@ -1895,6 +1898,7 @@ function updateSpell (rowId) {
|
||||
collectionArray.push(repeatingString + 'heal');
|
||||
collectionArray.push(repeatingString + 'heal_ability');
|
||||
collectionArray.push(repeatingString + 'heal_bonus');
|
||||
collectionArray.push(repeatingString + 'heal_query_toggle');
|
||||
collectionArray.push(repeatingString + 'add_casting_modifier');
|
||||
collectionArray.push(repeatingString + 'higher_level_toggle');
|
||||
collectionArray.push(repeatingString + 'higher_level_dice');
|
||||
@@ -2755,6 +2759,7 @@ function updateAction (type, rowId) {
|
||||
collectionArray.push(repeatingString + 'heal');
|
||||
collectionArray.push(repeatingString + 'heal_ability');
|
||||
collectionArray.push(repeatingString + 'heal_bonus');
|
||||
collectionArray.push(repeatingString + 'heal_query_toggle');
|
||||
collectionArray.push(repeatingString + 'parsed');
|
||||
collectionArray.push(repeatingString + 'recharge');
|
||||
collectionArray.push(repeatingString + 'recharge_display');
|
||||
|
||||
Reference in New Issue
Block a user