bitburner-src/src/Gang/AllGangs.ts

78 lines
1.5 KiB
TypeScript
Raw Normal View History

2022-04-07 01:30:08 +02:00
import { FactionNames } from "../Faction/data/FactionNames";
2021-09-25 20:42:57 +02:00
import { Reviver } from "../utils/JSONReviver";
interface GangTerritory {
2021-09-05 01:09:30 +02:00
power: number;
territory: number;
}
export let AllGangs: {
2021-09-05 01:09:30 +02:00
[key: string]: GangTerritory;
} = {
[FactionNames.SlumSnakes]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.Tetrads]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.TheSyndicate]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.TheDarkArmy]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.SpeakersForTheDead]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.NiteSec]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.TheBlackHand]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
};
export function resetGangs(): void {
AllGangs = {
[FactionNames.SlumSnakes]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.Tetrads]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.TheSyndicate]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.TheDarkArmy]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.SpeakersForTheDead]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.NiteSec]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
[FactionNames.TheBlackHand]: {
2021-09-05 01:09:30 +02:00
power: 1,
territory: 1 / 7,
},
2021-09-05 01:09:30 +02:00
};
}
export function loadAllGangs(saveString: string): void {
2021-09-05 01:09:30 +02:00
AllGangs = JSON.parse(saveString, Reviver);
}