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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/XFESpaceNinjaServer

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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified static/webui/script.js +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) {