From fec4aa5483d8809361d8d44de3d4e6f064c35f06 Mon Sep 17 00:00:00 2001 From: John Sherwood Date: Fri, 5 Aug 2022 23:48:09 -0400 Subject: [PATCH 1/3] Update HeroSystem6e,html to improve generic attack button - Made generic attack button on OCV provide hit location and body count as powers do - Added a button to do the same thing at the end of the OCV line of the combat preview table --- HeroSystem6e/HeroSystem6e.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/HeroSystem6e/HeroSystem6e.html b/HeroSystem6e/HeroSystem6e.html index 341baec02e..e04d952213 100644 --- a/HeroSystem6e/HeroSystem6e.html +++ b/HeroSystem6e/HeroSystem6e.html @@ -125,7 +125,8 @@ Attack Roll - + +
DCV
@@ -550,7 +551,8 @@ Attack Roll
- + +
DCV
@@ -940,6 +942,8 @@ + +
DCV
@@ -6178,4 +6182,4 @@ on("sheet:opened",function(){ -
\ No newline at end of file + From 7b9ffcafe10e5f6843462f041cbf2b4e1d53e480 Mon Sep 17 00:00:00 2001 From: John Sherwood Date: Sun, 7 Aug 2022 21:19:56 -0400 Subject: [PATCH 2/3] Update HeroSystem6e.html to use selected hit location roll Make the default attack roll use the hit location roll selected on the combat page. --- HeroSystem6e/HeroSystem6e.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/HeroSystem6e/HeroSystem6e.html b/HeroSystem6e/HeroSystem6e.html index e04d952213..9786c8cc45 100644 --- a/HeroSystem6e/HeroSystem6e.html +++ b/HeroSystem6e/HeroSystem6e.html @@ -125,8 +125,7 @@ Attack Roll - - +
DCV
@@ -551,8 +550,7 @@ Attack Roll
- - +
DCV
@@ -5050,7 +5048,7 @@ var setCombatModifiers = function() { switch( v[ "radio_target" ]) { case "-1": /* none */ modifier = 0; - roll = ""; + roll = "0"; break; case "1": /* normal */ modifier = 0; @@ -5058,7 +5056,7 @@ var setCombatModifiers = function() { break; case "2": /* focus */ modifier = (-4); - roll = ""; + roll = "1"; break; case "3": /* head shot (head to shoulders) */ modifier = (-4); @@ -5118,7 +5116,7 @@ var setCombatModifiers = function() { break; default: modifier = 0; - roll = ""; + roll = "0"; } setAttrs({ ocv_modifiers: modifier, hit_location_roll: roll }); From ee8eef0ca5ec11aa05040ca9e96a59fb15755c2d Mon Sep 17 00:00:00 2001 From: John Sherwood Date: Sun, 7 Aug 2022 21:56:02 -0400 Subject: [PATCH 3/3] Make attack roll button more intuitive - Added "Roll" text to button - Added "Attack Roll" tooltip to button --- HeroSystem6e/HeroSystem6e.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/HeroSystem6e/HeroSystem6e.html b/HeroSystem6e/HeroSystem6e.html index 9786c8cc45..ac6366e179 100644 --- a/HeroSystem6e/HeroSystem6e.html +++ b/HeroSystem6e/HeroSystem6e.html @@ -925,6 +925,7 @@
Half
Final
Damage
+
OCV
@@ -940,8 +941,11 @@ - - +
+ Roll + + Attack Roll +
DCV
@@ -956,6 +960,8 @@ +
+