feat: track NemesisAbandonedRewards #1118

Merged
OrdisPrime merged 1 commits from track-abandoned-rewards into main 2025-03-08 05:36:07 -08:00
3 changed files with 5 additions and 1 deletions

View File

@ -1290,7 +1290,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
InvasionChainProgress: [Schema.Types.Mixed],
//CorpusLich or GrineerLich
NemesisAbandonedRewards: [String],
NemesisAbandonedRewards: { type: [String], default: [] },
//CorpusLich\KuvaLich
NemesisHistory: [Schema.Types.Mixed],
LastNemesisAllySpawnTime: Schema.Types.Mixed,

View File

@ -84,6 +84,9 @@ export const addMissionInventoryUpdates = async (
});
}
}
if (inventoryUpdates.RewardInfo && inventoryUpdates.RewardInfo.NemesisAbandonedRewards) {
inventory.NemesisAbandonedRewards = inventoryUpdates.RewardInfo.NemesisAbandonedRewards;
}
for (const [key, value] of getEntriesUnsafe(inventoryUpdates)) {
if (value === undefined) {
logger.error(`Inventory update key ${key} has no value `);

View File

@ -117,6 +117,7 @@ export interface IRewardInfo {
toxinOk?: boolean;
lostTargetWave?: number;
defenseTargetCount?: number;
NemesisAbandonedRewards?: string[];
EOM_AFK?: number;
rewardQualifications?: string; // did a Survival for 5 minutes and this was "1"
PurgatoryRewardQualifications?: string;