-
Notifications
You must be signed in to change notification settings - Fork 187
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
[1849] fix for the Bonds variant #11376
base: master
Are you sure you want to change the base?
Conversation
lib/engine/game/g_1849/step/bond.rb
Outdated
issued_bond: nil, | ||
redeemed_bond: nil, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're only using boolean values/tests elsewhere, so you might as well make this boolean values here.
issued_bond: nil, | |
redeemed_bond: nil, | |
issued_bond: false, | |
redeemed_bond: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@philcampeau Can you explain what you're changing here? There doesn't look to be anything wrong with this change (apart from my minor quibble about using boolean values), but how will this fix the bug?
To be honest, I don't know if it will fix the issue or not, but I can't figure out what the issue is, and I noticed I did this differently than every other instance on the site, so I figured I might as well try this to see if it helps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't see how this is going to fix the reported issue, but I can't see any problems with this patch.
Fixes #11138
(hopefully)
Before clicking "Create"
master
pins
orarchive_alpha_games
label if this change will break existing gamesdocker compose exec rack rubocop -a
docker compose exec rack rake
Implementation Notes
Explanation of Change
We keep getting blocking step errors when using the Bonds variant, and it's always happening after the game enters phase 8, which is when the bonds are enabled.
It's difficult to test this fix, as the error doesn't happen in my local test environment, but I think the fix here may help. I changed the round_state definition, and modified the related code.
Screenshots
Any Assumptions / Hacks