From 66c1d23df22c4479335231d3a66870aaf29e04bc Mon Sep 17 00:00:00 2001 From: Chomp Date: Sat, 7 Dec 2024 09:44:12 +0000 Subject: [PATCH] Fixed cultist circle saving direct rewards to the profile incorrectly --- project/src/services/CircleOfCultistService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/services/CircleOfCultistService.ts b/project/src/services/CircleOfCultistService.ts index 575d6be6..81a86d55 100644 --- a/project/src/services/CircleOfCultistService.ts +++ b/project/src/services/CircleOfCultistService.ts @@ -507,7 +507,7 @@ export class CircleOfCultistService { const fullProfile = this.profileHelper.getFullProfile(sessionId); const directRewardHash = this.getDirectRewardHashKey(matchingDirectReward); - if (fullProfile.spt.cultistRewards?.has(directRewardHash)) { + if (fullProfile.spt.cultistRewards?.[directRewardHash]) { // Player has already received this direct reward return null; } @@ -562,7 +562,7 @@ export class CircleOfCultistService { rewardItems: directReward.reward, }; - fullProfile.spt.cultistRewards.set(this.getDirectRewardHashKey(directReward), dataToStoreInProfile); + fullProfile.spt.cultistRewards[this.getDirectRewardHashKey(directReward)] = dataToStoreInProfile; } /**