mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
CORPORATION: add issueNewSharesCooldown and makesMaterial (#774)
This commit is contained in:
parent
25dae7ec8b
commit
bba2ccd83a
13
markdown/bitburner.corpindustrydata.makesmaterials.md
Normal file
13
markdown/bitburner.corpindustrydata.makesmaterials.md
Normal file
@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CorpIndustryData](./bitburner.corpindustrydata.md) > [makesMaterials](./bitburner.corpindustrydata.makesmaterials.md)
|
||||
|
||||
## CorpIndustryData.makesMaterials property
|
||||
|
||||
Whether the industry of this division is capable of producing materials
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
makesMaterials: boolean;
|
||||
```
|
13
markdown/bitburner.corpindustrydata.makesproducts.md
Normal file
13
markdown/bitburner.corpindustrydata.makesproducts.md
Normal file
@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CorpIndustryData](./bitburner.corpindustrydata.md) > [makesProducts](./bitburner.corpindustrydata.makesproducts.md)
|
||||
|
||||
## CorpIndustryData.makesProducts property
|
||||
|
||||
Whether the industry of this division is capable of developing and producing products
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
makesProducts: boolean;
|
||||
```
|
@ -20,7 +20,9 @@ interface CorpIndustryData
|
||||
| [aiCoreFactor?](./bitburner.corpindustrydata.aicorefactor.md) | | number | _(Optional)_ AI Cores factor |
|
||||
| [description](./bitburner.corpindustrydata.description.md) | | string | |
|
||||
| [hardwareFactor?](./bitburner.corpindustrydata.hardwarefactor.md) | | number | _(Optional)_ Hardware factor |
|
||||
| [producedMaterials?](./bitburner.corpindustrydata.producedmaterials.md) | | [CorpMaterialName](./bitburner.corpmaterialname.md)<!-- -->\[\] | _(Optional)_ |
|
||||
| [makesMaterials](./bitburner.corpindustrydata.makesmaterials.md) | | boolean | Whether the industry of this division is capable of producing materials |
|
||||
| [makesProducts](./bitburner.corpindustrydata.makesproducts.md) | | boolean | Whether the industry of this division is capable of developing and producing products |
|
||||
| [producedMaterials?](./bitburner.corpindustrydata.producedmaterials.md) | | [CorpMaterialName](./bitburner.corpmaterialname.md)<!-- -->\[\] | _(Optional)_ Array of Materials produced |
|
||||
| [product?](./bitburner.corpindustrydata.product.md) | | [CorpProductData](./bitburner.corpproductdata.md) | _(Optional)_ |
|
||||
| [realEstateFactor?](./bitburner.corpindustrydata.realestatefactor.md) | | number | _(Optional)_ Real estate factor |
|
||||
| [recommendStarting](./bitburner.corpindustrydata.recommendstarting.md) | | boolean | |
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
## CorpIndustryData.producedMaterials property
|
||||
|
||||
Array of Materials produced
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
|
13
markdown/bitburner.corporationinfo.issuenewsharescooldown.md
Normal file
13
markdown/bitburner.corporationinfo.issuenewsharescooldown.md
Normal file
@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CorporationInfo](./bitburner.corporationinfo.md) > [issueNewSharesCooldown](./bitburner.corporationinfo.issuenewsharescooldown.md)
|
||||
|
||||
## CorporationInfo.issueNewSharesCooldown property
|
||||
|
||||
Cooldown until new shares can be issued
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
issueNewSharesCooldown: number;
|
||||
```
|
@ -23,6 +23,7 @@ interface CorporationInfo
|
||||
| [expenses](./bitburner.corporationinfo.expenses.md) | | number | Expenses per second this cycle |
|
||||
| [funds](./bitburner.corporationinfo.funds.md) | | number | Funds available |
|
||||
| [issuedShares](./bitburner.corporationinfo.issuedshares.md) | | number | Amount of acquirable shares. |
|
||||
| [issueNewSharesCooldown](./bitburner.corporationinfo.issuenewsharescooldown.md) | | number | Cooldown until new shares can be issued |
|
||||
| [name](./bitburner.corporationinfo.name.md) | | string | Name of the corporation |
|
||||
| [numShares](./bitburner.corporationinfo.numshares.md) | | number | Amount of share owned |
|
||||
| [public](./bitburner.corporationinfo.public.md) | | boolean | Indicating if the company is public |
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
## Division.makesProducts property
|
||||
|
||||
Whether the industry this division is in is capable of making products
|
||||
Whether the industry of this division is capable of developing and producing products
|
||||
|
||||
**Signature:**
|
||||
|
||||
|
@ -20,7 +20,7 @@ interface Division
|
||||
| [cities](./bitburner.division.cities.md) | | [CityName](./bitburner.cityname.md)<!-- -->\[\] | Cities in which this division has expanded |
|
||||
| [lastCycleExpenses](./bitburner.division.lastcycleexpenses.md) | | number | Expenses last cycle |
|
||||
| [lastCycleRevenue](./bitburner.division.lastcyclerevenue.md) | | number | Revenue last cycle |
|
||||
| [makesProducts](./bitburner.division.makesproducts.md) | | boolean | Whether the industry this division is in is capable of making products |
|
||||
| [makesProducts](./bitburner.division.makesproducts.md) | | boolean | Whether the industry of this division is capable of developing and producing products |
|
||||
| [maxProducts](./bitburner.division.maxproducts.md) | | number | How many products this division can support |
|
||||
| [name](./bitburner.division.name.md) | | string | Name of the division |
|
||||
| [numAdVerts](./bitburner.division.numadverts.md) | | number | Number of times AdVert has been bought |
|
||||
|
@ -33,7 +33,7 @@ export class Division {
|
||||
// Not included in save file. Just used for tracking whether research tree has been updated since game load.
|
||||
treeInitialized = false;
|
||||
|
||||
//An array of the name of materials being produced
|
||||
/** An array of the name of materials being produced */
|
||||
producedMaterials: CorpMaterialName[] = [];
|
||||
|
||||
products = new JSONMap<string, Product>();
|
||||
@ -101,7 +101,7 @@ export class Division {
|
||||
// Loading data based on this division's industry type
|
||||
const data = IndustriesData[this.type];
|
||||
this.startingCost = data.startingCost;
|
||||
this.makesProducts = data.product ? true : false;
|
||||
this.makesProducts = data.makesProducts;
|
||||
this.realEstateFactor = data.realEstateFactor ?? 0;
|
||||
this.researchFactor = data.scienceFactor ?? 0;
|
||||
this.hardwareFactor = data.hardwareFactor ?? 0;
|
||||
|
@ -17,6 +17,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
advertisingFactor: 0.04,
|
||||
requiredMaterials: { Water: 0.5, Chemicals: 0.2 },
|
||||
producedMaterials: ["Plants", "Food"],
|
||||
makesMaterials: true,
|
||||
makesProducts: false,
|
||||
},
|
||||
[IndustryType.Spring]: {
|
||||
startingCost: 10e9,
|
||||
@ -30,6 +32,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
advertisingFactor: 0.03,
|
||||
requiredMaterials: {},
|
||||
producedMaterials: ["Water"],
|
||||
makesMaterials: true,
|
||||
makesProducts: false,
|
||||
},
|
||||
[IndustryType.Refinery]: {
|
||||
startingCost: 50e9,
|
||||
@ -43,6 +47,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
advertisingFactor: 0.04,
|
||||
requiredMaterials: { Ore: 1 },
|
||||
producedMaterials: ["Metal"],
|
||||
makesMaterials: true,
|
||||
makesProducts: false,
|
||||
},
|
||||
[IndustryType.Chemical]: {
|
||||
startingCost: 70e9,
|
||||
@ -56,6 +62,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
advertisingFactor: 0.07,
|
||||
requiredMaterials: { Plants: 1, Water: 0.5 },
|
||||
producedMaterials: ["Chemicals"],
|
||||
makesMaterials: true,
|
||||
makesProducts: false,
|
||||
},
|
||||
[IndustryType.Computers]: {
|
||||
startingCost: 500e9,
|
||||
@ -81,6 +89,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
advertisingFactor: 0.17,
|
||||
requiredMaterials: { Metal: 2 },
|
||||
producedMaterials: ["Hardware"],
|
||||
makesMaterials: true,
|
||||
makesProducts: true,
|
||||
},
|
||||
[IndustryType.Fishing]: {
|
||||
startingCost: 80e9,
|
||||
@ -94,6 +104,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
advertisingFactor: 0.08,
|
||||
requiredMaterials: { Plants: 0.5 },
|
||||
producedMaterials: ["Food"],
|
||||
makesMaterials: true,
|
||||
makesProducts: false,
|
||||
},
|
||||
[IndustryType.Restaurant]: {
|
||||
startingCost: 10e9,
|
||||
@ -116,6 +128,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
advertisingFactor: 0.25,
|
||||
realEstateFactor: 0.05,
|
||||
requiredMaterials: { Food: 0.5, Water: 0.5 },
|
||||
makesMaterials: false,
|
||||
makesProducts: true,
|
||||
},
|
||||
[IndustryType.Healthcare]: {
|
||||
startingCost: 750e9,
|
||||
@ -140,6 +154,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
robotFactor: 0.1,
|
||||
aiCoreFactor: 0.1,
|
||||
requiredMaterials: { Robots: 10, "AI Cores": 5, Drugs: 5, Food: 5 },
|
||||
makesMaterials: false,
|
||||
makesProducts: true,
|
||||
},
|
||||
[IndustryType.Mining]: {
|
||||
startingCost: 300e9,
|
||||
@ -153,6 +169,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
advertisingFactor: 0.06,
|
||||
requiredMaterials: { Hardware: 0.1 },
|
||||
producedMaterials: ["Ore", "Minerals"],
|
||||
makesMaterials: true,
|
||||
makesProducts: false,
|
||||
},
|
||||
[IndustryType.Pharmaceutical]: {
|
||||
startingCost: 200e9,
|
||||
@ -178,6 +196,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
advertisingFactor: 0.16,
|
||||
requiredMaterials: { Chemicals: 2, Water: 0.5 },
|
||||
producedMaterials: ["Drugs"],
|
||||
makesMaterials: true,
|
||||
makesProducts: true,
|
||||
},
|
||||
[IndustryType.RealEstate]: {
|
||||
startingCost: 600e9,
|
||||
@ -202,6 +222,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
hardwareFactor: 0.05,
|
||||
requiredMaterials: { Metal: 5, Plants: 1, Water: 2, Hardware: 4 },
|
||||
producedMaterials: ["Real Estate"],
|
||||
makesMaterials: true,
|
||||
makesProducts: true,
|
||||
},
|
||||
[IndustryType.Robotics]: {
|
||||
startingCost: 1e12,
|
||||
@ -227,6 +249,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
hardwareFactor: 0.19,
|
||||
requiredMaterials: { Hardware: 5, "AI Cores": 3 },
|
||||
producedMaterials: ["Robots"],
|
||||
makesMaterials: true,
|
||||
makesProducts: true,
|
||||
},
|
||||
[IndustryType.Software]: {
|
||||
startingCost: 25e9,
|
||||
@ -252,6 +276,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
robotFactor: 0.05,
|
||||
requiredMaterials: { Hardware: 0.5 },
|
||||
producedMaterials: ["AI Cores"],
|
||||
makesMaterials: true,
|
||||
makesProducts: true,
|
||||
},
|
||||
[IndustryType.Tobacco]: {
|
||||
startingCost: 20e9,
|
||||
@ -274,6 +300,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
aiCoreFactor: 0.15,
|
||||
advertisingFactor: 0.2,
|
||||
requiredMaterials: { Plants: 1 },
|
||||
makesMaterials: false,
|
||||
makesProducts: true,
|
||||
},
|
||||
[IndustryType.Water]: {
|
||||
startingCost: 150e9,
|
||||
@ -286,6 +314,8 @@ export const IndustriesData: Record<IndustryType, CorpIndustryData> = {
|
||||
advertisingFactor: 0.08,
|
||||
requiredMaterials: { Hardware: 0.1 },
|
||||
producedMaterials: ["Water"],
|
||||
makesMaterials: true,
|
||||
makesProducts: false,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -769,6 +769,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
|
||||
numShares: corporation.numShares,
|
||||
shareSaleCooldown: corporation.shareSaleCooldown,
|
||||
issuedShares: corporation.issuedShares,
|
||||
issueNewSharesCooldown: corporation.issueNewSharesCooldown,
|
||||
sharePrice: corporation.sharePrice,
|
||||
dividendRate: corporation.dividendRate,
|
||||
dividendTax: corporation.dividendTax,
|
||||
|
9
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
9
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -7490,7 +7490,12 @@ interface CorpIndustryData {
|
||||
aiCoreFactor?: number;
|
||||
/** Advertising factor (affects sales) */
|
||||
advertisingFactor?: number;
|
||||
/** Array of Materials produced */
|
||||
producedMaterials?: CorpMaterialName[];
|
||||
/** Whether the industry of this division is capable of producing materials */
|
||||
makesMaterials: boolean;
|
||||
/** Whether the industry of this division is capable of developing and producing products */
|
||||
makesProducts: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -7516,6 +7521,8 @@ interface CorporationInfo {
|
||||
shareSaleCooldown: number;
|
||||
/** Amount of acquirable shares. */
|
||||
issuedShares: number;
|
||||
/** Cooldown until new shares can be issued */
|
||||
issueNewSharesCooldown: number;
|
||||
/** Price of the shares */
|
||||
sharePrice: number;
|
||||
/** Fraction of profits issued as dividends */
|
||||
@ -7852,7 +7859,7 @@ interface Division {
|
||||
cities: CityName[];
|
||||
/** Names of Products developed by this division */
|
||||
products: string[];
|
||||
/** Whether the industry this division is in is capable of making products */
|
||||
/** Whether the industry of this division is capable of developing and producing products */
|
||||
makesProducts: boolean;
|
||||
/** How many products this division can support */
|
||||
maxProducts: number;
|
||||
|
Loading…
Reference in New Issue
Block a user