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

fix: unable to add legendary core (#955)

Related to #952 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/955

0e7c124d
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +15 -14
Modified src/services/inventoryService.ts +15 -14
@@ -415,20 +415,21 @@ export const addItem = async (
415 415 }
416 416 break;
417 417 case "Upgrades": {
418 if (typeName.substr(1).split("/")[2] == "CosmeticEnhancers") {
419 // Needed to add Traumatic Peculiar
420 const changes = [
421 {
422 ItemType: typeName,
423 ItemCount: quantity
424 }
425 ];
426 addMods(inventory, changes);
427 return {
428 InventoryChanges: {
429 RawUpgrades: changes
430 }
431 };
418 switch (typeName.substr(1).split("/")[2]) {
419 case "Mods": // Legendary Core
420 case "CosmeticEnhancers": // Traumatic Peculiar
421 const changes = [
422 {
423 ItemType: typeName,
424 ItemCount: quantity
425 }
426 ];
427 addMods(inventory, changes);
428 return {
429 InventoryChanges: {
430 RawUpgrades: changes
431 }
432 };
432 433 }
433 434 break;
434 435 }