summaryrefslogtreecommitdiff
path: root/data.ts
diff options
context:
space:
mode:
authorFrans Bongers <fransbongers@macbookpro.home>2025-03-19 22:09:20 +0100
committerFrans Bongers <fransbongers@macbookpro.home>2025-03-19 22:09:20 +0100
commit1738326b21f02a1a4cd246b85026bc3f846511df (patch)
treebf3803f5c1c7cc815a5f8614772d32c445c051af /data.ts
parent0fae284f79b1c934e58214cf5f88cad4cab6b03b (diff)
downloadland-and-freedom-1738326b21f02a1a4cd246b85026bc3f846511df.tar.gz
refactor: FactionId to number
Diffstat (limited to 'data.ts')
-rw-r--r--data.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/data.ts b/data.ts
index 424fcc7..98ee2be 100644
--- a/data.ts
+++ b/data.ts
@@ -1,4 +1,4 @@
-import { Card, Effect, FactionId, FrontId, Player, StaticData } from './types';
+import { Card, Effect, FactionId, FascistId, FrontId, Player, StaticData } from './types';
const LIBERTY = 0;
const COLLECTIVIZATION = 1;
@@ -21,8 +21,8 @@ const ARAGON = 0;
const MADRID = 1;
const NORTHERN = 2;
const SOUTHERN = 3;
-const CLOSEST_TO_DEFEAT = 'd';
-const CLOSEST_TO_VICTORY = 'v';
+const CLOSEST_TO_DEFEAT = 4;
+const CLOSEST_TO_VICTORY = 5;
const FRONTS: FrontId[] = [ARAGON, MADRID, NORTHERN, SOUTHERN];
const TOWARDS_CENTER = 10;
@@ -33,10 +33,10 @@ const SELF = 'self';
const OTHER_PLAYERS = 'other';
const TRASH = 'trash';
-const ANARCHISTS_ID: FactionId = 'a';
-const COMMUNISTS_ID: FactionId = 'c';
-const FASCIST_ID = 'f';
-const MODERATES_ID: FactionId = 'm';
+const ANARCHISTS_ID: FactionId = 0;
+const COMMUNISTS_ID: FactionId = 1;
+const FASCIST_ID: FascistId = 3;
+const MODERATES_ID: FactionId = 2;
const ANARCHIST = 'Anarchist' as Player;
const COMMUNIST = 'Communist' as Player;