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

chore: clarify log output related to saveLoadout (#2379)

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

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

代码差异

1 个文件 +7 -2
Modified src/services/saveLoadoutService.ts +7 -2
@@ -167,8 +167,13 @@ export const handleInventoryItemConfigChange = async (
167 167 inventory.LotusCustomization = equipmentChanges.LotusCustomization;
168 168 break;
169 169 }
170 case "ValidNewLoadoutId": {
171 logger.debug(`ignoring ValidNewLoadoutId (${equipmentChanges.ValidNewLoadoutId})`);
172 // seems always equal to the id of loadout config NORMAL[0], likely has no purpose and we're free to ignore it
173 break;
174 }
170 175 default: {
171 if (equipmentKeys.includes(equipmentName as TEquipmentKey) && equipmentName != "ValidNewLoadoutId") {
176 if (equipmentKeys.includes(equipmentName as TEquipmentKey)) {
172 177 logger.debug(`general Item config saved of type ${equipmentName}`, {
173 178 config: equipment
174 179 });
@@ -216,7 +221,7 @@ export const handleInventoryItemConfigChange = async (
216 221 }
217 222 break;
218 223 } else {
219 logger.warn(`loadout category not implemented, changes may be lost: ${equipmentName}`, {
224 logger.error(`loadout category not implemented, changes will be lost: ${equipmentName}`, {
220 225 config: equipment
221 226 });
222 227 }