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

[1841] Shares of a major have disappeared #9760

Closed
Titanrich opened this issue Oct 11, 2023 · 1 comment · Fixed by #9762
Closed

[1841] Shares of a major have disappeared #9760

Titanrich opened this issue Oct 11, 2023 · 1 comment · Fixed by #9762
Assignees
Labels
1841 bug Prevents game from being played correctly

Comments

@Titanrich
Copy link

1841
Game 132194

The IFAI corporation just completed its turn in the OR. At one point, before a redo, two shares of SFLi were sold. That was not the path I wanted so I hit redo, and passed sell corporate shares. Then I merged IFAI with SFL to create CTDA. The text says three shares of SFLi were moved to the CTDA treasury, but only one shows up. The corporation SFLi is next to run, and it shows only 8 corporate shares in this game.

2 shares of SFLi are missing, should be part of CTDA treasury.

Rich Atwater

15:24] Moving 30% of shares of SFLi from IFAI to CTDA treasury

If your game is "Multiplayer", provide the link to the game. Copy the link from your browser which will look something like https://18xx.games/game/31337

  • (optional) Provide a link to the specific action that triggered the bug using the Game tab and History navigation arrows. Copy the resulting link from your browser which will look something like https://18xx.games/game/31337?action=42

If your game is "Hotseat", provide a link to your raw game data by using the Tools tab and Copy Game Data.

Paste that data into a github gist and share the resulting link which will look something like https://gist.github.com/[your_name]/[some_letters].

-->

How to Reproduce the Bug?

Which Browser / Platform?

@roseundy roseundy self-assigned this Oct 11, 2023
@roseundy roseundy changed the title Shares of a major have disappeared [1841] Shares of a major have disappeared Oct 11, 2023
@roseundy roseundy added the 1841 label Oct 11, 2023
@roseundy
Copy link
Collaborator

roseundy commented Oct 12, 2023

This is an ugly corner case. There appears to be two problems here:

  1. The presidency of SFLi should remain with the new corporation. In this case it doesn't - the code moves the presidency to Titanrich
  2. When it does move the presidency, the transfer_shares method in SharePool appears to only handle a president change correctly only if only the president share is being moved, not a bundle of multiple shares that includes the president's share.

@roseundy roseundy added bug Prevents game from being played correctly and removed needs triage labels Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1841 bug Prevents game from being played correctly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants