Handle Railjack Abandoned Caches
All checks were successful
Build / build (pull_request) Successful in 54s
All checks were successful
Build / build (pull_request) Successful in 54s
This commit is contained in:
parent
2e1326cde8
commit
6d22d7912c
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user