From 28e85ef48d72a0c9616ba80dca0aaa301a7ad042 Mon Sep 17 00:00:00 2001 From: Anton Sudak Date: Sun, 31 Jan 2021 22:22:30 +0200 Subject: [PATCH] WFRP4e - Rebuild whrp4e.html after previous fixes --- Warhammer Fantasy Roleplay 4e Official/wfrp4.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html index 1a93932722..8a9d10b62e 100644 --- a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html +++ b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html @@ -5636,8 +5636,8 @@
@@ -10214,7 +10214,7 @@ const enc = parseInt(values[`repeating_armour_${id}_armour_enc`]) const total = (worn === "on") ? enc - 1 : enc || 0 - total_enc += total; + total_enc += total >= 0 ? total : 0; }); weapons_array.forEach(id => { @@ -10231,7 +10231,7 @@ const total = (worn === "on") ? (enc - 1) * amount : enc * amount; - if (inenc === "on") total_enc += total; + if (inenc === "on") total_enc += total >= 0 ? total : 0; }); setAttrs({encumbrance:total_enc})