From 213147c222764e6202acbf68e78e8abd187fd55c Mon Sep 17 00:00:00 2001 From: Oliver Burnett-Hall Date: Sun, 10 Nov 2024 12:14:33 +0000 Subject: [PATCH] [18Ardennes] Only offer first market share for exchange If a public company had multiple shares in the bank pool then each one was being offered in exchange for minor companies, giving duplicated buttons. All the shares are identical, so just offer the first one for exchange. --- .../game/g_18_ardennes/step/buy_sell_par_shares_companies.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/engine/game/g_18_ardennes/step/buy_sell_par_shares_companies.rb b/lib/engine/game/g_18_ardennes/step/buy_sell_par_shares_companies.rb index 53a13e3d2c..5c6ec64aa6 100644 --- a/lib/engine/game/g_18_ardennes/step/buy_sell_par_shares_companies.rb +++ b/lib/engine/game/g_18_ardennes/step/buy_sell_par_shares_companies.rb @@ -83,7 +83,7 @@ def sellable_companies(entity) # exchange for the minor company. def exchangeable_pool_shares(corporation, ability) minor = ability.owner - shares = @game.share_pool.shares_by_corporation[corporation] + shares = @game.share_pool.shares_by_corporation[corporation].take(1) return [] if shares.empty? return shares if corporation.owner == minor.owner return shares if corporation.receivership?