Fix unarmed skill calculations in the Combat tab for Runequest 6 sheet

This commit is contained in:
Matthew Carpenter
2016-09-12 14:50:54 -04:00
parent cea91017af
commit b6ecbc108c
+2 -2
View File
@@ -601,9 +601,9 @@
<table class="full_fixed">
<tr>
<td class="cs_style">Unarmed</td>
<td class="cs_calc">STR+DEX+<input class="value" type="text" name="attr_unarmed_cs_points" value="0" disabled="true">+<input class="value" type="text" name="attr_unarmed_cs_temp" value="0" disabled="true"></td>
<td class="cs_calc">STR+DEX+<input class="value" type="text" name="attr_unarmed_cs_points" value="@{unarmed_points}" disabled="true">+<input class="value" type="text" name="attr_unarmed_cs_temp" value="@{unarmed_temp}" disabled="true"></td>
<td class="cs_symbol">=</td>
<td class="cs_number"><input class="total" type="number" name="attr_unarmed_cs_total" value="(@{str}+@{dex}+@{unarmed_cs_points}+@{unarmed_cs_temp})" disabled="true"></td>
<td class="cs_number"><input class="total" type="number" name="attr_unarmed_cs_total" value="(@{str}+@{dex}+@{unarmed_points}+@{unarmed_temp})" disabled="true"></td>
<td class="cs_roll"><button type='roll' name="roll_unarmed_cs_check" value="&{template:runequest} {{name=Unarmed}} {{very_easy=[[@{unarmed_cs_total}*2]]}} {{very_easy_crit=[[ceil((@{unarmed_cs_total}*2)*.1)]]}} {{easy=[[ ceil(@{unarmed_cs_total}*1.5) ]]}} {{easy_crit=[[ ceil( ceil(@{unarmed_cs_total}*1.5) *.1 ) ]]}} {{standard=[[ @{unarmed_cs_total} ]]}} {{standard_crit=[[ ceil( @{unarmed_cs_total} *.1 ) ]]}} {{hard=[[ ceil(@{unarmed_cs_total}*.67) ]]}} {{hard_crit=[[ ceil( ceil(@{unarmed_cs_total}*.67) *.1 ) ]]}} {{formidable=[[ ceil(@{unarmed_cs_total}*.5) ]]}} {{formidable_crit=[[ ceil( ceil(@{unarmed_cs_total}*.5) *.1 ) ]]}} {{herculean=[[ ceil(@{unarmed_cs_total}*.1) ]]}} {{herculean_crit=[[ ceil( ceil(@{unarmed_cs_total}*.1) *.1) ]]}} {{rolled=[[ 1d100 ]]}}">
<button type='roll' name="roll_unarmed_cs_check_penalized" value="&{template:runequest} {{name=Unarmed}} {{very_easy=[[ (@{unarmed_cs_total}*2)-?{Penalty|0} ]]}} {{very_easy_crit=[[ ceil( ((@{unarmed_cs_total}*2)-?{Penalty|0}) *.1 ) ]]}} {{easy=[[ ceil(@{unarmed_cs_total}*1.5)-?{Penalty|0} ]]}} {{easy_crit=[[ ceil( (ceil(@{unarmed_cs_total}*1.5)-?{Penalty|0}) *.1 ) ]]}} {{standard=[[ @{unarmed_cs_total}-?{Penalty|0} ]]}} {{standard_crit=[[ ceil( (@{unarmed_cs_total}-?{Penalty|0}) *.1 ) ]]}} {{hard=[[ ceil(@{unarmed_cs_total}*.67)-?{Penalty|0} ]]}} {{hard_crit=[[ ceil( (ceil(@{unarmed_cs_total}*.67)-?{Penalty|0}) *.1 ) ]]}} {{formidable=[[ ceil(@{unarmed_cs_total}*.5)-?{Penalty|0} ]]}} {{formidable_crit=[[ ceil( (ceil(@{unarmed_cs_total}*.5)-?{Penalty|0}) *.1 ) ]]}} {{herculean=[[ ceil(@{unarmed_cs_total}*.1)-?{Penalty|0} ]]}} {{herculean_crit=[[ ceil( (ceil(@{unarmed_cs_total}*.1)-?{Penalty|0}) *.1) ]]}} {{rolled=[[ 1d100 ]]}}">-?</td>
<td class="cs_weapons"><input class="full" type="text" name="attr_unarmed_cs_weapons"></td>