From 20d0c4a4d43df502413dba7c9c4e87ee3be15dd4 Mon Sep 17 00:00:00 2001 From: Atlaskor Date: Thu, 13 Nov 2025 15:49:31 +0000 Subject: [PATCH] Update server/static/ui_hud.js --- server/static/ui_hud.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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}%`; }; }