extra weapon cheat
This commit is contained in:
parent
52393bcea3
commit
e6d6ec2602
@ -875,6 +875,22 @@ export const addMissionInventoryUpdates = async (
|
||||
const weaponType = manifest.weapons[inventory.Nemesis.WeaponIdx];
|
||||
giveNemesisWeaponRecipe(inventory, weaponType, value.nemesisName, value.weaponLoc, profile);
|
||||
att.push(weaponType);
|
||||
|
||||
if (inventory.nemesisExtraWeaponOnKill && inventory.nemesisExtraWeaponOnKill > 1) {
|
||||
const weaponManifest = manifest.weapons;
|
||||
for (let i = 0; i < inventory.nemesisExtraWeaponOnKill; i++) {
|
||||
const randomIndex = Math.floor(Math.random() * weaponManifest.length);
|
||||
const randomWeapon = weaponManifest[randomIndex];
|
||||
giveNemesisWeaponRecipe(
|
||||
inventory,
|
||||
randomWeapon,
|
||||
value.nemesisName,
|
||||
value.weaponLoc,
|
||||
profile
|
||||
);
|
||||
att.push(randomWeapon);
|
||||
}
|
||||
}
|
||||
}
|
||||
//if (value.petLoc) {
|
||||
if (profile.petHead) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user