heal query on traits and spells

This commit is contained in:
Mark
2016-03-02 17:55:13 +01:00
parent 1d36e60eb0
commit bc5f3f2ad2
3 changed files with 10 additions and 1 deletions
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');