forked from OpenWF/SpaceNinjaServer
feat: track NemesisAbandonedRewards (#1118)
Re #446 Reviewed-on: OpenWF/SpaceNinjaServer#1118 Co-authored-by: Sainan <sainan@calamity.inc> Co-committed-by: Sainan <sainan@calamity.inc>
This commit is contained in:
parent
901263ada3
commit
3853fda60d
@ -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,
|
||||
|
@ -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 `);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user