- total attack syntax fix

- total attack in repeating weapons had an unclosed "[[" around
@{proficiency} and masterwork and enhancement calc had an extra ")".
This become problematic with the upcoming repeating sections update
where a dragged repeating button would not function due to a syntax
error.
This commit is contained in:
vince-roll20
2015-11-18 22:14:00 -08:00
parent e5934094a0
commit 70cae44a11
+3 -3
View File
@@ -2244,7 +2244,7 @@
<span class="sheet-table-data sheet-center">+</span>
<span class="sheet-table-data sheet-center sheet-small-label"><input type="number" name="attr_attk-effect-total-other" title="@{repeating_weapon_X_attk-effect-total-other}" value="@{attk-effect-total}" style="width:3.5em;" disabled /><br><b title="Additional modifier from Attack and Damage Effects.">Other</b></span>
<span class="sheet-table-data sheet-center">=</span>
<span class="sheet-table-data sheet-center sheet-small-label"><input type="number" name="attr_total-attack" title="@{repeating_weapon_X_total-attack}" value="( [[ @{proficiency} + (((@{enhance} + [[ @{masterwork} ]]) + abs(@{enhance} - [[ @{masterwork} ]])) / 2) + [[ @{attack} ]] + [[ @{attk-effect-total-other} ]] + [[ @{attack-type} ]] + [[ @{armor-proficiency} ]] )" style="width:3.5em;" disabled /><br>ATK</span>
<span class="sheet-table-data sheet-center sheet-small-label"><input type="number" name="attr_total-attack" title="@{repeating_weapon_X_total-attack}" value="(@{proficiency} + (((@{enhance} + @{masterwork}) + abs(@{enhance} - @{masterwork})) / 2) + @{attack} + @{attack-type} + @{armor-proficiency})" style="width:3.5em;" disabled /><br>ATK</span>
<span class="sheet-table-data sheet-center sheet-small-label"><input type="number" name="attr_crit-target" title="@{repeating_weapon_X_crit-target}" min="0" max="20" /><br>Crit</span>
<span class="sheet-table-data sheet-center" style="vertical-align:middle;font-size:150%;width:2%;padding-bottom: 10px;"><b>/x</b></span>
<span class="sheet-table-data sheet-center sheet-small-label"><input type="number" name="attr_crit-multiplier" title="@{repeating_weapon_X_crit-multiplier}" min="0" /><br>Mult</span>
@@ -9631,7 +9631,7 @@
<span class="sheet-table-data sheet-center">+</span>
<span class="sheet-table-data sheet-center sheet-small-label"><input type="number" name="attr_attk-effect-total-other" title="@{repeating_weapon_X_attk-effect-total-other}" value="@{attk-effect-total}" disabled /><br><b title="Additional modifier from Attack and Damage Effects.">Other</b></span>
<span class="sheet-table-data sheet-center">=</span>
<span class="sheet-table-data sheet-center sheet-small-label"><input type="number" name="attr_total-attack" title="@{repeating_weapon_X_total-attack}" value="( [[ @{proficiency} + (((@{enhance} + [[ @{masterwork} ]]) + abs(@{enhance} - [[ @{masterwork} ]])) / 2) + [[ @{attack} ]] + [[ @{attk-effect-total-other} ]] + [[ @{attack-type} ]] + [[ @{armor-proficiency} ]] )" disabled /><br>ATK</span>
<span class="sheet-table-data sheet-center sheet-small-label"><input type="number" name="attr_total-attack" title="@{repeating_weapon_X_total-attack}" value="(@{proficiency} + (((@{enhance} + @{masterwork}) + abs(@{enhance} - @{masterwork})) / 2) + @{attack} + @{attack-type} + @{armor-proficiency})" disabled /><br>ATK</span>
<span class="sheet-table-data sheet-center sheet-small-label"><input type="number" name="attr_crit-target" title="@{repeating_weapon_X_crit-target}" min="0" max="20" /><br>Crit</span>
<span class="sheet-table-data sheet-center" style="vertical-align:middle;font-size:150%;width:2%;padding-bottom: 10px;"><b>/x</b></span>
<span class="sheet-table-data sheet-center sheet-small-label"><input type="number" name="attr_crit-multiplier" title="@{repeating_weapon_X_crit-multiplier}" min="0" /><br>Mult</span>
@@ -10720,7 +10720,7 @@
<div class="sheet-footer">
<div class="sheet-table">
<div class="sheet-table-row">
<span class="sheet-table-data sheet-center">Created by Samuel Marino w/contributions by Vince, Samuel Terrazas, Nibrodooh, Chris B. | Last updated: <i>11.13.16</i></span>
<span class="sheet-table-data sheet-center">Created by Samuel Marino w/contributions by Vince, Samuel Terrazas, Nibrodooh, Chris B. | Last updated: <i>11.18.16</i></span>
</div>
<div class="sheet-table-row">
<span class="sheet-table-data sheet-center">Have questions or feedback? This thread can help:<input type="text" style="width:50%; border:0px;" value="https://app.roll20.net/forum/post/1915585/pathfinder-sheet-thread-4-life-after-sam" /></span>