Heists/HeistProfitTakerBountyOne: give standing only on last stage
All checks were successful
Build / build (pull_request) Successful in 1m26s

This commit is contained in:
AMelonInsideLemon 2025-04-11 03:40:14 +02:00
parent 3bcf719c81
commit ed3d836417
2 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -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",