skip log if no rewardManifests
All checks were successful
Build / build (push) Successful in 1m23s
Build / build (pull_request) Successful in 1m22s

This commit is contained in:
Sainan 2025-04-10 22:11:18 +02:00
parent 8b8836ea5b
commit b6704f59ba

View File

@ -832,7 +832,9 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
const rotationCount = RewardInfo.rewardQualifications?.length || 0; const rotationCount = RewardInfo.rewardQualifications?.length || 0;
rotations = getRotations(rotationCount, tierOverride); rotations = getRotations(rotationCount, tierOverride);
} }
logger.debug(`generating random mission rewards`, { rewardManifests, rotations }); if (rewardManifests.length != 0) {
logger.debug(`generating random mission rewards`, { rewardManifests, rotations });
}
rewardManifests rewardManifests
.map(name => ExportRewards[name]) .map(name => ExportRewards[name])
.forEach(table => { .forEach(table => {