mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
add corp get functions, fix coffee hover text
This commit is contained in:
parent
39cf0cb57f
commit
a88f36e2f4
@ -26,6 +26,10 @@ export const CorporationConstants: {
|
|||||||
BaseMaxProducts: number;
|
BaseMaxProducts: number;
|
||||||
AllCorporationStates: string[];
|
AllCorporationStates: string[];
|
||||||
AllMaterials: string[];
|
AllMaterials: string[];
|
||||||
|
AllIndustryTypes: string[];
|
||||||
|
AllUnlocks: string[];
|
||||||
|
AllUpgrades: string[];
|
||||||
|
AllResearch: string[];
|
||||||
FundingRoundShares: number[];
|
FundingRoundShares: number[];
|
||||||
FundingRoundMultiplier: number[];
|
FundingRoundMultiplier: number[];
|
||||||
AvgProfitLength: number;
|
AvgProfitLength: number;
|
||||||
@ -82,6 +86,65 @@ export const CorporationConstants: {
|
|||||||
"AI Cores",
|
"AI Cores",
|
||||||
"Real Estate",
|
"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],
|
FundingRoundShares: [0.1, 0.35, 0.25, 0.2],
|
||||||
FundingRoundMultiplier: [4, 3, 3, 2.5],
|
FundingRoundMultiplier: [4, 3, 3, 2.5],
|
||||||
|
|
||||||
|
@ -459,7 +459,7 @@ export function IndustryOffice(props: IProps): React.ReactElement {
|
|||||||
{!division.hasResearch("AutoBrew") && (
|
{!division.hasResearch("AutoBrew") && (
|
||||||
<>
|
<>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={<Typography>Throw an office party to increase your employee's morale and happiness</Typography>}
|
title={<Typography>Provide your employees with coffee, increasing their energy by 5%</Typography>}
|
||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
<Button
|
<Button
|
||||||
|
@ -871,6 +871,31 @@ export function NetscriptCorporation(player: IPlayer): InternalAPI<NSCorporation
|
|||||||
return {
|
return {
|
||||||
...warehouseAPI,
|
...warehouseAPI,
|
||||||
...officeAPI,
|
...officeAPI,
|
||||||
|
getMaterialNames:
|
||||||
|
(ctx: NetscriptContext) =>
|
||||||
|
(): string[] =>{
|
||||||
|
return CorporationConstants.AllMaterials;
|
||||||
|
},
|
||||||
|
getIndustryTypes:
|
||||||
|
(ctx: NetscriptContext) =>
|
||||||
|
(): string[] =>{
|
||||||
|
return CorporationConstants.AllIndustryTypes;
|
||||||
|
},
|
||||||
|
getUnlockables:
|
||||||
|
(ctx: NetscriptContext) =>
|
||||||
|
(): string[] =>{
|
||||||
|
return CorporationConstants.AllUnlocks;
|
||||||
|
},
|
||||||
|
getUpgradeNames:
|
||||||
|
(ctx: NetscriptContext) =>
|
||||||
|
(): string[] =>{
|
||||||
|
return CorporationConstants.AllUpgrades;
|
||||||
|
},
|
||||||
|
getResarchNames:
|
||||||
|
(ctx: NetscriptContext) =>
|
||||||
|
(): string[] =>{
|
||||||
|
return CorporationConstants.AllResearch;
|
||||||
|
},
|
||||||
expandIndustry:
|
expandIndustry:
|
||||||
(ctx: NetscriptContext) =>
|
(ctx: NetscriptContext) =>
|
||||||
(_industryName: unknown, _divisionName: unknown): void => {
|
(_industryName: unknown, _divisionName: unknown): void => {
|
||||||
|
25
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
25
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -6920,6 +6920,31 @@ export interface Corporation extends WarehouseAPI, OfficeAPI {
|
|||||||
* @returns An offer of investment
|
* @returns An offer of investment
|
||||||
*/
|
*/
|
||||||
getInvestmentOffer(): InvestmentOffer;
|
getInvestmentOffer(): InvestmentOffer;
|
||||||
|
/**
|
||||||
|
* Get list of materials
|
||||||
|
* @returns material names
|
||||||
|
*/
|
||||||
|
getMaterialNames():string[];
|
||||||
|
/**
|
||||||
|
* Get list of industry types
|
||||||
|
* @returns industry names
|
||||||
|
*/
|
||||||
|
getIndustryTypes():string[];
|
||||||
|
/**
|
||||||
|
* Get list of one-time unlockable upgrades
|
||||||
|
* @returns unlockable upgrades names
|
||||||
|
*/
|
||||||
|
getUnlockables():string[];
|
||||||
|
/**
|
||||||
|
* Get list of upgrade names
|
||||||
|
* @returns upgrade names
|
||||||
|
*/
|
||||||
|
getUpgradeNames():string[];
|
||||||
|
/**
|
||||||
|
* Get list of research names
|
||||||
|
* @returns research names
|
||||||
|
*/
|
||||||
|
getResarchNames():string[];
|
||||||
/**
|
/**
|
||||||
* Accept investment based on you companies current valuation
|
* Accept investment based on you companies current valuation
|
||||||
* @remarks
|
* @remarks
|
||||||
|
Loading…
Reference in New Issue
Block a user