Skip to content

Commit

Permalink
[1844] Allow EMR cross buying from sbb
Browse files Browse the repository at this point in the history
  • Loading branch information
crericha committed Feb 10, 2025
1 parent a3d21e7 commit 77a9fd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/engine/step/train.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ def buyable_trains(entity)

other_trains = [] if entity.cash.zero? && @game.class::EBUY_FROM_OTHERS == :never

other_trains.reject! { |t| entity.cash < t.price && must_buy_at_face_value?(t, entity) }
unless president_may_contribute?(entity)
other_trains.reject! { |t| entity.cash < t.price && must_buy_at_face_value?(t, entity) }
end

depot_trains + other_trains
end
Expand Down

0 comments on commit 77a9fd2

Please sign in to comment.