summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-26 00:12:25 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-26 00:12:25 +0200
commit3e30593e9986187aff35a4440bdbcb309025c58c (patch)
treefee59fd7a5acfe47969364b951eb81661e0aadd6 /play.js
parentbe53b4b3373da546644ce71ee6a311be406a27aa (diff)
download1989-dawn-of-freedom-3e30593e9986187aff35a4440bdbcb309025c58c.tar.gz
Move event reminder location on top of Yugoslavia.
Initialize marker locations to their starting positions.
Diffstat (limited to 'play.js')
-rw-r--r--play.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/play.js b/play.js
index 9ac9e60..4658044 100644
--- a/play.js
+++ b/play.js
@@ -284,7 +284,8 @@ function on_update() {
if (!ui.spaces)
create_ui()
- // UPDATE ASIDE
+ // UPDATE PLAYER INFO
+
if (view.is_pwr_struggle) {
roles.Democrat.stat.textContent = `${view.democrat_power_hand} Power cards`
roles.Communist.stat.textContent = `${view.communist_power_hand} Power cards`
@@ -292,9 +293,11 @@ function on_update() {
roles.Democrat.stat.textContent = `${view.democrat_hand} cards`
roles.Communist.stat.innerText = `${view.communist_hand} cards`
}
+
ui.turn_info.innerText = `Strategy deck: ${view.strategy_deck} cards`
// UPDATE TRACK MARKERS
+
layout_turn_marker()
layout_round_marker()
layout_stability_marker()
@@ -338,6 +341,7 @@ function on_update() {
ui.event_reminder_list.appendChild(ui.events[id])
// UPDATE INFLUENCE VALUES
+
for (let s = 1; s <= last_space; ++s) {
const demInfl = view.demInfl[s]
const comInfl = view.comInfl[s]