From 6acd44aff10c4431ed377a85880566b39549272f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 28 Apr 2024 19:44:13 +0200 Subject: more undo (drop provender/carts during haul/sail) --- rules.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rules.ts') diff --git a/rules.ts b/rules.ts index 62e8cdc..cd287bc 100644 --- a/rules.ts +++ b/rules.ts @@ -1250,10 +1250,12 @@ function add_lord_assets(lord: Lord, n: Asset, x: number) { } function drop_prov(lord: Lord) { + push_undo() add_lord_assets(lord, PROV, -1) } function drop_cart(lord: Lord) { + push_undo() add_lord_assets(lord, CART, -1) } @@ -4203,6 +4205,7 @@ states.sail = { prov: drop_prov, cart: drop_cart, locale(to) { + push_undo() let from = get_lord_locale(game.command) if (can_naval_blockade(from) || can_naval_blockade(to)) { game.where = to -- cgit v1.2.3