Add warning for missing cache reward manifest
Some checks failed
Build / build (pull_request) Failing after 1m1s
Some checks failed
Build / build (pull_request) Failing after 1m1s
This commit is contained in:
parent
6d22d7912c
commit
f3beebc53d
@ -1947,24 +1947,32 @@ function getRandomMissionDrops(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Railjack Abandoned Cache Rewards, Rotation A (Mandatory Objectives)
|
// Railjack Abandoned Cache Rewards, Rotation A (Mandatory Objectives)
|
||||||
if (region.cacheRewardManifest && RewardInfo.POICompletions) {
|
if (RewardInfo.POICompletions) {
|
||||||
const deck = ExportRewards[region.cacheRewardManifest];
|
if(region.cacheRewardManifest){
|
||||||
for (let cache = 0; cache != RewardInfo.POICompletions; ++cache) {
|
const deck = ExportRewards[region.cacheRewardManifest];
|
||||||
const drop = getRandomRewardByChance(deck[0]);
|
for (let cache = 0; cache != RewardInfo.POICompletions; ++cache) {
|
||||||
if (drop) {
|
const drop = getRandomRewardByChance(deck[0]);
|
||||||
drops.push({ StoreItem: drop.type, ItemCount: drop.itemCount, FromEnemyCache: true });
|
if (drop) {
|
||||||
|
drops.push({ StoreItem: drop.type, ItemCount: drop.itemCount, FromEnemyCache: true });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
logger.error(`POI completed, but there was no cache reward manifest at ${RewardInfo.node}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Railjack Abandoned Cache Rewards, Rotation B (Optional Objectives)
|
// Railjack Abandoned Cache Rewards, Rotation B (Optional Objectives)
|
||||||
if (region.cacheRewardManifest && RewardInfo.LootDungeonCompletions) {
|
if (RewardInfo.LootDungeonCompletions) {
|
||||||
const deck = ExportRewards[region.cacheRewardManifest];
|
if(region.cacheRewardManifest){
|
||||||
for (let cache = 0; cache != RewardInfo.LootDungeonCompletions; ++cache) {
|
const deck = ExportRewards[region.cacheRewardManifest];
|
||||||
const drop = getRandomRewardByChance(deck[1]);
|
for (let cache = 0; cache != RewardInfo.LootDungeonCompletions; ++cache) {
|
||||||
if (drop) {
|
const drop = getRandomRewardByChance(deck[1]);
|
||||||
drops.push({ StoreItem: drop.type, ItemCount: drop.itemCount, FromEnemyCache: true });
|
if (drop) {
|
||||||
|
drops.push({ StoreItem: drop.type, ItemCount: drop.itemCount, FromEnemyCache: true });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
logger.error(`Loot dungeon completed, but there was no cache reward manifest at ${RewardInfo.node}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user