From ed3d836417529dde7854a5e1183af1c75633e8dc Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Fri, 11 Apr 2025 03:40:14 +0200 Subject: [PATCH] `Heists/HeistProfitTakerBountyOne`: give standing only on last stage --- src/controllers/api/missionInventoryUpdateController.ts | 3 ++- src/services/missionInventoryUpdateService.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/controllers/api/missionInventoryUpdateController.ts b/src/controllers/api/missionInventoryUpdateController.ts index 589285ae..fb1bf652 100644 --- a/src/controllers/api/missionInventoryUpdateController.ts +++ b/src/controllers/api/missionInventoryUpdateController.ts @@ -6,6 +6,7 @@ import { addMissionInventoryUpdates, addMissionRewards } from "@/src/services/mi import { getInventory } from "@/src/services/inventoryService"; import { getInventoryResponse } from "./inventoryController"; import { logger } from "@/src/utils/logger"; +import { ExportRegions } from "warframe-public-export-plus"; /* **** INPUT **** @@ -57,7 +58,7 @@ export const missionInventoryUpdateController: RequestHandler = async (req, res) if ( missionReport.MissionStatus === "GS_SUCCESS" || - (missionReport.RewardInfo && (missionReport.RewardInfo.jobId || missionReport.RewardInfo.challengeMissionId)) + ExportRegions[missionReport.Missions!.Tag].missionIndex === 28 ) { await inventory.save(); const inventoryResponse = await getInventoryResponse(inventory, true); diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index cf996fe6..1716d147 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -751,10 +751,12 @@ export const addMissionRewards = async ( addStanding(inventory, syndicateEntry.Tag, currentJob.xpAmounts[rewardInfo.JobStage]) ); } else { + if (jobType.endsWith("Heists/HeistProfitTakerBountyOne") && rewardInfo.JobStage === 2) { + AffiliationMods.push(addStanding(inventory, syndicateEntry.Tag, 1000)); + } if ( [ "Hunts/TeralystHunt", - "Heists/HeistProfitTakerBountyOne", "Heists/HeistProfitTakerBountyTwo", "Heists/HeistProfitTakerBountyThree", "Heists/HeistProfitTakerBountyFour",