From 9e0660460878bdc191ac12aff8a455fb88c19978 Mon Sep 17 00:00:00 2001 From: Galatolol Date: Mon, 9 Sep 2024 23:15:02 +0200 Subject: [PATCH 1/2] 1847 - fix LFK bug --- lib/engine/game/g_1847_ae/step/buy_single_train_of_type.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/engine/game/g_1847_ae/step/buy_single_train_of_type.rb b/lib/engine/game/g_1847_ae/step/buy_single_train_of_type.rb index f6c7601fdd..bf5bf853d7 100644 --- a/lib/engine/game/g_1847_ae/step/buy_single_train_of_type.rb +++ b/lib/engine/game/g_1847_ae/step/buy_single_train_of_type.rb @@ -16,11 +16,11 @@ def buyable_trains(entity) end def process_buy_train(action) - from_depot = action.train.from_depot? + from_discard = @depot.discarded.include?(action.train) super lfk = @game.lfk - return if @game.train_bought_this_round || !lfk.floated? || !from_depot + return if @game.train_bought_this_round || !lfk.floated? || from_discard lfk_owner = lfk.owner if lfk_owner.player? From e11a422cc6d9210df8df130c2dc88c06ac7c1f3d Mon Sep 17 00:00:00 2001 From: Galatolol Date: Mon, 9 Sep 2024 23:18:03 +0200 Subject: [PATCH 2/2] 1847 - improve one private's description --- lib/engine/game/g_1847_ae/entities.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/engine/game/g_1847_ae/entities.rb b/lib/engine/game/g_1847_ae/entities.rb index 670708cdc4..e271b70bab 100644 --- a/lib/engine/game/g_1847_ae/entities.rb +++ b/lib/engine/game/g_1847_ae/entities.rb @@ -42,7 +42,7 @@ module Entities revenue: 30, min_price: 100, max_price: 200, - desc: 'Revenue increases to 50M when a tile is laid in E9. '\ + desc: 'Revenue increases to 50M when a tile is laid in E9 (the tile may be laid only in Phase 5 or later). '\ 'May be sold to a corporation for 100 to 200M. '\ 'Never closes.', sym: 'R',