From a141431e0802bd301fedc82e211f38f2d975e476 Mon Sep 17 00:00:00 2001 From: "T.J. Eckman" Date: Mon, 30 Jan 2023 19:15:56 -0500 Subject: [PATCH] CORP: Move Sale after Export in Corp States --- src/Corporation/data/Constants.ts | 2 +- src/ScriptEditor/NetscriptDefinitions.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Corporation/data/Constants.ts b/src/Corporation/data/Constants.ts index ba7d1ecf9..edacf2405 100644 --- a/src/Corporation/data/Constants.ts +++ b/src/Corporation/data/Constants.ts @@ -15,7 +15,7 @@ import { IndustryType, EmployeePositions } from "./Enums"; // This structure + import * as corpConstants allows easier type definitions for individual properties. /** Names of all corporation game states */ -export const stateNames: CorpStateName[] = ["START", "PURCHASE", "PRODUCTION", "SALE", "EXPORT"], +export const stateNames: CorpStateName[] = ["START", "PURCHASE", "PRODUCTION", "EXPORT", "SALE"], // TODO: remove IndustryType and EmployeePositions enums and just use the typed strings. /** Names of all corporation employee positions */ employeePositions: CorpEmployeePosition[] = Object.values(EmployeePositions), diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 844776af8..04e6e9252 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -7604,7 +7604,7 @@ interface CorporationInfo { dividendTax: number; /** Your earnings as a shareholder per second this cycle */ dividendEarnings: number; - /** State of the corporation. Possible states are START, PURCHASE, PRODUCTION, SALE, EXPORT. */ + /** State of the corporation. Possible states are START, PURCHASE, PRODUCTION, EXPORT, SALE. */ state: string; /** Array of all division names */ divisions: string[]; @@ -7662,7 +7662,7 @@ interface CorpConstants { minEmployeeDecay: number; } /** @public */ -type CorpStateName = "START" | "PURCHASE" | "PRODUCTION" | "SALE" | "EXPORT"; +type CorpStateName = "START" | "PURCHASE" | "PRODUCTION" | "EXPORT" | "SALE"; /** @public */ type CorpMaterialName =