From 159598979df9abed12c28ebe7b63eed7deefeaa6 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Thu, 1 May 2025 13:53:40 -0700 Subject: [PATCH] fix: don't duplicate level key credits reward (#1940) Closes #1939 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1940 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/services/missionInventoryUpdateService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index dc670c59..86c414f5 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -858,8 +858,7 @@ export const addMissionRewards = async ( for (const reward of fixedLevelRewards.levelKeyRewards2) { //quest stage completion credit rewards if (reward.rewardType == "RT_CREDITS") { - inventory.RegularCredits += reward.amount; - missionCompletionCredits += reward.amount; + missionCompletionCredits += reward.amount; // will be added to inventory in addCredits continue; } MissionRewards.push({