cheat: nemesisAlwaysCorrect

fix default value
This commit is contained in:
AlexisinGit 2025-09-05 17:54:38 +08:00
parent 7e13bcf8a9
commit e9b985e9be

View File

@ -82,8 +82,8 @@ export const nemesisController: RequestHandler = async (req, res) => {
const inventory = await getInventory(account._id.toString(), "Nemesis");
const body = getJSONfromString<INemesisPrespawnCheckRequest>(String(req.body));
const passcode = getNemesisPasscode(inventory.Nemesis!);
const alwaysCorrectCheat = (await getInventory(account._id.toString(), "nemesisAlwaysCorrect"))
.nemesisAlwaysCorrect;
const alwaysCorrectCheat =
(await getInventory(account._id.toString(), "nemesisAlwaysCorrect")).nemesisAlwaysCorrect ?? false;
let guessResult = 0;
if (inventory.Nemesis!.Faction == "FC_INFESTATION") {
for (let i = 0; i != 3; ++i) {
@ -106,8 +106,8 @@ export const nemesisController: RequestHandler = async (req, res) => {
"Nemesis LoadOutPresets CurrentLoadOutIds DataKnives Upgrades RawUpgrades"
);
const body = getJSONfromString<INemesisRequiemRequest>(String(req.body));
const alwaysCorrectCheat = (await getInventory(account._id.toString(), "nemesisAlwaysCorrect"))
.nemesisAlwaysCorrect;
const alwaysCorrectCheat =
(await getInventory(account._id.toString(), "nemesisAlwaysCorrect")).nemesisAlwaysCorrect ?? false;
if (inventory.Nemesis!.Faction == "FC_INFESTATION") {
const guess: number[] = [body.guess & 0xf, (body.guess >> 4) & 0xf, (body.guess >> 8) & 0xf];
const passcode = getNemesisPasscode(inventory.Nemesis!)[0];