WFRP4e - Rebuild whrp4e.html after previous fixes

This commit is contained in:
Anton Sudak
2021-01-31 22:24:06 +02:00
parent 84a88ca7d6
commit 28e85ef48d
@@ -5636,8 +5636,8 @@
<div class="wfrp-settings__row">
<div class="wfrp-settings__label" data-i18n="Type"> </div>
<select class="wfrp-settings__input" name="attr_spell_type">
<option data-i18n="Spell"></option>
<option data-i18n="Prayer"></option>
<option value="Spell" data-i18n="Spell"></option>
<option value="Prayer" data-i18n="Prayer"></option>
</select>
</div>
<div class="wfrp-settings__row control__hide--Spell">
@@ -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})