mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Make 3.3 unlock all corp APIs
This commit is contained in:
parent
8b69fd7faa
commit
8729b54a9c
@ -1,4 +1,5 @@
|
|||||||
import { Corporation } from "../../Corporation/Corporation";
|
import { Corporation } from "../../Corporation/Corporation";
|
||||||
|
import { CorporationUnlockUpgrades } from "../../Corporation/data/CorporationUnlockUpgrades";
|
||||||
import { SourceFileFlags } from "../../SourceFile/SourceFileFlags";
|
import { SourceFileFlags } from "../../SourceFile/SourceFileFlags";
|
||||||
import { IPlayer } from "../IPlayer";
|
import { IPlayer } from "../IPlayer";
|
||||||
|
|
||||||
@ -18,5 +19,13 @@ export function startCorporation(this: IPlayer, corpName: string, additionalShar
|
|||||||
name: corpName,
|
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;
|
this.corporation.totalShares += additionalShares;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user