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

[1844] sets min buy-in price to 1 SFR #11615

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

philcampeau
Copy link
Collaborator

Fixes #11551

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

Implementation Notes

Explanation of Change

Currently, buy-in price was using the default half to double. Rules state it's 1 to double.

I created a new company_price_one_to_double.rb file in /lib/engine/game (similar to the other current files there) and made the necessary changes to 1844's game.rb code.

I needed to delete the fixture file, and likely many (probably all) existing games will need to be pinned, since any game that skipped over the buy companies blocking step will now re-evaluate that decision if a corp has at least 1 SFR in its treasury.

Screenshots

Any Assumptions / Hacks

@philcampeau philcampeau added the pins PR that will require some games to be pinned label Mar 12, 2025
@philcampeau philcampeau requested a review from crericha as a code owner March 12, 2025 03:17
@ollybh ollybh added migrate_game Requires migrate game script to be executed 1844 and removed pins PR that will require some games to be pinned labels Mar 12, 2025
@ollybh
Copy link
Collaborator

ollybh commented Mar 12, 2025

The default game migration script should be able to fix any games broken by this. It will add additional pass actions where needed.

@philcampeau
Copy link
Collaborator Author

Very true! I just ran the migrate script on the existing fixture file and it worked fine, so I've restored it with the migrate changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1844 migrate_game Requires migrate game script to be executed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[1844] Unable to purchase private below half price
2 participants