branchrust_reboot/main/CardGamescancel
464 Commits over 120 Days - 0.16cph!
Fix static card table variants not having the new material
Fix community cards not being lit, making them too bright in dark conditions
- Added even smaller card images for the community cards on the table.
- Added a static dictionary of those cards to the table itself. Fixes a bug where if the player hasn't used a poker UI yet, the community cards of an in-progress poker game near them would show as blank.
Unity was taking a dumb amount of time just to assign a sprite in world space UI. In editor it was >1ms per assignment. Made large cards be 512 at max size instead of 2048 which improves the time a lot.
Merge visible poker chips -> CardGames
Add a 300ms delay to the start of the card draw sounds, so they they play more in the middle of the card flip, and give a chance for the action sounds to be heard separately
Prevent doubled-up action sounds by clearing the last action info after Save
Don't try to make random moves (editor only) if we're in-between turns
Change the "None" poker input to be a 0 value, instead of a 1
Fix timer showing between moves sometimes
Merge AddDelayBetweenTurns -> CardGames. Will wait until after May's release to merge to Main.
Started cleaning up some poker code but mostly left it as-is in the end. The current version is well tested and proven at this point, I decided not to mess with it.
If players get some scrap back (due to varied all-in amounts), show them as neutral in the UI instead of red
Fix winner score not being sent anymore
Fix LeftRoundEarly bool check
Clear local player card data properly if they leave the table
Local player stop holding cards after folding (broke with the new changes to remember the cards they had)
Increase local player folded card opacity
Don't show the icon if the local player had folded
Show an icon in the player widget so the local player can see whether they're showing their cards or not
Allow players to optionally reveal their hand
Fix potential NRE in the poker tester window
Simplify copying local player card data
- After local player folds, still show their cards to them, but greyed out
- More work on card sync
- Cleaned up SubOnPlayerLeaving code
- Make sure local player's cards refresh immediately when sent
Protocol++
Lower sort order of card table UI to 30 (was 100)
Fix local player's cards being hidden
Don't show cards at the end of a round except for the winner in a showdown
Fixed random moves (editor only) attempting to bet/raise zero
Knock sound now plays when a player checks
Added double knock-on-wood sounds for checking (my recordings)
Fixed Royal Flush showing as Flush
Improved the winning hand UI message
Show the winning hand in the winner info UI