mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 01:03:01 +02:00
76 lines
1.4 KiB
TypeScript
76 lines
1.4 KiB
TypeScript
import { FactionName } from "@enums";
|
|
import { Reviver } from "../utils/JSONReviver";
|
|
|
|
interface GangTerritory {
|
|
power: number;
|
|
territory: number;
|
|
}
|
|
|
|
export let AllGangs: Record<string, GangTerritory> = {
|
|
[FactionName.SlumSnakes]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.Tetrads]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.TheSyndicate]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.TheDarkArmy]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.SpeakersForTheDead]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.NiteSec]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.TheBlackHand]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
};
|
|
|
|
export function resetGangs(): void {
|
|
AllGangs = {
|
|
[FactionName.SlumSnakes]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.Tetrads]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.TheSyndicate]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.TheDarkArmy]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.SpeakersForTheDead]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.NiteSec]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
[FactionName.TheBlackHand]: {
|
|
power: 1,
|
|
territory: 1 / 7,
|
|
},
|
|
};
|
|
}
|
|
|
|
export function loadAllGangs(saveString: string): void {
|
|
AllGangs = JSON.parse(saveString, Reviver);
|
|
}
|