From bb0ffa6fbc2502046e63002024305b3527877fdd Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 1 Sep 2024 17:06:32 +0100 Subject: [PATCH] Updated money bonus calculation to match live --- project/src/helpers/QuestHelper.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/project/src/helpers/QuestHelper.ts b/project/src/helpers/QuestHelper.ts index d6f46a24..d0928462 100644 --- a/project/src/helpers/QuestHelper.ts +++ b/project/src/helpers/QuestHelper.ts @@ -1005,9 +1005,12 @@ export class QuestHelper { 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) - const hideoutManagementBonusPercent = hideoutManagementSkill ? hideoutManagementSkill.Progress / 100 : 0; + // We multiply the money reward bonuses by the hideout management skill multipler, givin the new result + const hideoutManagementBonusMultipler = hideoutManagementSkill + ? 1 + hideoutManagementSkill.Progress / 10000 + : 1; - return moneyRewardBonusPercent + hideoutManagementBonusPercent; + return moneyRewardBonusPercent * hideoutManagementBonusMultipler; } /**