Do not overwrite insuredItems array this early, is required by insurance service to send items out, cleaned up later

This commit is contained in:
Dev 2024-09-01 17:14:40 +01:00
parent bb0ffa6fbc
commit ca23daa7b8
2 changed files with 3 additions and 3 deletions

View File

@ -1004,12 +1004,13 @@ export class QuestHelper {
// Calculate hideout management bonus as a percentage (up to 51% bonus) // Calculate hideout management bonus as a percentage (up to 51% bonus)
const hideoutManagementSkill = this.profileHelper.getSkillFromProfile(pmcData, SkillTypes.HIDEOUT_MANAGEMENT); const hideoutManagementSkill = this.profileHelper.getSkillFromProfile(pmcData, SkillTypes.HIDEOUT_MANAGEMENT);
// 5100 becomes 0.51, add 1 to it, 1.51, multiply the moneyreward bonus by it (e.g. 15 x 51) // 5100 becomes 0.51, add 1 to it, 1.51
// We multiply the money reward bonuses by the hideout management skill multipler, givin the new result // We multiply the money reward bonuses by the hideout management skill multipler, giving the new result
const hideoutManagementBonusMultipler = hideoutManagementSkill const hideoutManagementBonusMultipler = hideoutManagementSkill
? 1 + hideoutManagementSkill.Progress / 10000 ? 1 + hideoutManagementSkill.Progress / 10000
: 1; : 1;
// e.g 15% * 1.4
return moneyRewardBonusPercent * hideoutManagementBonusMultipler; return moneyRewardBonusPercent * hideoutManagementBonusMultipler;
} }

View File

@ -445,7 +445,6 @@ export class LocationLifecycleService {
pmcProfile.SurvivorClass = postRaidProfile.SurvivorClass; pmcProfile.SurvivorClass = postRaidProfile.SurvivorClass;
pmcProfile.Achievements = postRaidProfile.Achievements; pmcProfile.Achievements = postRaidProfile.Achievements;
pmcProfile.Quests = postRaidProfile.Quests; pmcProfile.Quests = postRaidProfile.Quests;
pmcProfile.InsuredItems = postRaidProfile.InsuredItems;
pmcProfile.Info.Experience = postRaidProfile.Info.Experience; pmcProfile.Info.Experience = postRaidProfile.Info.Experience;