chore(webui): don't display rank of mods with a max rank of 0 (#3037)
All checks were successful
Build / build (push) Successful in 2m8s
Build Docker image / docker (push) Successful in 3m2s

Makes the mods tab look a little cleaner with Parazon mods and Legendary Cores.

Reviewed-on: #3037
Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com>
Co-authored-by: VoltPrime <subsonicjackal@gmail.com>
Co-committed-by: VoltPrime <subsonicjackal@gmail.com>
This commit was merged in pull request #3037.
This commit is contained in:
2025-11-18 00:07:47 -08:00
committed by Sainan
parent 34ba56862b
commit 25d2b1c3ce

View File

@@ -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 += " <span title='" + loc("code_rank") + "'>★ 0/" + maxRank + "</span>";
if (maxRank > 0) {
td.innerHTML += " <span title='" + loc("code_rank") + "'>★ 0/" + maxRank + "</span>";
}
if (item.ItemCount > 1) {
td.innerHTML +=
" <span title='" + loc("code_count") + "'>🗍 " + parseInt(item.ItemCount) + "</span>";