1,542 Commits over 1,705 Days - 0.04cph!
Fixed conflict between the card game "play" action text token and the main menu "play game" text token which is also just "play". Renamed mine to cards_play.
Minor fix for the way the dealer handles aces, now implementing the Soft 17 rule correctly
Merge MoreCabooseFixes -> Main
Slot machines now drop their scrap when destroyed
Increased caboose decay time to 4x whatever TrainCar.decayminutes is set to. The default is 30 minutes, which puts caboose at two hours. Note that decay only starts when no one is nearby, and resets if someone boards the train.
Fixed dynamic bet bug + dynamic bet now remembers the player's last bet amount
Fix "don't have enough scrap" message popping up and immediately disappearing.
Disable the editor free scrap
Re-add the minor blackjack halloween thing
If the player has split and gets to 21 on the first hand, switch automatically to the other hand. Previously was bugged, and automatically ended both hands.
Refresh to the new dealer expression right away as the round ends, to align it with the audio
Handle cases where one ace valued at 11 but other ace(s) valued at 1 is the optimal play
Fixed being able to bet over the max using the alternate betting input
Instead of dropping current bet as an item after save/load, pay it out to storage
Remove culled minilights from caboose dressing to fix "Missing light component" error spam
Removed all RendererBatch scripts from caboose dressing objects (please don't use RendererBatch on moving objects)
Insurance payouts are now shown in the UI. Encode both result codes and the insurance payout into the winnings int.
Turned Blackjack max initial bet into a convar, blackjackmachine.maxbet. Minimum 25. Maximum 1,000,000. Default 500.
Prevent players from using the wire tool to hook up to the caboose light switches etc
Added costs for split/double down/insurance moves to the input UI
Limit the maximum initial bet in Blackjack to 500 scrap. Without a max, players could amass an exponential fortune very quickly from a few all-in games, which seemed a little dangerous (although of course the potential to LOSE a fortune is also there). You can still split and double down for a potential maximum bet of up to 2000.
Rule changes per feedback on what's most standard:
- Allow doubling down after splitting
- Don't allow further hits after doubling down
Fixes for Blackjack with multiple players:
- Fixed more game leaving bugs.
- Fixed turn timer not resetting correctly for everyone after the betting phase if there are multiple players.
- Fixed turn timer sometimes showing the wrong player's timer.
- Since it's everyone's turn at once in Blackjack, it was making all the player widgets show green, which was just confusing. Changed Blackjack to only show the local player in green.
Much better handling (and bug fixes) of multiple-player Blackjack games where one player's turn times out or they leave. A few further improvements still coming.
Fixed card game inputs UI showing scrap values of over four digits well (can happen with All In option)
Fixing getting Blackjack not paying out!
Let the static (modder) version of the blackjack machine be seen from further away (the Caboose one has a very short LOD distance since it can't really be seen from outside of the train car).
Proper per-player turn timers for Blackjack
Fix Caboose XOR switch pickup again
Merge FontWarningFix -> Main
Another caboose XOR switch pickup fix attempt
Fixed caboose window glass model double-up
Reduce caboose window quad tint back to where it used to be before I increased it, since we have real glass as well now
Fixed split and insurance bets not clearing correctly at the end of a round
If the player splits aces, they can't hit again, they just get their two extra cards
Disable temp testing cards
Fixed players being able to stack more than the usual scrap max by adding scrap to a card game's storage and then dismounting
Merge Caboose -> Main. Added Split support to Blackjack. Adds updated Caboose environment work.
Double fixed being able to pick up caboose XOR switch
Added BlackjackMachine.static for modders to place one on its own.
Fixed being able to pick up the XOR switch on the caboose
Fixed errors when hitting the blackjack table with a hammer when the caboose is damaged. Adjusted blackjack table and card table bounds.
Fixed wrong-layered Vehicle World colliders for the top of the caboose
Added missing window quad
Increased the tint on the Caboose window glass. Players were confused whether you should be able to shoot through the windows (you cannot) as the glass was fairly difficult to see.