From a88f36e2f439a42080a7b665843f7a8fd6bb3fba Mon Sep 17 00:00:00 2001 From: Mughur Date: Sat, 30 Jul 2022 18:57:33 +0300 Subject: [PATCH 1/2] add corp get functions, fix coffee hover text --- src/Corporation/data/Constants.ts | 63 ++++++++++++++++++++++ src/Corporation/ui/IndustryOffice.tsx | 2 +- src/NetscriptFunctions/Corporation.ts | 25 +++++++++ src/ScriptEditor/NetscriptDefinitions.d.ts | 25 +++++++++ 4 files changed, 114 insertions(+), 1 deletion(-) diff --git a/src/Corporation/data/Constants.ts b/src/Corporation/data/Constants.ts index c83e3e0d7..954a596b5 100644 --- a/src/Corporation/data/Constants.ts +++ b/src/Corporation/data/Constants.ts @@ -26,6 +26,10 @@ export const CorporationConstants: { BaseMaxProducts: number; AllCorporationStates: string[]; AllMaterials: string[]; + AllIndustryTypes: string[]; + AllUnlocks: string[]; + AllUpgrades: string[]; + AllResearch: string[]; FundingRoundShares: number[]; FundingRoundMultiplier: number[]; AvgProfitLength: number; @@ -82,6 +86,65 @@ export const CorporationConstants: { "AI Cores", "Real Estate", ], + AllIndustryTypes: [ + "Energy", + "Utilities", + "Agriculture", + "Fishing", + "Mining", + "Food", + "Tobacco", + "Chemical", + "Pharmaceutical", + "Hardware", + "Robotics", + "Software", + "Healthcare", + "RealEstate", + ], + AllUnlocks: [ + "Export", + "Smart Supply", + "Market Research - Demand", + "Market Data - Competition", + "VeChain", + "Shady Accounting", + "Government Partnership", + "Warehouse API", + "Office API", + ], + AllUpgrades: [ + "Smart Factories", + "Smart Storage", + "DreamSense", + "Wilson Analytics", + "Nuoptimal Nootropic Injector Implants", + "Speech Processor Implants", + "Neural Accelerators", + "FocusWires", + "ABC SalesBots", + "Project Insight", + ], + AllResearch: [ + "Hi-Tech R&D Laboratory", + "AutoBrew", + "AutoPartyManager", + "Automatic Drug Administration", + "Bulk Purchasing", + "CPH4 Injections", + "Drones", + "Drones - Assembly", + "Drones - Transport", + "Go-Juice", + "HRBuddy-Recruitment", + "HRBuddy-Training", + "JoyWire", + "Market-TA.I", + "Market-TA.II", + "Overclock", + "Self-Correcting Assemblers", + "Sti.mu", + ], FundingRoundShares: [0.1, 0.35, 0.25, 0.2], FundingRoundMultiplier: [4, 3, 3, 2.5], diff --git a/src/Corporation/ui/IndustryOffice.tsx b/src/Corporation/ui/IndustryOffice.tsx index 17760f36b..87509efce 100644 --- a/src/Corporation/ui/IndustryOffice.tsx +++ b/src/Corporation/ui/IndustryOffice.tsx @@ -459,7 +459,7 @@ export function IndustryOffice(props: IProps): React.ReactElement { {!division.hasResearch("AutoBrew") && ( <> Throw an office party to increase your employee's morale and happiness} + title={Provide your employees with coffee, increasing their energy by 5%} >