summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/play.js b/play.js
index 2f29ae1..07a0cfb 100644
--- a/play.js
+++ b/play.js
@@ -64,6 +64,7 @@ function pack4_get(word, n) {
function find_lord(name) { return data.lords.findIndex((x) => x.name === name) }
function find_card(name) { return data.cards.findIndex((x) => x.name === name) }
+function find_locale(name) { return data.locales.findIndex(x => x.name === name) }
const LORD_YORK = find_lord("York")
const LORD_MARCH = find_lord("March")
@@ -100,6 +101,8 @@ const LORD_HENRY_TUDOR = find_lord("Henry Tudor")
const LORD_OXFORD = find_lord("Oxford")
const LORD_WARWICK_L = find_lord("Warwick L")
+const LOC_LONDON = find_locale("London")
+
const first_york_lord = 0
const last_york_lord = 13
const first_lancaster_lord = 14
@@ -214,6 +217,7 @@ const asset_type_x34 = [ 1, 1, 1, 0 ]
const NOWHERE = -1
const CALENDAR = 100
+const LONDON_FOR_YORK = 200 as Locale // extra london marker
const VASSAL_READY = 29
const VASSAL_CALENDAR = 30
@@ -1319,6 +1323,12 @@ function update_locale(loc) {
cn = "lancaster"
ui.locale_markers_rose[loc].classList.remove(cn)
}
+
+ if (loc === LOC_LONDON) {
+ if (set_has(view.pieces.favoury, LONDON_FOR_YORK)) {
+ // TODO: extra rose marker
+ }
+ }
}
function update_plan() {