From 69d816e3ad9a4191ab392b067fb4f13da50811e6 Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Sun, 2 Nov 2025 22:06:51 +0100 Subject: [PATCH] Update missionInventoryUpdateService.ts --- src/services/missionInventoryUpdateService.ts | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index 5a68ad8a..81860b36 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -1542,19 +1542,11 @@ export const addMissionRewards = async ( }, { endings: ["Jobs/NewbieJob"], amount: 200, tag: "CetusSyndicate" } ]; - if (specialCase.some(rule => rule.endings.some(e => jobType.endsWith(e)))) { - const specialCaseReward = specialCase.find( - rule => - rule.endings.some(e => jobType.endsWith(e)) && - (rule.stage === undefined || rewardInfo.JobStage === rule.stage) - ); + const match = specialCase.find(rule => rule.endings.some(e => jobType.endsWith(e))); + if (match) { + const specialCaseReward = match.stage === undefined || rewardInfo.JobStage === match.stage ? match : null; if (specialCaseReward) { - addStanding( - inventory, - specialCaseReward.tag, - Math.floor(specialCaseReward.amount / (rewardInfo.Q ? 0.8 : 1)), - AffiliationMods - ); + addStanding(inventory, match.tag, Math.floor(match.amount / (rewardInfo.Q ? 0.8 : 1)), AffiliationMods); } } else if (syndicateEntry && syndicateEntry.Jobs) { let currentJob = syndicateEntry.Jobs[rewardInfo.JobTier!];