From 0fae284f79b1c934e58214cf5f88cad4cab6b03b Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Wed, 19 Mar 2025 21:55:43 +0100 Subject: refactor: FrontId to number --- data.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'data.ts') 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]; @@ -1803,12 +1803,6 @@ const data: StaticData = { }, ], fronts: [ - { - id: NORTHERN, - name: 'Northern', - left: 89, - top: 96, - }, { id: ARAGON, name: 'Aragon', @@ -1821,6 +1815,12 @@ const data: StaticData = { left: 115, top: 262, }, + { + id: NORTHERN, + name: 'Northern', + left: 89, + top: 96, + }, { id: SOUTHERN, name: 'Southern', -- cgit v1.2.3