[1822 family] don't break rendering on bidding due to player debt #9938
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A lot of bid-related rendering depends on
bid
appearing as one of the step's current actions, e.g.,18xx/assets/app/view/game/round/stock.rb
Line 356 in 0bad615
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:
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
This change makes
bid
always included in the possible actions, and raises aGameError
to prevent indebted players from actually making bids.#9376