summaryrefslogtreecommitdiff
path: root/data.js
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.js
parent0fae284f79b1c934e58214cf5f88cad4cab6b03b (diff)
downloadland-and-freedom-1738326b21f02a1a4cd246b85026bc3f846511df.tar.gz
refactor: FactionId to number
Diffstat (limited to 'data.js')
-rw-r--r--data.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/data.js b/data.js
index 58bb00c..7072ad8 100644
--- a/data.js
+++ b/data.js
@@ -36,9 +36,9 @@ const NORTHERN = 2;
exports.NORTHERN = NORTHERN;
const SOUTHERN = 3;
exports.SOUTHERN = SOUTHERN;
-const CLOSEST_TO_DEFEAT = 'd';
+const CLOSEST_TO_DEFEAT = 4;
exports.CLOSEST_TO_DEFEAT = CLOSEST_TO_DEFEAT;
-const CLOSEST_TO_VICTORY = 'v';
+const CLOSEST_TO_VICTORY = 5;
exports.CLOSEST_TO_VICTORY = CLOSEST_TO_VICTORY;
const FRONTS = [ARAGON, MADRID, NORTHERN, SOUTHERN];
exports.FRONTS = FRONTS;
@@ -54,13 +54,13 @@ const OTHER_PLAYERS = 'other';
exports.OTHER_PLAYERS = OTHER_PLAYERS;
const TRASH = 'trash';
exports.TRASH = TRASH;
-const ANARCHISTS_ID = 'a';
+const ANARCHISTS_ID = 0;
exports.ANARCHISTS_ID = ANARCHISTS_ID;
-const COMMUNISTS_ID = 'c';
+const COMMUNISTS_ID = 1;
exports.COMMUNISTS_ID = COMMUNISTS_ID;
-const FASCIST_ID = 'f';
+const FASCIST_ID = 3;
exports.FASCIST_ID = FASCIST_ID;
-const MODERATES_ID = 'm';
+const MODERATES_ID = 2;
exports.MODERATES_ID = MODERATES_ID;
const ANARCHIST = 'Anarchist';
exports.ANARCHIST = ANARCHIST;