feat: nightmare missions rewards
All checks were successful
Build / build (22) (pull_request) Successful in 35s
Build / build (20) (pull_request) Successful in 54s
Build / build (18) (pull_request) Successful in 1m15s

Closes #416
This commit is contained in:
AMelonInsideLemon 2025-02-08 01:04:17 +01:00
parent 079f9ebbdf
commit 9755b3a0d9

View File

@ -347,6 +347,24 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo): IRngResult[] {
}
}
}
if (RewardInfo.nightmareMode) {
const deck = ExportRewards["/Lotus/Types/Game/MissionDecks/NightmareModeRewards"];
let rotation = 0;
if (region.missionIndex === 3 && RewardInfo.rewardTier) {
rotation = RewardInfo.rewardTier;
} else if ([6, 7, 8, 10, 11].includes(region.systemIndex)) {
rotation = 2;
} else if ([4, 9, 12, 14, 15, 16, 17, 18].includes(region.systemIndex)) {
rotation = 1;
}
const drop = getRandomRewardByChance(deck[rotation]);
if (drop) {
drops.push(drop);
}
}
}
return drops;
}