fix(webui): add steel path completion in completeAllMissions cheat

Closes #2283
This commit is contained in:
AMelonInsideLemon 2025-06-25 22:04:55 +02:00
parent 0fdf8b2c75
commit c132803fbf

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,10 @@ export const completeAllMissionsController: RequestHandler = async (req, res) =>
});
if (node.missionReward) {
console.log(node.missionReward);
addFixedLevelRewards(node.missionReward, inventory, MissionRewards);
}
} else if (mission.Tier == undefined) {
mission.Tier = 1;
}
}
for (const reward of MissionRewards) {