返回提交历史
Modified
static/webui/script.js
+5
-2
XFEstudio/SpaceNinjaServer
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 <subsonicjackal@gmail.com> Co-committed-by: VoltPrime <subsonicjackal@gmail.com>
25d2b1c3
代码差异
1 个文件
+5
-2
@@ -428,7 +428,8 @@ function fetchItemList() {
428
428
// Add mods missing in data sources
429
429
data.mods.push({
430
430
uniqueName: "/Lotus/Upgrades/Mods/Fusers/LegendaryModFuser",
431
name: loc("code_legendaryCore")
431
name: loc("code_legendaryCore"),
432
fusionLimit: 0
432
433
});
433
434
data.mods.push({
434
435
uniqueName: "/Lotus/Upgrades/CosmeticEnhancers/Peculiars/CyoteMod",
@@ -1507,7 +1508,9 @@ function updateInventory() {
1507
1508
{
1508
1509
const td = document.createElement("td");
1509
1510
td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType;
1510
td.innerHTML += " <span title='" + loc("code_rank") + "'>★ 0/" + maxRank + "</span>";
1511
if (maxRank > 0) {
1512
td.innerHTML += " <span title='" + loc("code_rank") + "'>★ 0/" + maxRank + "</span>";
1513
}
1511
1514
if (item.ItemCount > 1) {
1512
1515
td.innerHTML +=
1513
1516
" <span title='" + loc("code_count") + "'>🗍 " + parseInt(item.ItemCount) + "</span>";