From 7a24fc2dacb39d82a0b922244c8e54a79a4dadeb Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Sat, 2 Sep 2023 00:57:01 +0200 Subject: early forage logic (exhaust/deplete) --- play.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index 2e1d69c..8f31f4c 100644 --- a/play.js +++ b/play.js @@ -685,7 +685,7 @@ function build_map() { // Locale Markers e = ui.locale_markers[ix] = document.createElement("div") - e.className = "locale marker rose york favour " + locale.name // York to be removed - York/Lancaster + e.className = "locale marker rose favour " + locale.name // York to be removed - York/Lancaster e.style.top = y+h-small + "px" e.style.left = x+ (w-small)/2 + "px" e.style.width = small + "px" @@ -698,7 +698,7 @@ function build_map() { // Depleted markers e = ui.locale_markers[ix] = document.createElement("div") - e.className = "locale marker exhausted " + locale.name // Depleted to be removed - depleted/exhausted to add markers + e.className = "locale marker " + locale.name // Depleted to be removed - depleted/exhausted to add markers e.style.top = y+h-small-offsetdeplete + "px" e.style.left = offsetdeplete+x+ (w-small)/2 + "px" e.style.width = small + "px" @@ -1120,14 +1120,14 @@ function update_locale(loc) { else ui.locale_markers[loc].appendChild(get_cached_element("marker circle battle")) - if (set_has(view.pieces.exhausted, loc)) { + /*if (set_has(view.pieces.exhausted, loc)) { let cn if (is_york_locale(loc)) cn = "marker small exhausted lancaster" else cn = "marker small exhausted york" ui.locale_markers[loc].appendChild(get_cached_element(cn)) - } + }*/ } function update_plan() { -- cgit v1.2.3