feat: nemesis henchmen kills multiplier cheat #2806

Merged
Sainan merged 19 commits from AlexisinGit/SpaceNinjaServerAlexFork:cheat-nemesis-henchmen-kills-multiplier into main 2025-09-26 04:41:55 -07:00
Showing only changes of commit 7ec4cd9299 - Show all commits

View File

@ -8,7 +8,7 @@ export const setAccountCheatController: RequestHandler = async (req, res) => {
const accountId = await getAccountIdForRequest(req);
const payload = req.body as ISetAccountCheatRequest;
const inventory = await getInventory(accountId, payload.key);
inventory[payload.key] = payload.value;
inventory[payload.key] = payload.value as never;
await inventory.save();
res.end();
if (["infiniteCredits", "infinitePlatinum", "infiniteEndo", "infiniteRegalAya"].indexOf(payload.key) != -1) {
@ -18,5 +18,5 @@ export const setAccountCheatController: RequestHandler = async (req, res) => {
interface ISetAccountCheatRequest {
key: keyof IAccountCheats;
value: boolean;
value: boolean | number;
}