XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore(webui): clean up listing for rivens with pending challenges (#2969)

Closes #2966 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2969 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

cc568276
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +6 -2
Modified static/webui/script.js +6 -2
@@ -646,7 +646,7 @@ function fetchItemList() {
646 646 if ("badReason" in item) {
647 647 if (item.badReason == "starter") {
648 648 item.name = loc("code_starter").split("|MOD|").join(item.name);
649 } else {
649 } else if (item.badReason != "notraw") {
650 650 item.name += " " + loc("code_badItem");
651 651 }
652 652 }
@@ -1454,7 +1454,11 @@ function updateInventory() {
1454 1454 {
1455 1455 const td = document.createElement("td");
1456 1456 td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType;
1457 td.innerHTML += " <span title='" + loc("code_rank") + "'>★ " + rank + "/" + maxRank + "</span>";
1457 if (itemMap[item.ItemType]?.badReason == "notraw") {
1458 // Assuming this is a riven with a pending challenge, so rank would be N/A, but otherwise it's fine.
1459 } else {
1460 td.innerHTML += " <span title='" + loc("code_rank") + "'>★ " + rank + "/" + maxRank + "</span>";
1461 }
1458 1462 tr.appendChild(td);
1459 1463 }
1460 1464 {