0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-12 15:50:42 -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 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;
}
/**