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: #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:
@@ -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>";
|
||||
|
||||
Reference in New Issue
Block a user