From 32fbce44e5ae9e2aed5ee4f1d1e1e1e33c854d2e Mon Sep 17 00:00:00 2001 From: mmpAppsCorp Date: Mon, 14 Jul 2025 08:16:04 -0700 Subject: [PATCH] D6++ Wild West - added automatic times dodged tracking --- D6pp_Wild_West/d6ppww.html | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/D6pp_Wild_West/d6ppww.html b/D6pp_Wild_West/d6ppww.html index 52d7e9cd57..f2c895846b 100644 --- a/D6pp_Wild_West/d6ppww.html +++ b/D6pp_Wild_West/d6ppww.html @@ -186,7 +186,6 @@ - @@ -2261,8 +2260,8 @@
- - + +
@@ -2270,7 +2269,6 @@
-
@@ -2303,7 +2301,7 @@
Target Number
Challenge Rating
-
Times Attacked
+
# Dodges
Modifier
Wound Penalty
Mounted Penalty
@@ -2436,7 +2434,7 @@
Range
Cover
Opponent's Dodge
-
Times Attacked
+
# Dodges
Modifier
Wound Penalty
Mounted Penalty
@@ -4444,14 +4442,13 @@
- +
-
@@ -4472,7 +4469,7 @@
Target Number
Challenge Rating
-
Times Attacked
+
# Dodges
Modifier
Wound Penalty
Mounted Penalty
@@ -4603,7 +4600,7 @@
Range
Cover
Opponent's Dodge
-
Times Attacked
+
# Dodges
Modifier
Wound Penalty
Mounted Penalty
@@ -7140,6 +7137,7 @@ "status", "condition_knockout", "initiative_rollcode", + "times_attacked" ]; getAttrs(attrs, values => { @@ -7155,6 +7153,11 @@ return; } + if (displayName === "Dodge") { + const current = parseInt(values.times_attacked, 10) || 0; + setAttrs({ times_attacked: current + 1 }); + } + const name = values.character_name || "Character"; const whisper = values.whisper_toggle || ""; const rollcode = getRollcode(skill, values);