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

[SteamOverHolland] fixes train discount bug #11169

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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: 2 additions & 0 deletions lib/engine/game/g_steam_over_holland/entities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ module Entities
type: 'train_discount',
discount: 0.1,
trains: %w[3 4 5],
when: 'buy_train',
philcampeau marked this conversation as resolved.
Show resolved Hide resolved
owner_type: 'corporation',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion lib/engine/game/g_steam_over_holland/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def redeemable_shares(entity)
end

def emergency_issuable_bundles(entity)
return [] if @round.issued_shares[entity] || entity.cash >= @depot.min_depot_price
return [] if @round.issued_shares[entity] || entity.cash >= @depot.min_price(ability: nil)
philcampeau marked this conversation as resolved.
Show resolved Hide resolved

num_shares = [entity.num_player_shares, 5 - entity.num_market_shares].min

Expand Down
Loading
Loading