Do not overwrite insuredItems array this early, is required by insurance service to send items out, cleaned up later
This commit is contained in:
parent
bb0ffa6fbc
commit
ca23daa7b8
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user