BITNODE: IPvGO territory control strategy game (#934)

This commit is contained in:
Michael Ficocelli
2023-12-26 11:45:27 -05:00
committed by GitHub
parent c6141f2adf
commit 7ef12a0323
68 changed files with 7833 additions and 17 deletions
@@ -51,6 +51,8 @@ import { achievements } from "../../Achievements/Achievements";
import { isCompanyWork } from "../../Work/CompanyWork";
import { isMember } from "../../utils/EnumHelper";
import { getGoPlayerStartingState } from "../../Go/boardState/goConstants";
import { resetGoNodePower } from "../../Go/effects/effect";
export function init(this: PlayerObject): void {
/* Initialize Player's home computer */
@@ -112,6 +114,8 @@ export function prestigeAugmentation(this: PlayerObject): void {
this.sleeves.forEach((sleeve) => (sleeve.shock <= 0 ? sleeve.synchronize() : sleeve.shockRecovery()));
resetGoNodePower(this);
this.lastUpdate = new Date().getTime();
// Statistics Trackers
@@ -148,6 +152,7 @@ export function prestigeSourceFile(this: PlayerObject): void {
resetGangs();
this.corporation = null;
this.bladeburner = null;
this.go = getGoPlayerStartingState();
// Reset Stock market
this.hasWseAccount = false;