WFRP4e - Rebuild whrp4e.html after previous fixes
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user