feat: track NemesisAbandonedRewards (#1118)
All checks were successful
Build / build (18) (push) Successful in 41s
Build / build (20) (push) Successful in 1m0s
Build / build (22) (push) Successful in 1m3s
Build Docker image / docker (push) Successful in 31s

Re #446

Reviewed-on: #1118
Co-authored-by: Sainan <sainan@calamity.inc>
Co-committed-by: Sainan <sainan@calamity.inc>
This commit is contained in:
Sainan 2025-03-08 05:36:06 -08:00 committed by OrdisPrime
parent 901263ada3
commit 3853fda60d
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;