Handle Railjack Abandoned Caches
All checks were successful
Build / build (pull_request) Successful in 54s

This commit is contained in:
VampireKitten 2025-08-12 15:27:23 +02:00
parent 2e1326cde8
commit 6d22d7912c
2 changed files with 24 additions and 0 deletions

View File

@ -1946,6 +1946,28 @@ function getRandomMissionDrops(
}
}
// Railjack Abandoned Cache Rewards, Rotation A (Mandatory Objectives)
if (region.cacheRewardManifest && RewardInfo.POICompletions) {
const deck = ExportRewards[region.cacheRewardManifest];
for (let cache = 0; cache != RewardInfo.POICompletions; ++cache) {
const drop = getRandomRewardByChance(deck[0]);
if (drop) {
drops.push({ StoreItem: drop.type, ItemCount: drop.itemCount, FromEnemyCache: true });
}
}
}
// Railjack Abandoned Cache Rewards, Rotation B (Optional Objectives)
if (region.cacheRewardManifest && RewardInfo.LootDungeonCompletions) {
const deck = ExportRewards[region.cacheRewardManifest];
for (let cache = 0; cache != RewardInfo.LootDungeonCompletions; ++cache) {
const drop = getRandomRewardByChance(deck[1]);
if (drop) {
drops.push({ StoreItem: drop.type, ItemCount: drop.itemCount, FromEnemyCache: true });
}
}
}
if (RewardInfo.nightmareMode) {
const deck = ExportRewards["/Lotus/Types/Game/MissionDecks/NightmareModeRewards"];
let rotation = 0;

View File

@ -187,6 +187,8 @@ export interface IRewardInfo {
rewardQualifications?: string; // did a Survival for 5 minutes and this was "1"
rewardTierOverrides?: number[]; // Disruption
PurgatoryRewardQualifications?: string;
POICompletions?: number;
LootDungeonCompletions?: number;
rewardSeed?: number | bigint;
periodicMissionTag?: string;
T?: number; // Duviri