Compare commits
2 Commits
7e13bcf8a9
...
e960e7788f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e960e7788f | ||
|
|
e9b985e9be |
@ -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];
|
||||
|
||||
@ -874,13 +874,19 @@ 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);
|
||||
att.push(randomWeapon);
|
||||
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
|
||||
);
|
||||
att.push(randomWeapon);
|
||||
}
|
||||
}
|
||||
}
|
||||
//if (value.petLoc) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user