Added Rate of fire to actual target number calculation for ranged attacks

This commit is contained in:
Monty Coyle
2021-01-04 12:19:34 +00:00
parent bca566309d
commit a40d63c5d8
+1 -1
View File
@@ -2516,7 +2516,7 @@
<div class="sheet-item" style="width: 6%;"><input name="attr_Rangedweaponclip_max" type="text" value="0" /></div>
<div class="sheet-item" style="width: 15%;"><label>Reload:</label></div>
<div class="sheet-item" style="width: 15%;"><input name="attr_Rangedweaponreload" type="text" /></div>
<div class="sheet-item" style="width: 16%;"><button name="roll_Rangedhit" type="roll" value="&{template:dh2ed}[[[[floor((@{BallisticSkill}?{Aim | No aim (+0),+0 | Half aim (+10),+10| Full aim (+20),+20}+ ?{Range | Point Blank (+30),+30 | Short Range (+10),+10 | Standard range (+0),+0 | Long Range (-10),-10 | Extreme Range (-30),-30}+ ?{Rate of Fire/Attack Type| Standard (+10),+10 | Semi auto (+0),+0 | Full Auto (-10),-10 | Called Shot (-20),-20 | Suppressing Fire (-20),-20}+ [[?{Modifier|0}]])/10))]]-[[floor([[1d100cs<1cf>100]]/10)]]]]{{name=@{Rangedweaponname}}}{{roll= $[[2]] }}{{degrees=$[[4]]}}{{skill=@{BallisticSkill}}}{{aim=?{Aim | No aim (+0),+0 | Half aim (+10),+10 | Full aim (+20),+20} }}{{range= ?{Range | Standard range (+0),Standard range +0 | Short Range (+10),+10 | Point Blank (+30),+30 | Long Range (-10),-10 | Extreme Range (-30),-30}}}{{attacktype=?{Rate of Fire/Attack Type| Semi auto (+0),+0 | Standard (+10),+10 | Full Auto (-10),-10 | Called Shot (-20),-20 | Suppressing Fire (-20),-20}}}{{modifier=?{Modifier|+0} }}{{target=[[@{BallisticSkill}+ [[?{Aim | No aim (+0),0 | Half aim (+10),10 | Full aim (+20),20} + ?{Range | Standard range (+0),Standard range +0 | Short Range (+10),+10 | Point Blank (+30),+30 | Long Range (-10),-10 | Extreme Range (-30),-30} + [[?{Modifier|0}]]]]]]}}"> <label>Hit</label> </button></div>
<div class="sheet-item" style="width: 16%;"><button name="roll_Rangedhit" type="roll" value="&{template:dh2ed}[[[[floor((@{BallisticSkill}?{Aim | No aim (+0),+0 | Half aim (+10),+10| Full aim (+20),+20}+ ?{Range | Point Blank (+30),+30 | Short Range (+10),+10 | Standard range (+0),+0 | Long Range (-10),-10 | Extreme Range (-30),-30}+ ?{Rate of Fire/Attack Type| Standard (+10),+10 | Semi auto (+0),+0 | Full Auto (-10),-10 | Called Shot (-20),-20 | Suppressing Fire (-20),-20}+ [[?{Modifier|0}]])/10))]]-[[floor([[1d100cs<1cf>100]]/10)]]]]{{name=@{Rangedweaponname}}}{{roll= $[[2]] }}{{degrees=$[[4]]}}{{skill=@{BallisticSkill}}}{{aim=?{Aim | No aim (+0),+0 | Half aim (+10),+10 | Full aim (+20),+20} }}{{range= ?{Range | Standard range (+0),Standard range +0 | Short Range (+10),+10 | Point Blank (+30),+30 | Long Range (-10),-10 | Extreme Range (-30),-30}}}{{attacktype=?{Rate of Fire/Attack Type| Semi auto (+0),+0 | Standard (+10),+10 | Full Auto (-10),-10 | Called Shot (-20),-20 | Suppressing Fire (-20),-20}}}{{modifier=?{Modifier|+0} }}{{target=[[@{BallisticSkill}+ [[?{Aim | No aim (+0),0 | Half aim (+10),10 | Full aim (+20),20} + ?{Range | Standard range (+0),Standard range +0 | Short Range (+10),+10 | Point Blank (+30),+30 | Long Range (-10),-10 | Extreme Range (-30),-30} + ?{Rate of Fire/Attack Type| Standard (+10),+10 | Semi auto (+0),+0 | Full Auto (-10),-10 | Called Shot (-20),-20 | Suppressing Fire (-20),-20} + [[?{Modifier|0}]]]]]]}}"> <label>Hit</label> </button></div>
</div>
<div class="sheet-row">
<div class="sheet-item" style="width: 15%;"><label>Special:</label></div>