返回提交历史
Modified
static/webui/script.js
+1
-1
XFEstudio/SpaceNinjaServer
fix(webui): error when an unknown suit is max rank (#2109)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2109 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
d43e39d7
代码差异
1 个文件
+1
-1
@@ -476,7 +476,7 @@ function updateInventory() {
476
476
}
477
477
478
478
let anyExaltedMissingXP = false;
479
if (item.XP >= maxXP && "exalted" in itemMap[item.ItemType]) {
479
if (item.XP >= maxXP && item.ItemType in itemMap && "exalted" in itemMap[item.ItemType]) {
480
480
for (const exaltedType of itemMap[item.ItemType].exalted) {
481
481
const exaltedItem = data.SpecialItems.find(x => x.ItemType == exaltedType);
482
482
if (exaltedItem) {