diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-12-13 16:06:25 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-12-13 16:06:25 +0100 |
commit | 3d6c62e23704226551e2fa5475544878dc791f31 (patch) | |
tree | 189121057e297edc1be25004e98078d67b0cf76f /play.js | |
parent | 82670c87330642fa62b1ebf9597bac5ac60b71a3 (diff) | |
download | maria-3d6c62e23704226551e2fa5475544878dc791f31.tar.gz |
Hide "politics" checkbox for minor power deals.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1908,6 +1908,8 @@ function update_deal_options() { let b_power = window.propose_deal_form.elements.b_power.value | 0 window.a_hussars_label.classList.toggle("hide", a_power !== P_AUSTRIA) window.b_hussars_label.classList.toggle("hide", b_power !== P_AUSTRIA) + window.a_politics_label.classList.toggle("hide", all_minor_powers.includes(a_power)) + window.b_politics_label.classList.toggle("hide", all_minor_powers.includes(b_power)) } function propose_deal() { |