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

[1822 family] don't break rendering on bidding due to player debt #9938

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

michaeljb
Copy link
Collaborator

A lot of bid-related rendering depends on bid appearing as one of the step's current actions, e.g.,

bids: (@current_actions.include?('bid') ? @step.bids[company] : nil),

This causes a bug where if one player has debt (and therefore does not have the bid action available), previous bids and bid tokens can fail to render.

Screenshot 1 - JFParadis has made bids on 3 privates, no bid is visible on P6 (Pullman) -- the other privates are rendered below the screen:

no bid shown on pullman

Screenshot 2 - no bids shown on the other two privates, bid token count is not listed for any of the players; note that jonathan has a loan

Screenshot 2023-11-26 123153

This change makes bid always included in the possible actions, and raises a GameError to prevent indebted players from actually making bids.

#9376

A lot of bid-related rendering depends on `bid` appearing as one of the step's
current actions, e.g.,
https://github.com/tobymao/18xx/blob/0bad615d8eda50db7bb2885ebdb9f94da2863fea/assets/app/view/game/round/stock.rb#L356

This causes a bug where if one player has debt (and therefore does not have the
`bid` action available), previous bids and bid tokens can fail to render.

This change makes `bid` always included in the possible actions, and raises a
`GameError` to prevent indebted players from actually making bids.
@tobymao tobymao merged commit 788f62c into tobymao:master Nov 27, 2023
@michaeljb michaeljb deleted the 1822-debt-rendering branch November 27, 2023 15:54
michaeljb added a commit to michaeljb/18xx.games that referenced this pull request Nov 27, 2023
…ering"

This reverts commit 788f62c, reversing
changes made to 21263d8.

This probably fixes tobymao#9946 and tobymao#9947
michaeljb added a commit that referenced this pull request Nov 27, 2023
Revert "Merge pull request #9938 from michaeljb/1822-debt-rendering"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants