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: properly check if skin has requirement in cleanupinventory (#3382)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3382 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>

914c7415
AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -3
Modified src/services/inventoryService.ts +3 -3
@@ -2732,9 +2732,9 @@ const collectSkins = (skins: string[], weaponMap: Map<string, string>, itemsToAd
2732 2732 if (skinId.startsWith("ca70ca70ca70ca70")) {
2733 2733 const typeName = skinLookupTable[parseInt(skinId.slice(16), 16)];
2734 2734 if (!weaponMap.has(typeName)) {
2735 const { requirement } = ExportCustoms[typeName];
2736 if (typeof requirement == "string") {
2737 itemsToAdd.add(requirement);
2735 const req = ExportCustoms[typeName].requirement;
2736 if (req) {
2737 itemsToAdd.add(req);
2738 2738 } else {
2739 2739 itemsToAdd.add(typeName);
2740 2740 }