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

feat: track NemesisAbandonedRewards (#1118)

Re #446 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1118 Co-authored-by: Sainan <sainan@calamity.inc> Co-committed-by: Sainan <sainan@calamity.inc>

3853fda6
Sainan <sainan@calamity.inc>
提交于

代码差异

3 个文件 +5 -1
Modified src/models/inventoryModels/inventoryModel.ts +1 -1
@@ -1290,7 +1290,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
1290 1290 InvasionChainProgress: [Schema.Types.Mixed],
1291 1291
1292 1292 //CorpusLich or GrineerLich
1293 NemesisAbandonedRewards: [String],
1293 NemesisAbandonedRewards: { type: [String], default: [] },
1294 1294 //CorpusLich\KuvaLich
1295 1295 NemesisHistory: [Schema.Types.Mixed],
1296 1296 LastNemesisAllySpawnTime: Schema.Types.Mixed,
Modified src/services/missionInventoryUpdateService.ts +3 -0
@@ -84,6 +84,9 @@ export const addMissionInventoryUpdates = async (
84 84 });
85 85 }
86 86 }
87 if (inventoryUpdates.RewardInfo && inventoryUpdates.RewardInfo.NemesisAbandonedRewards) {
88 inventory.NemesisAbandonedRewards = inventoryUpdates.RewardInfo.NemesisAbandonedRewards;
89 }
87 90 for (const [key, value] of getEntriesUnsafe(inventoryUpdates)) {
88 91 if (value === undefined) {
89 92 logger.error(`Inventory update key ${key} has no value `);
Modified src/types/requestTypes.ts +1 -0
@@ -117,6 +117,7 @@ export interface IRewardInfo {
117 117 toxinOk?: boolean;
118 118 lostTargetWave?: number;
119 119 defenseTargetCount?: number;
120 NemesisAbandonedRewards?: string[];
120 121 EOM_AFK?: number;
121 122 rewardQualifications?: string; // did a Survival for 5 minutes and this was "1"
122 123 PurgatoryRewardQualifications?: string;