From 0363bf3ea52abc01481e9852631d9d1e9ace46e4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 2 May 2021 00:13:36 +0200 Subject: hammer: Fix Moray and Scottish King wintering. Delay disband question until normal disband phase. Allow staying even if over castle limit since you may want to be able to disband another unit to keep Moray or the King). Skip question completely if already at home or home is occupied. Improve UI for Edward wintering -- can click England to disband, and added button for wintering. --- ui.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui.js') diff --git a/ui.js b/ui.js index 683f0af..d974e5f 100644 --- a/ui.js +++ b/ui.js @@ -202,6 +202,10 @@ function on_button_disband(evt) { send_action('disband'); } +function on_button_winter(evt) { + send_action('winter'); +} + function on_button_end_disbanding(evt) { send_action('end_disbanding'); } @@ -711,6 +715,7 @@ function on_update(state, player) { show_action_button("#end_move_phase_button", "end_move_phase"); show_action_button("#end_regroup_button", "end_regroup"); show_action_button("#end_retreat_button", "end_retreat"); + show_action_button("#winter_button", "winter"); show_action_button("#eliminate_button", "eliminate"); show_action_button("#disband_button", "disband"); show_action_button("#end_disbanding_button", "end_disbanding"); -- cgit v1.2.3