Skip to content

Commit

Permalink
Merge pull request tobymao#10248 from patrikolesen/18_uruguay_pre_alp…
Browse files Browse the repository at this point in the history
…ha_discard_rebased

[18Uruguay] Update Discard train. Only trains shall end up in the bankpool
  • Loading branch information
michaeljb authored Feb 4, 2024
2 parents 53db65d + 2e629b7 commit 032b890
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/engine/game/g_18_uruguay/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def operating_round(round_num)
G18Uruguay::Step::Token,
Engine::Step::Route,
Engine::Step::Dividend,
Engine::Step::DiscardTrain,
G18Uruguay::Step::DiscardTrain,
Engine::Step::BuyTrain,
[G18Uruguay::Step::TakeLoanBuyCompany, { blocks: true }],
], round_num: round_num)
Expand Down
18 changes: 18 additions & 0 deletions lib/engine/game/g_18_uruguay/step/discard_train.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# frozen_string_literal: true

require_relative '../../../step/discard_train'

module Engine
module Game
module G18Uruguay
module Step
class DiscardTrain < Engine::Step::DiscardTrain
def process_discard_train(action)
action.train.remove_variants!
super
end
end
end
end
end
end

0 comments on commit 032b890

Please sign in to comment.