0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 01:30:44 -05:00

Fixed cultist circle saving direct rewards to the profile incorrectly

This commit is contained in:
Chomp 2024-12-07 09:44:12 +00:00
parent 83a3fb16fe
commit 66c1d23df2

View File

@ -507,7 +507,7 @@ export class CircleOfCultistService {
const fullProfile = this.profileHelper.getFullProfile(sessionId); const fullProfile = this.profileHelper.getFullProfile(sessionId);
const directRewardHash = this.getDirectRewardHashKey(matchingDirectReward); const directRewardHash = this.getDirectRewardHashKey(matchingDirectReward);
if (fullProfile.spt.cultistRewards?.has(directRewardHash)) { if (fullProfile.spt.cultistRewards?.[directRewardHash]) {
// Player has already received this direct reward // Player has already received this direct reward
return null; return null;
} }
@ -562,7 +562,7 @@ export class CircleOfCultistService {
rewardItems: directReward.reward, rewardItems: directReward.reward,
}; };
fullProfile.spt.cultistRewards.set(this.getDirectRewardHashKey(directReward), dataToStoreInProfile); fullProfile.spt.cultistRewards[this.getDirectRewardHashKey(directReward)] = dataToStoreInProfile;
} }
/** /**