返回提交历史
Modified
src/models/inventoryModels/inventoryModel.ts
+1
-1
Modified
src/services/missionInventoryUpdateService.ts
+3
-0
Modified
src/types/requestTypes.ts
+1
-0
XFEstudio/SpaceNinjaServer
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
代码差异
3 个文件
+5
-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,
@@ -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 `);
@@ -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;