allbuild commit 8afacee9

This commit is contained in:
Olivier Gagnon 2022-07-26 10:41:04 -04:00
parent 8afacee9e5
commit 214b2645ad
5 changed files with 63 additions and 7 deletions

4
dist/main.bundle.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -229,7 +229,7 @@ export const CONSTANTS: {
InfiniteLoopLimit: 2000, InfiniteLoopLimit: 2000,
Donations: 21, Donations: 22,
LatestUpdate: ` LatestUpdate: `
v2.0.0 - 2022-07-19 Work rework v2.0.0 - 2022-07-19 Work rework

@ -7,6 +7,7 @@ import { Augmentation } from "../../Augmentation/Augmentation";
import { StaticAugmentations } from "../../Augmentation/StaticAugmentations"; import { StaticAugmentations } from "../../Augmentation/StaticAugmentations";
import { Faction } from "../../Faction/Faction"; import { Faction } from "../../Faction/Faction";
import { Factions } from "../../Faction/Factions"; import { Factions } from "../../Faction/Factions";
import { Multipliers } from "../Multipliers";
export function findSleevePurchasableAugs(sleeve: Sleeve, p: IPlayer): Augmentation[] { export function findSleevePurchasableAugs(sleeve: Sleeve, p: IPlayer): Augmentation[] {
// You can only purchase Augmentations that are actually available from // You can only purchase Augmentations that are actually available from
@ -31,7 +32,8 @@ export function findSleevePurchasableAugs(sleeve: Sleeve, p: IPlayer): Augmentat
return false; return false;
} }
const validMults = [ type MultKey = keyof Multipliers;
const validMults: MultKey[] = [
"hacking", "hacking",
"strength", "strength",
"defense", "defense",
@ -50,8 +52,8 @@ export function findSleevePurchasableAugs(sleeve: Sleeve, p: IPlayer): Augmentat
"crime_success", "crime_success",
"work_money", "work_money",
]; ];
for (const mult of Object.keys(aug.mults)) { for (const mult of validMults) {
if (validMults.includes(mult)) { if (aug.mults[mult] !== 1) {
return true; return true;
} }
} }

54
src/utils/v2APIBreak.ts Normal file

@ -0,0 +1,54 @@
export const singularity = [
"applyToCompany",
"b1tflum3",
"checkFactionInvitations",
"commitCrime",
"connect",
"createProgram",
"destroyW0r1dD43m0n",
"donateToFaction",
"getAugmentationBasePrice",
"getAugmentationCost",
"getAugmentationPrereq",
"getAugmentationPrice",
"getAugmentationRepReq",
"getAugmentationsFromFaction",
"getAugmentationStats",
"getCompanyFavor",
"getCompanyFavorGain",
"getCompanyRep",
"getCrimeChance",
"getCrimeStats",
"getCurrentServer",
"getDarkwebProgramCost",
"getDarkwebPrograms",
"getFactionFavor",
"getFactionFavorGain",
"getFactionRep",
"getOwnedAugmentations",
"getOwnedSourceFiles",
"getUpgradeHomeCoresCost",
"getUpgradeHomeRamCost",
"goToLocation",
"gymWorkout",
"hospitalize",
"installAugmentations",
"installBackdoor",
"isBusy",
"isFocused",
"joinFaction",
"manualHack",
"purchaseAugmentation",
"purchaseProgram",
"purchaseTor",
"quitJob",
"setFocus",
"softReset",
"stopAction",
"travelToCity",
"universityCourse",
"upgradeHomeCores",
"upgradeHomeRam",
"workForCompany",
"workForFaction",
];