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";
|
2021-06-16 06:28:20 +02:00
|
|
|
|
|
|
|
interface GangTerritory {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: number;
|
|
|
|
territory: number;
|
2021-06-16 06:28:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export let AllGangs: {
|
2021-09-05 01:09:30 +02:00
|
|
|
[key: string]: GangTerritory;
|
2021-06-16 06:28:20 +02:00
|
|
|
} = {
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.SlumSnakes]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.Tetrads]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.TheSyndicate]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.TheDarkArmy]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.SpeakersForTheDead]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.NiteSec]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.TheBlackHand]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export function resetGangs(): void {
|
|
|
|
AllGangs = {
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.SlumSnakes]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
2021-06-16 06:28:20 +02:00
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.Tetrads]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
2021-06-16 06:28:20 +02:00
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.TheSyndicate]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
2021-06-16 06:28:20 +02:00
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.TheDarkArmy]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
2021-06-16 06:28:20 +02:00
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.SpeakersForTheDead]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
2021-06-16 06:28:20 +02:00
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.NiteSec]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
2021-06-16 06:28:20 +02:00
|
|
|
},
|
2022-03-19 09:09:59 +01:00
|
|
|
[FactionNames.TheBlackHand]: {
|
2021-09-05 01:09:30 +02:00
|
|
|
power: 1,
|
|
|
|
territory: 1 / 7,
|
2021-06-16 06:28:20 +02:00
|
|
|
},
|
2021-09-05 01:09:30 +02:00
|
|
|
};
|
2021-06-16 06:28:20 +02:00
|
|
|
}
|
|
|
|
|
2021-06-16 08:10:47 +02:00
|
|
|
export function loadAllGangs(saveString: string): void {
|
2021-09-05 01:09:30 +02:00
|
|
|
AllGangs = JSON.parse(saveString, Reviver);
|
|
|
|
}
|