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

[1871] Prevents sale of more than 30% during EMR #11321

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

philcampeau
Copy link
Collaborator

Fixes #8260

Before clicking "Create"

  • Branch is derived from the latest master
  • Add the pins or archive_alpha_games label if this change will break existing games
  • Code passes linter with docker compose exec rack rubocop -a
  • Tests pass cleanly with docker compose exec rack rake

This will likely require pins.

Implementation Notes

Explanation of Change

Players should not be able to sell more than 30% of a corp during funding, as per rule:
image

Corporations may issue above 30%, so I put in an added guard clause to ensure only players are blocked.

Screenshots

Any Assumptions / Hacks

@philcampeau philcampeau added pins PR that will require some games to be pinned 1871 labels Nov 5, 2024
Comment on lines -62 to -64
# This is our new clause for 1871, if this is the corporation
# selling, we can sell all of them
return true if bundle.corporation == bundle.owner
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does removing this test change anything? Are there any bundles of treasury shares that would be rejected by the selling_miniumum_shares? test which should be issuable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1871 pins PR that will require some games to be pinned
Projects
None yet
2 participants