fix: restore burden meter colors
This commit is contained in:
parent
8bea346a57
commit
b318c04fd6
2 changed files with 4 additions and 3 deletions
|
|
@ -1387,6 +1387,7 @@ function renderInventoryState(state) {
|
|||
? `${burdenUnits}/${encumbranceCapacity}`
|
||||
: '';
|
||||
state.burdenFill.style.height = `${Math.min(100, burdenPct / 2)}%`;
|
||||
state.burdenFill.style.minHeight = burdenPct > 0 ? '2px' : '0';
|
||||
state.burdenFill.className = 'inv-burden-fill';
|
||||
if (burdenPct > 150) {
|
||||
state.burdenFill.classList.add('is-danger');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue