Add option to apply hand to hand critical range to modern weapons
This commit is contained in:
+23
-18
@@ -4743,7 +4743,7 @@
|
||||
<span name="attr_strike_range_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[d20+@{strike_range_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_single} ]]}}"
|
||||
name="roll_bonus_strike_range_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4754,7 +4754,7 @@
|
||||
<span name="attr_strike_range_burst"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a burst shot!}} {{Range Strike=[[d20+@{strike_range_burst}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_burst} ]]}}"
|
||||
name="roll_bonus_strike_range_burst"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4771,7 +4771,7 @@
|
||||
<span name="attr_strike_range_aimed_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed single shot!}} {{Range Aimed Single Strike=[[d20+@{strike_range_aimed_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed single shot!}} {{Range Aimed Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_single} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4782,7 +4782,7 @@
|
||||
<span name="attr_strike_range_aimed_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed pulse shot!}} {{Range Aimed Pulse Strike=[[d20+@{strike_range_aimed_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed pulse shot!}} {{Range Aimed Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4799,7 +4799,7 @@
|
||||
<span name="attr_strike_range_called_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called single shot!}} {{Range Called Single Strike=[[d20+@{strike_range_called_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called single shot!}} {{Range Called Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_called_single} ]]}}"
|
||||
name="roll_bonus_strike_range_called_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4810,7 +4810,7 @@
|
||||
<span name="attr_strike_range_called_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called pulse shot!}} {{Range Called Pulse Strike=[[d20+@{strike_range_called_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called pulse shot!}} {{Range Called Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_called_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_called_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4825,7 +4825,7 @@
|
||||
<span name="attr_strike_range_aimed_called_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called single shot!}} {{Range Aimed Called Single Strike=[[d20+@{strike_range_aimed_called_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called single shot!}} {{Range Aimed Called Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_called_single} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_called_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4840,7 +4840,7 @@
|
||||
<span name="attr_strike_range_aimed_called_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called pulse shot!}} {{Range Aimed Called Pulse Strike=[[d20+@{strike_range_aimed_called_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called pulse shot!}} {{Range Aimed Called Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_called_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_called_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5797,7 +5797,7 @@
|
||||
<span name="attr_strike_range_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[d20+@{strike_range_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_single} ]]}}"
|
||||
name="roll_bonus_strike_range_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5808,7 +5808,7 @@
|
||||
<span name="attr_strike_range_burst"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a burst shot!}} {{Range Strike=[[d20+@{strike_range_burst}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_burst} ]]}}"
|
||||
name="roll_bonus_strike_range_burst"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5825,7 +5825,7 @@
|
||||
<span name="attr_strike_range_aimed_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed single shot!}} {{Range Aimed Single Strike=[[d20+@{strike_range_aimed_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed single shot!}} {{Range Aimed Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_single} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5836,7 +5836,7 @@
|
||||
<span name="attr_strike_range_aimed_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed pulse shot!}} {{Range Aimed Pulse Strike=[[d20+@{strike_range_aimed_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed pulse shot!}} {{Range Aimed Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5853,7 +5853,7 @@
|
||||
<span name="attr_strike_range_called_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called single shot!}} {{Range Called Single Strike=[[d20+@{strike_range_called_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called single shot!}} {{Range Called Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_called_single} ]]}}"
|
||||
name="roll_bonus_strike_range_called_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5864,7 +5864,7 @@
|
||||
<span name="attr_strike_range_called_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called pulse shot!}} {{Range Called Pulse Strike=[[d20+@{strike_range_called_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called pulse shot!}} {{Range Called Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_called_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_called_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5879,7 +5879,7 @@
|
||||
<span name="attr_strike_range_aimed_called_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called single shot!}} {{Range Aimed Called Single Strike=[[d20+@{strike_range_aimed_called_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called single shot!}} {{Range Aimed Called Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_called_single} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_called_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5894,7 +5894,7 @@
|
||||
<span name="attr_strike_range_aimed_called_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called pulse shot!}} {{Range Aimed Called Pulse Strike=[[d20+@{strike_range_aimed_called_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called pulse shot!}} {{Range Aimed Called Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_called_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_called_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -6308,6 +6308,10 @@
|
||||
><input type="checkbox" name="attr_opt_paired_damage" value="1" /> Apply
|
||||
PS damage to <b>each hand</b> in Paired attack</label
|
||||
>
|
||||
<label
|
||||
><input type="checkbox" name="attr_opt_critical" value="1" /> Apply Hand
|
||||
to Hand critical (19-20, 18-20) to modern weapons as well</label
|
||||
>
|
||||
<hr />
|
||||
<h3>Import/Export</h3>
|
||||
<details>
|
||||
@@ -9417,8 +9421,9 @@ on("sheet:opened", async (e) => {
|
||||
/* endinject */
|
||||
|
||||
/**
|
||||
* [] Fix iq_bonus() function to use default profile, not top.
|
||||
* - [] skill bonuses aren't calculating properly.
|
||||
* [x] Fix iq_bonus() function to use default profile, not top.
|
||||
* - [x] skill bonuses aren't calculating properly.
|
||||
* - [] TEST THOROUGHLY!
|
||||
* [] Refactor to get rid of the Bonuses repeating section and instead go straight from Modifiers to Picked Modifiers. I think the Bonuses section causes weird issues related to network/multiple updates at the same time.
|
||||
* [] Fix CSS on "Psionics vs. [n]"
|
||||
* [] Add range to modifiers (guns)
|
||||
|
||||
@@ -4743,7 +4743,7 @@
|
||||
<span name="attr_strike_range_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[d20+@{strike_range_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_single} ]]}}"
|
||||
name="roll_bonus_strike_range_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4754,7 +4754,7 @@
|
||||
<span name="attr_strike_range_burst"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a burst shot!}} {{Range Strike=[[d20+@{strike_range_burst}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_burst} ]]}}"
|
||||
name="roll_bonus_strike_range_burst"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4771,7 +4771,7 @@
|
||||
<span name="attr_strike_range_aimed_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed single shot!}} {{Range Aimed Single Strike=[[d20+@{strike_range_aimed_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed single shot!}} {{Range Aimed Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_single} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4782,7 +4782,7 @@
|
||||
<span name="attr_strike_range_aimed_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed pulse shot!}} {{Range Aimed Pulse Strike=[[d20+@{strike_range_aimed_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed pulse shot!}} {{Range Aimed Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4799,7 +4799,7 @@
|
||||
<span name="attr_strike_range_called_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called single shot!}} {{Range Called Single Strike=[[d20+@{strike_range_called_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called single shot!}} {{Range Called Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_called_single} ]]}}"
|
||||
name="roll_bonus_strike_range_called_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4810,7 +4810,7 @@
|
||||
<span name="attr_strike_range_called_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called pulse shot!}} {{Range Called Pulse Strike=[[d20+@{strike_range_called_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called pulse shot!}} {{Range Called Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_called_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_called_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4825,7 +4825,7 @@
|
||||
<span name="attr_strike_range_aimed_called_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called single shot!}} {{Range Aimed Called Single Strike=[[d20+@{strike_range_aimed_called_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called single shot!}} {{Range Aimed Called Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_called_single} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_called_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -4840,7 +4840,7 @@
|
||||
<span name="attr_strike_range_aimed_called_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called pulse shot!}} {{Range Aimed Called Pulse Strike=[[d20+@{strike_range_aimed_called_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called pulse shot!}} {{Range Aimed Called Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_called_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_called_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5797,7 +5797,7 @@
|
||||
<span name="attr_strike_range_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[d20+@{strike_range_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_single} ]]}}"
|
||||
name="roll_bonus_strike_range_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5808,7 +5808,7 @@
|
||||
<span name="attr_strike_range_burst"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a burst shot!}} {{Range Strike=[[d20+@{strike_range_burst}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_burst} ]]}}"
|
||||
name="roll_bonus_strike_range_burst"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5825,7 +5825,7 @@
|
||||
<span name="attr_strike_range_aimed_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed single shot!}} {{Range Aimed Single Strike=[[d20+@{strike_range_aimed_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed single shot!}} {{Range Aimed Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_single} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5836,7 +5836,7 @@
|
||||
<span name="attr_strike_range_aimed_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed pulse shot!}} {{Range Aimed Pulse Strike=[[d20+@{strike_range_aimed_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed pulse shot!}} {{Range Aimed Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5853,7 +5853,7 @@
|
||||
<span name="attr_strike_range_called_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called single shot!}} {{Range Called Single Strike=[[d20+@{strike_range_called_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called single shot!}} {{Range Called Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_called_single} ]]}}"
|
||||
name="roll_bonus_strike_range_called_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5864,7 +5864,7 @@
|
||||
<span name="attr_strike_range_called_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called pulse shot!}} {{Range Called Pulse Strike=[[d20+@{strike_range_called_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called pulse shot!}} {{Range Called Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_called_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_called_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5879,7 +5879,7 @@
|
||||
<span name="attr_strike_range_aimed_called_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called single shot!}} {{Range Aimed Called Single Strike=[[d20+@{strike_range_aimed_called_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called single shot!}} {{Range Aimed Called Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_called_single} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_called_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -5894,7 +5894,7 @@
|
||||
<span name="attr_strike_range_aimed_called_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called pulse shot!}} {{Range Aimed Called Pulse Strike=[[d20+@{strike_range_aimed_called_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called pulse shot!}} {{Range Aimed Called Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_called_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_called_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -6308,6 +6308,10 @@
|
||||
><input type="checkbox" name="attr_opt_paired_damage" value="1" /> Apply
|
||||
PS damage to <b>each hand</b> in Paired attack</label
|
||||
>
|
||||
<label
|
||||
><input type="checkbox" name="attr_opt_critical" value="1" /> Apply Hand
|
||||
to Hand critical (19-20, 18-20) to modern weapons as well</label
|
||||
>
|
||||
<hr />
|
||||
<h3>Import/Export</h3>
|
||||
<details>
|
||||
@@ -9417,8 +9421,9 @@ on("sheet:opened", async (e) => {
|
||||
/* endinject */
|
||||
|
||||
/**
|
||||
* [] Fix iq_bonus() function to use default profile, not top.
|
||||
* - [] skill bonuses aren't calculating properly.
|
||||
* [x] Fix iq_bonus() function to use default profile, not top.
|
||||
* - [x] skill bonuses aren't calculating properly.
|
||||
* - [] TEST THOROUGHLY!
|
||||
* [] Refactor to get rid of the Bonuses repeating section and instead go straight from Modifiers to Picked Modifiers. I think the Bonuses section causes weird issues related to network/multiple updates at the same time.
|
||||
* [] Fix CSS on "Psionics vs. [n]"
|
||||
* [] Add range to modifiers (guns)
|
||||
|
||||
@@ -36,6 +36,14 @@
|
||||
"description": "If attacking using paired weapons, checking this will apply any PS bonus/Punch damage as applicable to <b>each weapon</b> in a Paired Weapons attack. Otherwise the PS damage is applied once to the total of both hands. If unchecked, this will also divide the PS damage by 2 when using Paired Weapons but only striking with one weapon.",
|
||||
"type": "checkbox",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"attribute": "opt_critical",
|
||||
"displayname": "Apply Hand to Hand critical (19-20, 18-20) to modern weapons as well",
|
||||
"description": "If a character has a critical on 19-20 or 18-20 from their Hand to Hand skill, apply this to modern weapons as well.",
|
||||
"type": "checkbox",
|
||||
"value": "1",
|
||||
"checked": "checked"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
><input type="checkbox" name="attr_opt_paired_damage" value="1" /> Apply
|
||||
PS damage to <b>each hand</b> in Paired attack</label
|
||||
>
|
||||
<label
|
||||
><input type="checkbox" name="attr_opt_critical" value="1" /> Apply Hand
|
||||
to Hand critical (19-20, 18-20) to modern weapons as well</label
|
||||
>
|
||||
<hr />
|
||||
<h3>Import/Export</h3>
|
||||
<details>
|
||||
|
||||
@@ -517,7 +517,7 @@
|
||||
<span name="attr_strike_range_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[d20+@{strike_range_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_single} ]]}}"
|
||||
name="roll_bonus_strike_range_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -528,7 +528,7 @@
|
||||
<span name="attr_strike_range_burst"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a burst shot!}} {{Range Strike=[[d20+@{strike_range_burst}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a single shot!}} {{Range Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_burst} ]]}}"
|
||||
name="roll_bonus_strike_range_burst"
|
||||
></button>
|
||||
</label>
|
||||
@@ -545,7 +545,7 @@
|
||||
<span name="attr_strike_range_aimed_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed single shot!}} {{Range Aimed Single Strike=[[d20+@{strike_range_aimed_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed single shot!}} {{Range Aimed Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_single} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -556,7 +556,7 @@
|
||||
<span name="attr_strike_range_aimed_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed pulse shot!}} {{Range Aimed Pulse Strike=[[d20+@{strike_range_aimed_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed pulse shot!}} {{Range Aimed Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -573,7 +573,7 @@
|
||||
<span name="attr_strike_range_called_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called single shot!}} {{Range Called Single Strike=[[d20+@{strike_range_called_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called single shot!}} {{Range Called Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_called_single} ]]}}"
|
||||
name="roll_bonus_strike_range_called_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -584,7 +584,7 @@
|
||||
<span name="attr_strike_range_called_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called pulse shot!}} {{Range Called Pulse Strike=[[d20+@{strike_range_called_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with a called pulse shot!}} {{Range Called Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_called_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_called_pulse"
|
||||
></button>
|
||||
</label>
|
||||
@@ -599,7 +599,7 @@
|
||||
<span name="attr_strike_range_aimed_called_single"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called single shot!}} {{Range Aimed Called Single Strike=[[d20+@{strike_range_aimed_called_single}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called single shot!}} {{Range Aimed Called Single Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_called_single} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_called_single"
|
||||
></button>
|
||||
</label>
|
||||
@@ -614,7 +614,7 @@
|
||||
<span name="attr_strike_range_aimed_called_pulse"></span>
|
||||
<button
|
||||
type="roll"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called pulse shot!}} {{Range Aimed Called Pulse Strike=[[d20+@{strike_range_aimed_called_pulse}]]}}"
|
||||
value="&{template:custom} {{title=@{character_name} shoots with an aimed called pulse shot!}} {{Range Aimed Called Pulse Strike=[[ d20cs>[[ {{ @{opt_critical},0 }dl1 } * (@{critical}-20) + 20]] + @{strike_range_aimed_called_pulse} ]]}}"
|
||||
name="roll_bonus_strike_range_aimed_called_pulse"
|
||||
></button>
|
||||
</label>
|
||||
|
||||
@@ -762,8 +762,9 @@
|
||||
/* endinject */
|
||||
|
||||
/**
|
||||
* [] Fix iq_bonus() function to use default profile, not top.
|
||||
* - [] skill bonuses aren't calculating properly.
|
||||
* [x] Fix iq_bonus() function to use default profile, not top.
|
||||
* - [x] skill bonuses aren't calculating properly.
|
||||
* - [] TEST THOROUGHLY!
|
||||
* [] Refactor to get rid of the Bonuses repeating section and instead go straight from Modifiers to Picked Modifiers. I think the Bonuses section causes weird issues related to network/multiple updates at the same time.
|
||||
* [] Fix CSS on "Psionics vs. [n]"
|
||||
* [] Add range to modifiers (guns)
|
||||
|
||||
Reference in New Issue
Block a user