-
Notifications
You must be signed in to change notification settings - Fork 186
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
base: master
Are you sure you want to change the base?
Conversation
I've just submitted a new commit, which seems to resolve the issue, and shouldn't break any games. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that there might still be a potential bug lurking in here: part of the test at the start of Step::BuyTrain.must_sell_shares?
is whether the corporation has more cash than the face value of the cheapest train. What happens if the corporation that owns the Werkspoor private has no train and between 90% and 100% the price of the cheapest train? Will they be able to sell shares, even though this isn't needed to buy the train.
You might need to change this test to use the Depot.min_price(corporation, ability)
function.
Fixes #11163
Before clicking "Create"
master
pins
orarchive_alpha_games
label if this change will break existing gamesdocker compose exec rack rubocop -a
docker compose exec rack rake
Implementation Notes
Explanation of Change
Changes the emergency_issuable_bundles method to read @depot.min_price(ability: nil) instead of @depot.min_depot_price
I had to remove a fixture file that broke as a result. Also, this will break any alpha games with this private, and possibly all of them.
Screenshots
Any Assumptions / Hacks