Skip to content

Commit

Permalink
Fixed the Mastery Point blank to only work when mastery level is sele…
Browse files Browse the repository at this point in the history
…cted
  • Loading branch information
DBFBlackbull committed Jan 22, 2024
1 parent f97979f commit 35e937f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ADnD_2E_Revised/2ESheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -2313,8 +2313,8 @@ <h4>Weapon Notes</h4>
<td><label><input type="radio" name="attr_range-mod-attack" title="@{repeating_weapons2_$X_range-mod-attack}" value="-10"/><span></span></label></td>
<td><input type="text" name="attr_attacknum2" title="@{repeating_weapons2_$X_attacknum2}" class="sheet-cent" value="1"></td>
<td><input type="text" name="attr_attackadj2" title="@{repeating_weapons2_$X_attackadj2}" class="sheet-table-dynamic" value="0"></td>
<td><input type="text" name="attr_ThAC02" title="@{repeating_weapons2_$X_ThAC02}" class="sheet-small" value="20"></td>
<td><button type="roll" name="roll_hit12" title="%{repeating_weapons2_$X_hit12}" value="/em hits an AC of [[ [[@{ThAC02}]]-(1d20cs>@{crit-thresh2}+([[(@{strengthhit})*@{strbonus2}]] [Strength])+([[(@{dexmissile})*@{dexbonus2}]] [Dexterity])+(@{prof-level2} [Proficiency])+(@{range-mod-attack} [Range mod])+(@{attackadj2} [Atk Adj])+(@{temp-attackadj} [Temp buff])+(@{misc-mod}))]] using their @{weaponname2}">Hit</button></td>
<td><input type="text" name="attr_ThAC02" title="@{repeating_weapons2_$X_ThAC02}" class="sheet-small" value="20"></td> <!-- Ensures that the Mastery Point Blank +1 is only added if the Mastery proficiency level is selected -->
<td><button type="roll" name="roll_hit12" title="%{repeating_weapons2_$X_hit12}" value="/em hits an AC of [[ [[@{ThAC02}]]-(1d20cs>@{crit-thresh2}+([[(@{strengthhit})*@{strbonus2}]] [Strength])+([[(@{dexmissile})*@{dexbonus2}]] [Dexterity])+(@{prof-level2} [Proficiency])+([[ {@{range-mod-attack},[[{@{prof-level2},0}>2 * {@{range-mod-attack},0}>1]]}kl1 ]] [Range mod])+(@{attackadj2} [Atk Adj])+(@{temp-attackadj} [Temp buff])+(@{misc-mod}))]] using their @{weaponname2}">Hit</button></td>
<td><input type="text" name="attr_crit-thresh2" title="@{repeating_weapons2_$X_crit-thresh2}" class="sheet-small" value="20"></td>
<td><input type="text" name="attr_range2" title="@{repeating_weapons2_$X_range2}" class="sheet-mintext"></td>
<td><input type="text" name="attr_size2" title="@{repeating_weapons2_$X_size2}" class="sheet-table-dynamic"></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ <h4>Weapon Notes</h4>
<td><label><input type="radio" name="attr_range-mod-attack" title="@{repeating_weapons2_$X_range-mod-attack}" value="-10"/><span></span></label></td>
<td><input type="text" name="attr_attacknum2" title="@{repeating_weapons2_$X_attacknum2}" class="sheet-cent" value="1"></td>
<td><input type="text" name="attr_attackadj2" title="@{repeating_weapons2_$X_attackadj2}" class="sheet-table-dynamic" value="0"></td>
<td><input type="text" name="attr_ThAC02" title="@{repeating_weapons2_$X_ThAC02}" class="sheet-small" value="20"></td>
<td><button type="roll" name="roll_hit12" title="%{repeating_weapons2_$X_hit12}" value="/em hits an AC of [[ [[@{ThAC02}]]-(1d20cs>@{crit-thresh2}+([[(@{strengthhit})*@{strbonus2}]] [Strength])+([[(@{dexmissile})*@{dexbonus2}]] [Dexterity])+(@{prof-level2} [Proficiency])+(@{range-mod-attack} [Range mod])+(@{attackadj2} [Atk Adj])+(@{temp-attackadj} [Temp buff])+(@{misc-mod}))]] using their @{weaponname2}">Hit</button></td>
<td><input type="text" name="attr_ThAC02" title="@{repeating_weapons2_$X_ThAC02}" class="sheet-small" value="20"></td> <!-- Ensures that the Mastery Point Blank +1 is only added if the Mastery proficiency level is selected -->
<td><button type="roll" name="roll_hit12" title="%{repeating_weapons2_$X_hit12}" value="/em hits an AC of [[ [[@{ThAC02}]]-(1d20cs>@{crit-thresh2}+([[(@{strengthhit})*@{strbonus2}]] [Strength])+([[(@{dexmissile})*@{dexbonus2}]] [Dexterity])+(@{prof-level2} [Proficiency])+([[ {@{range-mod-attack},[[{@{prof-level2},0}>2 * {@{range-mod-attack},0}>1]]}kl1 ]] [Range mod])+(@{attackadj2} [Atk Adj])+(@{temp-attackadj} [Temp buff])+(@{misc-mod}))]] using their @{weaponname2}">Hit</button></td>
<td><input type="text" name="attr_crit-thresh2" title="@{repeating_weapons2_$X_crit-thresh2}" class="sheet-small" value="20"></td>
<td><input type="text" name="attr_range2" title="@{repeating_weapons2_$X_range2}" class="sheet-mintext"></td>
<td><input type="text" name="attr_size2" title="@{repeating_weapons2_$X_size2}" class="sheet-table-dynamic"></td>
Expand Down

0 comments on commit 35e937f

Please sign in to comment.