From 25d2b1c3cecff6982c8ad1966225c3d0d409b01d Mon Sep 17 00:00:00 2001 From: VoltPrime Date: Tue, 18 Nov 2025 00:07:47 -0800 Subject: [PATCH] chore(webui): don't display rank of mods with a max rank of 0 (#3037) Makes the mods tab look a little cleaner with Parazon mods and Legendary Cores. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3037 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: VoltPrime Co-committed-by: VoltPrime --- static/webui/script.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/webui/script.js b/static/webui/script.js index 9c00d30e..27ea9ef3 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -428,7 +428,8 @@ function fetchItemList() { // Add mods missing in data sources data.mods.push({ uniqueName: "/Lotus/Upgrades/Mods/Fusers/LegendaryModFuser", - name: loc("code_legendaryCore") + name: loc("code_legendaryCore"), + fusionLimit: 0 }); data.mods.push({ uniqueName: "/Lotus/Upgrades/CosmeticEnhancers/Peculiars/CyoteMod", @@ -1507,7 +1508,9 @@ function updateInventory() { { const td = document.createElement("td"); td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType; - td.innerHTML += " ★ 0/" + maxRank + ""; + if (maxRank > 0) { + td.innerHTML += " ★ 0/" + maxRank + ""; + } if (item.ItemCount > 1) { td.innerHTML += " 🗍 " + parseInt(item.ItemCount) + "";