feat: track NemesisAbandonedRewards
All checks were successful
Build / build (20) (push) Successful in 59s
Build / build (18) (pull_request) Successful in 40s
Build / build (22) (pull_request) Successful in 58s
Build / build (22) (push) Successful in 38s
Build / build (18) (push) Successful in 1m1s
Build / build (20) (pull_request) Successful in 58s

This commit is contained in:
Sainan 2025-03-08 14:32:20 +01:00
parent 901263ada3
commit 248b97c241
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], InvasionChainProgress: [Schema.Types.Mixed],
//CorpusLich or GrineerLich //CorpusLich or GrineerLich
NemesisAbandonedRewards: [String], NemesisAbandonedRewards: { type: [String], default: [] },
//CorpusLich\KuvaLich //CorpusLich\KuvaLich
NemesisHistory: [Schema.Types.Mixed], NemesisHistory: [Schema.Types.Mixed],
LastNemesisAllySpawnTime: 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)) { for (const [key, value] of getEntriesUnsafe(inventoryUpdates)) {
if (value === undefined) { if (value === undefined) {
logger.error(`Inventory update key ${key} has no value `); logger.error(`Inventory update key ${key} has no value `);

View File

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