diff --git a/server/static/ui_hud.js b/server/static/ui_hud.js index b742f5c..e5764f0 100644 --- a/server/static/ui_hud.js +++ b/server/static/ui_hud.js @@ -37,12 +37,11 @@ export function setupHUD(root) { location.reload(); }; - // functions for other modules to update XP window.updateXP = level => { const label = panel.querySelector('#xplabel'); label.textContent = `Lvl ${level}`; const fill = panel.querySelector('#xpfill'); - const pct = Math.min(100, level); // dumb visual + const pct = Math.min(100, level); // simple visual fill.style.width = `${pct}%`; }; }