From b00301f4e196643f311aa4f6a20221cb3013ca49 Mon Sep 17 00:00:00 2001 From: Undeemiss Date: Mon, 9 May 2022 14:45:19 -0500 Subject: [PATCH] Renamed BN mult CorporationSoftCap to CorporationSoftcap Replaced all instances of "CorporationSoftCap" in src/ with "CorporationSoftcap". If files outside of src/ must be changed, I do not know what those would be. --- src/BitNode/BitNode.tsx | 20 +++++++++---------- src/BitNode/BitNodeMultipliers.ts | 2 +- .../ui/BitnodeMultipliersDescription.tsx | 6 +++--- src/Corporation/Corporation.tsx | 2 +- src/Locations/ui/SpecialLocation.tsx | 2 +- src/NetscriptFunctions/Corporation.ts | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/BitNode/BitNode.tsx b/src/BitNode/BitNode.tsx index 6b3365a4a..3aeea62f9 100644 --- a/src/BitNode/BitNode.tsx +++ b/src/BitNode/BitNode.tsx @@ -488,7 +488,7 @@ export const defaultMultipliers: IBitNodeMultipliers = { FourSigmaMarketDataApiCost: 1, CorporationValuation: 1, - CorporationSoftCap: 1, + CorporationSoftcap: 1, BladeburnerRank: 1, BladeburnerSkillCost: 1, @@ -523,7 +523,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie StaneksGiftPowerMultiplier: 2, StaneksGiftExtraSize: -6, PurchasedServerSoftcap: 1.3, - CorporationSoftCap: 0.9, + CorporationSoftcap: 0.9, WorldDaemonDifficulty: 5, }); } @@ -609,7 +609,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie StaneksGiftPowerMultiplier: 0.5, StaneksGiftExtraSize: 2, GangSoftcap: 0.7, - CorporationSoftCap: 0.9, + CorporationSoftcap: 0.9, WorldDaemonDifficulty: 2, GangUniqueAugs: 0.2, }); @@ -637,7 +637,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie StaneksGiftPowerMultiplier: 0.9, StaneksGiftExtraSize: -1, GangSoftcap: 0.7, - CorporationSoftCap: 0.9, + CorporationSoftcap: 0.9, WorldDaemonDifficulty: 2, GangUniqueAugs: 0.2, }); @@ -657,7 +657,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie StaneksGiftExtraSize: -99, PurchasedServerSoftcap: 4, GangSoftcap: 0, - CorporationSoftCap: 0, + CorporationSoftcap: 0, GangUniqueAugs: 0, }); } @@ -685,7 +685,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie StaneksGiftPowerMultiplier: 0.5, StaneksGiftExtraSize: 2, GangSoftcap: 0.8, - CorporationSoftCap: 0.7, + CorporationSoftcap: 0.7, WorldDaemonDifficulty: 2, GangUniqueAugs: 0.25, }); @@ -717,7 +717,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie StaneksGiftExtraSize: -3, PurchasedServerSoftcap: 1.1, GangSoftcap: 0.9, - CorporationSoftCap: 0.9, + CorporationSoftcap: 0.9, WorldDaemonDifficulty: 2, GangUniqueAugs: 0.25, }); @@ -741,7 +741,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie FourSigmaMarketDataCost: 4, FourSigmaMarketDataApiCost: 4, PurchasedServerSoftcap: 2, - CorporationSoftCap: 0.9, + CorporationSoftcap: 0.9, WorldDaemonDifficulty: 1.5, GangUniqueAugs: 0.75, }); @@ -809,7 +809,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie StaneksGiftPowerMultiplier: inc, StaneksGiftExtraSize: inc, GangSoftcap: 0.8, - CorporationSoftCap: 0.8, + CorporationSoftcap: 0.8, WorldDaemonDifficulty: inc, GangUniqueAugs: dec, @@ -854,7 +854,7 @@ export function getBitNodeMultipliers(n: number, lvl: number): IBitNodeMultiplie StaneksGiftPowerMultiplier: 2, StaneksGiftExtraSize: 1, GangSoftcap: 0.3, - CorporationSoftCap: 0.3, + CorporationSoftcap: 0.3, WorldDaemonDifficulty: 3, GangUniqueAugs: 0.1, }); diff --git a/src/BitNode/BitNodeMultipliers.ts b/src/BitNode/BitNodeMultipliers.ts index a5d4c7bc7..3cf7ebaee 100644 --- a/src/BitNode/BitNodeMultipliers.ts +++ b/src/BitNode/BitNodeMultipliers.ts @@ -242,7 +242,7 @@ export interface IBitNodeMultipliers { /** * Influences corporation dividends. */ - CorporationSoftCap: number; + CorporationSoftcap: number; // Index signature [key: string]: number; diff --git a/src/BitNode/ui/BitnodeMultipliersDescription.tsx b/src/BitNode/ui/BitnodeMultipliersDescription.tsx index 384cd094f..2f787a4be 100644 --- a/src/BitNode/ui/BitnodeMultipliersDescription.tsx +++ b/src/BitNode/ui/BitnodeMultipliersDescription.tsx @@ -528,7 +528,7 @@ function CorporationMults({ n, mults }: IMultsProps): React.ReactElement { if (n !== 3 && player.sourceFileLvl(3) === 0) return <>; // is it empty check if ( - mults.CorporationSoftCap === defaultMultipliers.CorporationSoftCap && + mults.CorporationSoftcap === defaultMultipliers.CorporationSoftcap && mults.CorporationValuation === defaultMultipliers.CorporationValuation ) return <>; @@ -538,8 +538,8 @@ function CorporationMults({ n, mults }: IMultsProps): React.ReactElement {
Corporation: - {mults.CorporationSoftCap !== defaultMultipliers.CorporationSoftCap ? ( - Softcap: {mults.CorporationSoftCap.toFixed(3)} + {mults.CorporationSoftcap !== defaultMultipliers.CorporationSoftcap ? ( + Softcap: {mults.CorporationSoftcap.toFixed(3)} ) : ( <> )} diff --git a/src/Corporation/Corporation.tsx b/src/Corporation/Corporation.tsx index 797ddbd98..ace40ae72 100644 --- a/src/Corporation/Corporation.tsx +++ b/src/Corporation/Corporation.tsx @@ -159,7 +159,7 @@ export class Corporation { if (this.unlockUpgrades[6] === 1) { upgrades += 0.1; } - return Math.pow(dividends, BitNodeMultipliers.CorporationSoftCap + upgrades); + return Math.pow(dividends, BitNodeMultipliers.CorporationSoftcap + upgrades); } determineValuation(): number { diff --git a/src/Locations/ui/SpecialLocation.tsx b/src/Locations/ui/SpecialLocation.tsx index f4cadd5ec..cd0898608 100644 --- a/src/Locations/ui/SpecialLocation.tsx +++ b/src/Locations/ui/SpecialLocation.tsx @@ -317,7 +317,7 @@ export function SpecialLocation(props: IProps): React.ReactElement { return renderGrafting(); } case LocationName.Sector12CityHall: { - return (BitNodeMultipliers.CorporationSoftCap < 0.15 && <>) || ; + return (BitNodeMultipliers.CorporationSoftcap < 0.15 && <>) || ; } case LocationName.Sector12NSA: { return renderBladeburner(); diff --git a/src/NetscriptFunctions/Corporation.ts b/src/NetscriptFunctions/Corporation.ts index 2c7642e88..2c4257901 100644 --- a/src/NetscriptFunctions/Corporation.ts +++ b/src/NetscriptFunctions/Corporation.ts @@ -78,7 +78,7 @@ export function NetscriptCorporation( if (!player.canAccessCorporation() || player.hasCorporation()) return false; if (!corporationName) return false; if (player.bitNodeN !== 3 && !selfFund) throw new Error("cannot use seed funds outside of BitNode 3"); - if (BitNodeMultipliers.CorporationSoftCap < 0.15) + if (BitNodeMultipliers.CorporationSoftcap < 0.15) throw new Error(`You cannot create a corporation in Bitnode ${player.bitNodeN}`); if (selfFund) {