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

chore: handle resource being rolled as mission reward (#545)

cc5713e3
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +5 -1
Modified src/services/missionInventoryUpdateService.ts +5 -1
@@ -7,6 +7,7 @@ import {
7 7 ExportGear,
8 8 ExportRecipes,
9 9 ExportRelics,
10 ExportResources,
10 11 IReward
11 12 } from "warframe-public-export-plus";
12 13 import { IMissionInventoryUpdateRequest } from "../types/requestTypes";
@@ -164,7 +165,10 @@ const formatRewardsToInventoryType = (
164 165 addRewardResponse(InventoryChanges, MissionRewards, type, reward.itemCount, "Consumables");
165 166 } else if (type in ExportRecipes) {
166 167 addRewardResponse(InventoryChanges, MissionRewards, type, reward.itemCount, "Recipes");
167 } else if (type in ExportRelics) {
168 } else if (
169 type in ExportRelics ||
170 (type in ExportResources && ExportResources[type].productCategory == "MiscItems")
171 ) {
168 172 addRewardResponse(InventoryChanges, MissionRewards, type, reward.itemCount, "MiscItems");
169 173 } else {
170 174 logger.error(`rolled reward ${reward.itemCount}X ${reward.type} but unsure how to give it`);