From 8729b54a9cd672c492626c2c07b59520af628406 Mon Sep 17 00:00:00 2001 From: pigalot Date: Tue, 11 Jan 2022 19:42:30 +0000 Subject: [PATCH] Make 3.3 unlock all corp APIs --- .../Player/PlayerObjectCorporationMethods.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/PersonObjects/Player/PlayerObjectCorporationMethods.ts b/src/PersonObjects/Player/PlayerObjectCorporationMethods.ts index c00380606..a1bd6ca93 100644 --- a/src/PersonObjects/Player/PlayerObjectCorporationMethods.ts +++ b/src/PersonObjects/Player/PlayerObjectCorporationMethods.ts @@ -1,4 +1,5 @@ import { Corporation } from "../../Corporation/Corporation"; +import { CorporationUnlockUpgrades } from "../../Corporation/data/CorporationUnlockUpgrades"; import { SourceFileFlags } from "../../SourceFile/SourceFileFlags"; import { IPlayer } from "../IPlayer"; @@ -18,5 +19,13 @@ export function startCorporation(this: IPlayer, corpName: string, additionalShar name: corpName, }); + if (SourceFileFlags[3] === 3) { + const warehouseApi = CorporationUnlockUpgrades["7"][0]; + const OfficeApi = CorporationUnlockUpgrades["8"][0]; + + this.corporation.unlockUpgrades[warehouseApi] = 1; + this.corporation.unlockUpgrades[OfficeApi] = 1; + } + this.corporation.totalShares += additionalShares; }