SpaceNinjaServer/src/controllers/custom/unlockAllIntrinsicsController.ts
Sainan 2334e76453
Some checks failed
Build Docker image / docker (push) Waiting to run
Build / build (18) (push) Has been cancelled
Build / build (22) (push) Has been cancelled
Build / build (20) (push) Has been cancelled
feat(webui): max rank all intrinsics (#1230)
Reviewed-on: #1230
2025-03-20 05:36:29 -07:00

20 lines
871 B
TypeScript

import { getInventory } from "@/src/services/inventoryService";
import { getAccountIdForRequest } from "@/src/services/loginService";
import { RequestHandler } from "express";
export const unlockAllIntrinsicsController: RequestHandler = async (req, res) => {
const accountId = await getAccountIdForRequest(req);
const inventory = await getInventory(accountId, "PlayerSkills");
inventory.PlayerSkills.LPS_PILOTING = 10;
inventory.PlayerSkills.LPS_GUNNERY = 10;
inventory.PlayerSkills.LPS_TACTICAL = 10;
inventory.PlayerSkills.LPS_ENGINEERING = 10;
inventory.PlayerSkills.LPS_COMMAND = 10;
inventory.PlayerSkills.LPS_DRIFT_COMBAT = 10;
inventory.PlayerSkills.LPS_DRIFT_RIDING = 10;
inventory.PlayerSkills.LPS_DRIFT_OPPORTUNITY = 10;
inventory.PlayerSkills.LPS_DRIFT_ENDURANCE = 10;
await inventory.save();
res.end();
};