Compare commits

...

3 Commits

Author SHA1 Message Date
678e4d68e4 also check if Completes is valid
All checks were successful
Build / build (pull_request) Successful in 47s
2025-06-25 22:18:47 +02:00
873270ec8c Update completeAllMissionsController.ts
All checks were successful
Build / build (pull_request) Successful in 1m19s
2025-06-25 22:08:58 +02:00
c132803fbf fix(webui): add steel path completion in completeAllMissions cheat
Closes #2283
2025-06-25 22:04:55 +02:00

View File

@ -12,7 +12,8 @@ export const completeAllMissionsController: RequestHandler = async (req, res) =>
const inventory = await getInventory(accountId);
const MissionRewards: IMissionReward[] = [];
for (const [tag, node] of Object.entries(ExportRegions)) {
if (!inventory.Missions.find(x => x.Tag == tag)) {
const mission = inventory.Missions.find(x => x.Tag === tag);
if (!mission) {
inventory.Missions.push({
Completes: 1,
Tier: 1,
@ -20,9 +21,11 @@ export const completeAllMissionsController: RequestHandler = async (req, res) =>
});
if (node.missionReward) {
console.log(node.missionReward);
addFixedLevelRewards(node.missionReward, inventory, MissionRewards);
}
} else {
if (!mission.Tier) mission.Tier = 1;
if (!mission.Completes) mission.Completes = 1;
}
}
for (const reward of MissionRewards) {