Compare commits

...

2 Commits

Author SHA1 Message Date
AlexisinGit
e960e7788f cheat: nemesisExtraWeapon (3)
fix error delegating weapon for infestation nemesis
2025-09-05 17:59:43 +08:00
AlexisinGit
e9b985e9be cheat: nemesisAlwaysCorrect
fix default value
2025-09-05 17:59:43 +08:00
2 changed files with 17 additions and 11 deletions

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];

View File

@ -874,15 +874,21 @@ export const addMissionInventoryUpdates = async (
const weaponType = manifest.weapons[inventory.Nemesis.WeaponIdx];
giveNemesisWeaponRecipe(inventory, weaponType, value.nemesisName, value.weaponLoc, profile);
att.push(weaponType);
}
if (extraWeaponCheat >= 1) {
for (let i = 0; i < extraWeaponCheat; i++) {
const randomIndex = Math.floor(Math.random() * manifest.weapons.length);
const randomWeapon = manifest.weapons[randomIndex];
giveNemesisWeaponRecipe(inventory, randomWeapon, value.nemesisName, undefined, profile);
giveNemesisWeaponRecipe(
inventory,
randomWeapon,
value.nemesisName,
undefined,
profile
);
att.push(randomWeapon);
}
}
}
//if (value.petLoc) {
if (profile.petHead) {
giveNemesisPetRecipe(inventory, value.nemesisName, profile);