diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -583,6 +583,12 @@ const ui = { document.getElementById("hand_bavaria"), document.getElementById("hand_saxony"), ], + missing: [ + document.getElementById("missing_france"), + document.getElementById("missing_prussia"), + document.getElementById("missing_pragmatic"), + document.getElementById("missing_austria"), + ], cities: [], roads: [], action_register: [], @@ -1241,6 +1247,11 @@ function layout_victory_pool(pow, max, x, y) { e.style.top = (y - 16 + (i/5|0) * 20) + "px" ui.markers_element.appendChild(e) } + if (n > max) { + ui.missing[pow].textContent = "+" + (n-max) + } else { + ui.missing[pow].textContent = "" + } for (let i = 0; i < m; ++i) { let e = ui.victory[pow][used_victory[pow]++] if (pow === P_FRANCE) { |