-
Notifications
You must be signed in to change notification settings - Fork 187
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
[18Uruguay] Also add FCE shares to secondary corps #11209
base: master
Are you sure you want to change the base?
Conversation
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.
This is looking much better. I've suggested a couple more tweaks to the code, nothing major this time.
@patrikolesen This pull request has been open for a while now. Has there been any progress? Just checking that you haven't forgotten about this one… |
Thanks for the ping, I will look at this the comming days |
Co-authored-by: Oliver Burnett-Hall <[email protected]>
Co-authored-by: Oliver Burnett-Hall <[email protected]>
Co-authored-by: Oliver Burnett-Hall <[email protected]>
Co-authored-by: Oliver Burnett-Hall <[email protected]>
@@ -28,10 +28,13 @@ def acquire_shares | |||
entity_shares = affected_shares(holder, @merge_data[:corps]) | |||
|
|||
total_percent = entity_shares.sum(&:percent) | |||
num_shares, odd_shares = (total_percent / 10).divmod(2) | |||
from_secondary = @merge_data[:secondary_corps].count { |corp| corp.president?(holder) } | |||
num_shares = (total_percent / 20).to_i |
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.
@patrikolesen Did you mean to revert this change in this commit? What was rubocop objecting to here? Or was this commit just supposed to remove the space after bundle =
below?
Fixes #11111
Fixes #11074
Fixes #[PUT_ISSUE_NUMBER_HERE]
Before clicking "Create"
master
pins
orarchive_alpha_games
label if this change will break existing gamesThis can break existing games
docker compose exec rack rubocop -a
docker compose exec rack rake
Implementation Notes
Explanation of Change
Screenshots
Any Assumptions / Hacks