summaryrefslogtreecommitdiff
path: root/data.ts
diff options
context:
space:
mode:
authorFrans Bongers <fransbongers@macbookpro.home>2025-03-19 21:55:43 +0100
committerFrans Bongers <fransbongers@macbookpro.home>2025-03-19 21:56:01 +0100
commit0fae284f79b1c934e58214cf5f88cad4cab6b03b (patch)
tree779e447a18042132e40036f40fc5d0af6622954a /data.ts
parent19d48663a25cf6f9a93e8710f6896a2b43971fcd (diff)
downloadland-and-freedom-0fae284f79b1c934e58214cf5f88cad4cab6b03b.tar.gz
refactor: FrontId to number
Diffstat (limited to 'data.ts')
-rw-r--r--data.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/data.ts b/data.ts
index f36f9c3..424fcc7 100644
--- a/data.ts
+++ b/data.ts
@@ -17,10 +17,10 @@ const PLAYER_WITH_MOST_HERO_POINTS = 0;
const INITIATIVE_PLAYER = 'i';
const ALL_PLAYERS = 'all';
-const ARAGON = 'a';
-const MADRID = 'm';
-const NORTHERN = 'n';
-const SOUTHERN = 's';
+const ARAGON = 0;
+const MADRID = 1;
+const NORTHERN = 2;
+const SOUTHERN = 3;
const CLOSEST_TO_DEFEAT = 'd';
const CLOSEST_TO_VICTORY = 'v';
const FRONTS: FrontId[] = [ARAGON, MADRID, NORTHERN, SOUTHERN];
@@ -1804,12 +1804,6 @@ const data: StaticData = {
],
fronts: [
{
- id: NORTHERN,
- name: 'Northern',
- left: 89,
- top: 96,
- },
- {
id: ARAGON,
name: 'Aragon',
left: 340,
@@ -1822,6 +1816,12 @@ const data: StaticData = {
top: 262,
},
{
+ id: NORTHERN,
+ name: 'Northern',
+ left: 89,
+ top: 96,
+ },
+ {
id: SOUTHERN,
name: 'Southern',
left: 205,