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

[18Ardennes] Allow public companies to issue shares #11341

Merged
merged 5 commits into from
Nov 17, 2024

Conversation

ollybh
Copy link
Collaborator

@ollybh ollybh commented Nov 11, 2024

Implementation Notes

I'd completely missed the rule that public companies are allowed to issue shares to the open market, apart from on their first operating turn. This pull request adds this step.

Fixes #11221.

This will break almost all 18Ardennes game. These can all be fixed by the default migrate games script, which will add passes for all the issue shares steps.

This pull request also fixes a bug (not reported on Github) where, when exchanging a minor company for a market share, one exchange button was being generated for each of the public company's shares in the open market. Just one button is needed.

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

I'd completely missed the rule that public companies are allowed to
issue shares to the open market, apart from on their first operating
turn. This commit adds this step.

Fixes tobymao#11221.

This will break almost all 18Ardennes game. These can be fixed by the
migrate games script, which will add passes for all the issue shares
steps.
Issuing shares was occuring after a public company had grown up, but
before the president was given the option to buy new shares or fold in
minor companies. Issuing shares should be done after this.
If a public company had multiple shares in the bank pool then each one
was being offered in exchange for minor companies, giving duplicated
buttons. All the shares are identical, so just offer the first one for
exchange.
@ollybh ollybh added migrate_game Requires migrate game script to be executed 18Ardennes labels Nov 11, 2024
@ollybh ollybh merged commit 2a5c1b8 into tobymao:master Nov 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
18Ardennes migrate_game Requires migrate game script to be executed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[18Ardennes] Unable to issue shares after in second operating round and beyond
1 participant