Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1847 AE] Fix one private bug and improve the description of another private #11200

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/engine/game/g_1847_ae/entities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions lib/engine/game/g_1847_ae/step/buy_single_train_of_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
Loading