fixing other commits after rebase

This commit is contained in:
Snarling 2022-08-09 18:25:02 -04:00
parent 648b7e84bf
commit ea7c2c4981
4 changed files with 21 additions and 26 deletions

@ -151,7 +151,7 @@ const positive = [
"patient",
"dynamic",
"loyal",
"straightforward"
"straightforward",
];
const negative = [

@ -346,6 +346,11 @@ const grafting = {
};
const corporation = {
getMaterialNames: 0,
getIndustryTypes: 0,
getUnlockables: 0,
getUpgradeNames: 0,
getResearchNames: 0,
createCorporation: 0,
hasUnlockUpgrade: 0,
getUnlockUpgradeCost: 0,

@ -873,29 +873,19 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
return {
...warehouseAPI,
...officeAPI,
getMaterialNames:
(ctx: NetscriptContext) =>
(): string[] =>{
getMaterialNames: () => (): string[] => {
return CorporationConstants.AllMaterials;
},
getIndustryTypes:
(ctx: NetscriptContext) =>
(): string[] =>{
getIndustryTypes: () => (): string[] => {
return CorporationConstants.AllIndustryTypes;
},
getUnlockables:
(ctx: NetscriptContext) =>
(): string[] =>{
getUnlockables: () => (): string[] => {
return CorporationConstants.AllUnlocks;
},
getUpgradeNames:
(ctx: NetscriptContext) =>
(): string[] =>{
getUpgradeNames: () => (): string[] => {
return CorporationConstants.AllUpgrades;
},
getResarchNames:
(ctx: NetscriptContext) =>
(): string[] =>{
getResearchNames: () => (): string[] => {
return CorporationConstants.AllResearch;
},
expandIndustry:

@ -6924,27 +6924,27 @@ export interface Corporation extends WarehouseAPI, OfficeAPI {
* Get list of materials
* @returns material names
*/
getMaterialNames():string[];
getMaterialNames(): string[];
/**
* Get list of industry types
* @returns industry names
*/
getIndustryTypes():string[];
getIndustryTypes(): string[];
/**
* Get list of one-time unlockable upgrades
* @returns unlockable upgrades names
*/
getUnlockables():string[];
getUnlockables(): string[];
/**
* Get list of upgrade names
* @returns upgrade names
*/
getUpgradeNames():string[];
getUpgradeNames(): string[];
/**
* Get list of research names
* @returns research names
*/
getResarchNames():string[];
getResearchNames(): string[];
/**
* Accept investment based on you companies current valuation
* @remarks