From e4208964fcf9fbdc4b77f1af7e70f1d4f96827e8 Mon Sep 17 00:00:00 2001
From: dwarfwing <65122688+dwarfwing@users.noreply.github.com>
Date: Wed, 9 Feb 2022 15:45:17 +0100
Subject: [PATCH] Fixed Armament rolls and Armor rolls
---
.../Alien-Roleplaying-Game.html | 41 ++++++++++++-------
1 file changed, 26 insertions(+), 15 deletions(-)
diff --git a/Alien Roleplaying Game/Alien-Roleplaying-Game.html b/Alien Roleplaying Game/Alien-Roleplaying-Game.html
index 88cc09d78e..d533934c30 100644
--- a/Alien Roleplaying Game/Alien-Roleplaying-Game.html
+++ b/Alien Roleplaying Game/Alien-Roleplaying-Game.html
@@ -8,6 +8,7 @@
v3.00 Richard W: Added encumbrance and list tab indicators, API dice rolls
v3.01 Richard W: Fixed roll names to make macros work
v3.02 Richard W: Fixed armament roll rangemod to calculate on load
+ v3.03 Richard W: Fixed armament 3 roll button, changed armament roll name to support API, and changed armor rolls to not use API
-->
@@ -720,10 +721,10 @@
-
-
- Armor
-
+ Armor
+
@@ -1502,7 +1503,7 @@
Attack
-
+ Attack
@@ -1563,7 +1564,7 @@
Attack
-
+ Attack
@@ -1623,8 +1624,8 @@
- Attack
-
+ Attack
+ Attack
@@ -1685,7 +1686,7 @@
Attack
-
+ Attack
@@ -1746,7 +1747,7 @@
Attack
-
+ Attack
@@ -1891,14 +1892,24 @@
-->
- v3.02 (2022-01-19)
+ v3.03 (2022-02-04)
- Fixed armament roll issue by calculating rangemod at sheet load.
+ Fixed armament 3 roll button, changed armament roll name to support API, and changed armor rolls to not use API.
+
+
+ v3.02 (2022-01-19)
+
+
+
+ Fixed armament roll issue by calculating rangemod at sheet load.
+
+
+
v3.01 (2022-01-10)
@@ -3020,7 +3031,7 @@
// CALCULATE STRESS - HEALTH - RADIATION - VALUE FROM CHECKBOXES OR ATTRIBUTE
const variableAttributes = ["stress","health","radiation"];
variableAttributes.forEach(function (variableAttribute) {
- // create an array of the checkbox names. the array(12) sets how many checkboxes there are - change to match.
+ // create an array of the checkbox names. the array(10) sets how many checkboxes there are - change to match.
const variableAttributeChecks = Array(10).fill().map((_, index) => `${variableAttribute}_${index +1}`);
on(`change:${variableAttribute} change:${variableAttributeChecks.join(' change:')}`, function (eventinfo) {
getAttrs(variableAttributeChecks.concat([variableAttribute, variableAttribute + "_max"]), function (values) {