diff --git a/AD&D 2E Revised/2ESheet.html b/AD&D 2E Revised/2ESheet.html
index 67ecf17f5f..62fd33d338 100644
--- a/AD&D 2E Revised/2ESheet.html
+++ b/AD&D 2E Revised/2ESheet.html
@@ -105,7 +105,7 @@
-
Racial Notes:
+
Racial Notes:
Class Notes:
@@ -1329,11 +1329,11 @@
Player's Option
-
Nonproficient weapon penalty:
+
Nonproficient weapon penalty:
-
Related weapons / familiarity penalty:
+
Related weapons / familiarity penalty:
-
Base ThAC0 number or macro:
+
Base ThAC0 number or macro:
@@ -1589,7 +1589,7 @@
Weapon
Proficiency
Range Mod.
-
# of Attacks
+
ROF
Attack Adj.
THAC0
Crit
@@ -1623,7 +1623,7 @@
-
+
@@ -1647,7 +1647,7 @@
Weapon
Proficiency
Range Mod.
-
# of Attacks
+
ROF
Attack Adj.
THAC0
Crit
@@ -1681,7 +1681,7 @@
-
+
@@ -1947,7 +1947,7 @@
Weapon
Proficiency
Range Mod.
-
# of Attacks
+
ROF
Attack Adj.
THAC0
Crit
@@ -1985,7 +1985,7 @@
-
+
@@ -2009,7 +2009,7 @@
Weapon
Proficiency
Range Mod.
-
# of Attacks
+
ROF
Attack Adj.
THAC0
Crit
@@ -2047,7 +2047,7 @@
-
+
@@ -3261,7 +3261,7 @@
Weapon Proficiencies
Total Weapon proficiency slots:
-
+
@@ -3329,7 +3329,7 @@
Nonweapon Proficiencies
Total Nonweapon proficiency slots:
-
+
@@ -22624,14 +22624,28 @@ on('change:repeating_customrogue:crl remove:repeating_customrogue', function(){
// --- End setup Rogue skills total --- //
//Related weapons / familiarity penalty
-on('change:nonprof-penalty', function () {
+on('change:nonprof-penalty', function (eventInfo) {
+ if (eventInfo.sourceType === 'sheetworker') {
+ return;
+ }
getAttrs(['nonprof-penalty'], function(values) {
- let nonprof = Math.abs(parseInt(values['nonprof-penalty']) ?? 0) * -1;
- let famil = Math.floor(nonprof / 2)
- setAttrs({
- ['nonprof-penalty']: nonprof,
- ['famil-penalty']: famil
- });
+ let number = parseInt(values['nonprof-penalty']);
+ let nonprof;
+ let famil;
+ console.log(number);
+ if (isNaN(number) || number === 0) {
+ setAttrs({
+ ['nonprof-penalty']: '-0',
+ ['famil-penalty']: '-0'
+ });
+ } else {
+ nonprof = Math.abs(number) * -1;
+ famil = Math.floor(nonprof / 2);
+ setAttrs({
+ ['nonprof-penalty']: nonprof,
+ ['famil-penalty']: famil
+ });
+ }
});
})
@@ -22653,8 +22667,7 @@ on('change:repeating_gear:gearweight change:repeating_gear:gearqty remove:repeat
//Equipment Stored Section
//Mount Equipment Carried Section Continued
-on('change:repeating_gear-stored:gear-stored-weight change:repeating_gear-stored:gear-stored-qty change:repeating_gear-stored:on-mount remove:repeating_gear-stored change:on-mount change:gear-stored-weight change:gear-stored-qty', function(){
-
+on('change:repeating_gear-stored:gear-stored-weight change:repeating_gear-stored:gear-stored-qty change:repeating_gear-stored:on-mount remove:repeating_gear-stored', function(){
TAS.repeating('gear-stored')
.attrs('mount-gear-weight-total','stored-gear-weight-total')
.fields('on-mount','gear-stored-weight','gear-stored-qty')
diff --git a/AD&D 2E Revised/javascript/sheetWorkers.js b/AD&D 2E Revised/javascript/sheetWorkers.js
index 5fb4e27dc6..62e2fae81c 100644
--- a/AD&D 2E Revised/javascript/sheetWorkers.js
+++ b/AD&D 2E Revised/javascript/sheetWorkers.js
@@ -685,14 +685,28 @@ on('change:repeating_customrogue:crl remove:repeating_customrogue', function(){
// --- End setup Rogue skills total --- //
//Related weapons / familiarity penalty
-on('change:nonprof-penalty', function () {
+on('change:nonprof-penalty', function (eventInfo) {
+ if (eventInfo.sourceType === 'sheetworker') {
+ return;
+ }
getAttrs(['nonprof-penalty'], function(values) {
- let nonprof = Math.abs(parseInt(values['nonprof-penalty']) ?? 0) * -1;
- let famil = Math.floor(nonprof / 2)
- setAttrs({
- ['nonprof-penalty']: nonprof,
- ['famil-penalty']: famil
- });
+ let number = parseInt(values['nonprof-penalty']);
+ let nonprof;
+ let famil;
+ console.log(number);
+ if (isNaN(number) || number === 0) {
+ setAttrs({
+ ['nonprof-penalty']: '-0',
+ ['famil-penalty']: '-0'
+ });
+ } else {
+ nonprof = Math.abs(number) * -1;
+ famil = Math.floor(nonprof / 2);
+ setAttrs({
+ ['nonprof-penalty']: nonprof,
+ ['famil-penalty']: famil
+ });
+ }
});
})
@@ -714,8 +728,7 @@ on('change:repeating_gear:gearweight change:repeating_gear:gearqty remove:repeat
//Equipment Stored Section
//Mount Equipment Carried Section Continued
-on('change:repeating_gear-stored:gear-stored-weight change:repeating_gear-stored:gear-stored-qty change:repeating_gear-stored:on-mount remove:repeating_gear-stored change:on-mount change:gear-stored-weight change:gear-stored-qty', function(){
-
+on('change:repeating_gear-stored:gear-stored-weight change:repeating_gear-stored:gear-stored-qty change:repeating_gear-stored:on-mount remove:repeating_gear-stored', function(){
TAS.repeating('gear-stored')
.attrs('mount-gear-weight-total','stored-gear-weight-total')
.fields('on-mount','gear-stored-weight','gear-stored-qty')
diff --git a/AD&D 2E Revised/raw/2ESheet-raw.html b/AD&D 2E Revised/raw/2ESheet-raw.html
index 2fc4aba003..0f64d7ffed 100644
--- a/AD&D 2E Revised/raw/2ESheet-raw.html
+++ b/AD&D 2E Revised/raw/2ESheet-raw.html
@@ -105,7 +105,7 @@