forked from OpenWF/SpaceNinjaServer
avoid unnecessary cucling rewardManifests.forEach
This commit is contained in:
parent
a5403ef1c0
commit
046c7d9cab
@ -2082,7 +2082,11 @@ function getRandomMissionDrops(
|
|||||||
tableIndex = 2;
|
tableIndex = 2;
|
||||||
}
|
}
|
||||||
if (jobType.startsWith("/Lotus/Types/Gameplay/NokkoColony/Jobs/NokkoJob")) {
|
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 {
|
} else {
|
||||||
rotations = [tableIndex];
|
rotations = [tableIndex];
|
||||||
}
|
}
|
||||||
@ -2183,7 +2187,6 @@ function getRandomMissionDrops(
|
|||||||
logger.warn(`RewardSeed mismatch:`, { client: RewardInfo.rewardSeed, database: inventory.RewardSeed });
|
logger.warn(`RewardSeed mismatch:`, { client: RewardInfo.rewardSeed, database: inventory.RewardSeed });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (rotations.length > 1) {
|
|
||||||
const rng = new SRng(BigInt(RewardInfo.rewardSeed ?? generateRewardSeed()) ^ 0xffffffffffffffffn);
|
const rng = new SRng(BigInt(RewardInfo.rewardSeed ?? generateRewardSeed()) ^ 0xffffffffffffffffn);
|
||||||
rewardManifests.forEach(name => {
|
rewardManifests.forEach(name => {
|
||||||
const table = ExportRewards[name];
|
const table = ExportRewards[name];
|
||||||
@ -2200,7 +2203,6 @@ function getRandomMissionDrops(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
// Railjack Abandoned Cache Rewards, Rotation A (Mandatory Objectives)
|
// Railjack Abandoned Cache Rewards, Rotation A (Mandatory Objectives)
|
||||||
if (RewardInfo.POICompletions) {
|
if (RewardInfo.POICompletions) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user