avoid unnecessary cucling rewardManifests.forEach

This commit is contained in:
AMelonInsideLemon 2025-10-25 10:05:41 +02:00
parent a5403ef1c0
commit 046c7d9cab

View File

@ -2082,7 +2082,11 @@ function getRandomMissionDrops(
tableIndex = 2;
}
if (jobType.startsWith("/Lotus/Types/Gameplay/NokkoColony/Jobs/NokkoJob")) {
if (RewardInfo.JobStage === job.xpAmounts.length - 1) rotations = [0, 1, 2];
if (RewardInfo.JobStage === job.xpAmounts.length - 1) {
rotations = [0, 1, 2];
} else {
rewardManifests = [];
}
} else {
rotations = [tableIndex];
}
@ -2183,7 +2187,6 @@ function getRandomMissionDrops(
logger.warn(`RewardSeed mismatch:`, { client: RewardInfo.rewardSeed, database: inventory.RewardSeed });
}
}
if (rotations.length > 1) {
const rng = new SRng(BigInt(RewardInfo.rewardSeed ?? generateRewardSeed()) ^ 0xffffffffffffffffn);
rewardManifests.forEach(name => {
const table = ExportRewards[name];
@ -2200,7 +2203,6 @@ function getRandomMissionDrops(
}
}
});
}
// Railjack Abandoned Cache Rewards, Rotation A (Mandatory Objectives)
if (RewardInfo.POICompletions) {