From 3ae535ccbc0a3d808f8a7118d07f03da9b0ec9cf Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Sun, 26 Oct 2025 06:37:43 -0700 Subject: [PATCH] feat: deepmines bounties (#2933) Closes #2936 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2933 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> --- package-lock.json | 8 ++--- package.json | 2 +- src/services/missionInventoryUpdateService.ts | 34 ++++++++++++++++--- 3 files changed, 34 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7981d879..39d49f9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "morgan": "^1.10.0", "ncp": "^2.0.0", "undici": "^7.10.0", - "warframe-public-export-plus": "^0.5.92", + "warframe-public-export-plus": "^0.5.93", "warframe-riven-info": "^0.1.2", "winston": "^3.17.0", "winston-daily-rotate-file": "^5.0.0", @@ -5534,9 +5534,9 @@ } }, "node_modules/warframe-public-export-plus": { - "version": "0.5.92", - "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.92.tgz", - "integrity": "sha512-5O5VtyVXxKtl5QdpzoVyKov5GX6t3z/U5tqPq73kjoSyA5NQT2V9sWsZK4ASyY8Edv9hNsdwlZdsdP8QmYbubg==" + "version": "0.5.93", + "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.93.tgz", + "integrity": "sha512-A8LSFJoyg7sU1n4L0zhLK1g0CREh8Fxvk7eXKoT8nMTroQg6YgEw02gK0MUi9U3rWTnlaGTsXZMp/tgC7HWUKw==" }, "node_modules/warframe-riven-info": { "version": "0.1.2", diff --git a/package.json b/package.json index 8e97d778..4520ffdc 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "morgan": "^1.10.0", "ncp": "^2.0.0", "undici": "^7.10.0", - "warframe-public-export-plus": "^0.5.92", + "warframe-public-export-plus": "^0.5.93", "warframe-riven-info": "^0.1.2", "winston": "^3.17.0", "winston-daily-rotate-file": "^5.0.0", diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index c8e0f50c..3c50c453 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -243,7 +243,7 @@ export const addMissionInventoryUpdates = async ( } } } - if (inventoryUpdates.MissionStatus == "GS_SUCCESS" && inventoryUpdates.RewardInfo.jobId) { + if (inventoryUpdates.RewardInfo.jobId) { // e.g. for Profit-Taker Phase 1: // JobTier: -6, // jobId: '/Lotus/Types/Gameplay/Venus/Jobs/Heists/HeistProfitTakerBountyOne_-6_SolarisUnitedHub1_663a71c80000000000000025_EudicoHeists', @@ -251,7 +251,10 @@ export const addMissionInventoryUpdates = async ( // eslint-disable-next-line @typescript-eslint/no-unused-vars const [bounty, tier, hub, id, tag] = inventoryUpdates.RewardInfo.jobId.split("_"); - if (tag == "EudicoHeists") { + if ( + (tag == "EudicoHeists" && inventoryUpdates.MissionStatus == "GS_SUCCESS") || + (tag == "NokkoColony" && inventoryUpdates.RewardInfo.JobStage == 4) + ) { inventory.CompletedJobChains ??= []; let chain = inventory.CompletedJobChains.find(x => x.LocationTag == tag); if (!chain) { @@ -1514,7 +1517,7 @@ export const addMissionRewards = async ( syndicateEntry = Goals.find(m => m._id.$oid === syndicateMissionId); if (syndicateEntry) syndicateEntry.Tag = syndicateEntry.JobAffiliationTag!; } - if (syndicateEntry && syndicateEntry.Jobs) { + if (syndicateEntry && syndicateEntry.Jobs && !jobType.startsWith("/Lotus/Types/Gameplay/NokkoColony/Jobs")) { let currentJob = syndicateEntry.Jobs[rewardInfo.JobTier!]; if ( [ @@ -2022,6 +2025,19 @@ function getRandomMissionDrops( xpAmounts: [1000] }; RewardInfo.Q = false; // Just in case + } else if (jobType.startsWith("/Lotus/Types/Gameplay/NokkoColony/Jobs/NokkoJob")) { + job = { + rewards: jobType + .replace("SteelPath", "Steel") + .replace( + "/Lotus/Types/Gameplay/NokkoColony/Jobs/NokkoJob", + "Lotus/Types/Game/MissionDecks/NokkoColonyRewards/NokkoColonyRewards" + ), + masteryReq: 0, + minEnemyLevel: 30, + maxEnemyLevel: 40, + xpAmounts: [0, 0, 0, 0, 0] + }; } else { const tierMap = { Two: "B", @@ -2065,14 +2081,22 @@ function getRandomMissionDrops( } else if (totalStage == 5 && curentStage == 4) { tableIndex = 2; } - - rotations = [tableIndex]; + if (jobType.startsWith("/Lotus/Types/Gameplay/NokkoColony/Jobs/NokkoJob")) { + if (RewardInfo.JobStage === job.xpAmounts.length - 1) { + rotations = [0, 1, 2]; + } else { + rewardManifests = []; + } + } else { + rotations = [tableIndex]; + } } else { rotations = [0]; } if ( RewardInfo.Q && (RewardInfo.JobStage === job.xpAmounts.length - 1 || jobType.endsWith("VaultBounty")) && + !jobType.startsWith("/Lotus/Types/Gameplay/NokkoColony/Jobs/NokkoJob") && !isEndlessJob ) { rotations.push(ExportRewards[job.rewards].length - 1);