branchrust_reboot/main/Caboose/Blackjackcancel
178 Commits over 30 Days - 0.25cph!
New stack limit option for AddItem. Allows stacking more of an item to existing items - needed for blackjack payouts that put the player's stack beyond the usual max stack size.
End the round properly if the player has blackjack + code formatting
Halve the time between Blackjack rounds
Fixed payout rules, add a rule about aces when doubling down
Don't hide the card when doubling down. It seems that most places do it face up, so let's do that too, it's simpler as well
Fixed incorrect terminal order
No-game display for the small screens
Fixed a UI override causing trouble
Info text for various situations on the player's screen
Don't show the higher score count if it's over 21
Show player bet and scrap total
Don't shrink the "10" card number, it just looks bad
Functional inputs UI for the small screens + other content on them. Better method for getting a list of current inputs.
Some UI setup of the small screen, and other fixes
Fix unassigned train parent triggers in this branch (due to creating the standard train trigger)
Fixed the console colours not working anymore in this branch
Changed halloween.enabled from ServerVar to ReplicatedVar so that client-side entities can check whether it's currently enabled.
Fixed situations where we tried to get the value of a set of cards on the client when some were actually unknown (and therefore calculated as the default two of spades). Dealer now correctly knows if it got Blackjack and puts on its cool shades.
A few general adjustments
Fixed card content not showing up anymore
Calculate greatest common denominator for payout ratios and show them as a nicely formatted string on the main monitor (so that the ratio string is formed programmatically, and we don't have to worry about it not matching up if we change payouts in the future)
Reinstate a couple of things that I needed to stomp on merge
Update loot panels before merge
Remove the countdown text
Use Canvas enable/disable instead of gameobject SetActive (performance). Show dealer's card value as "Bust!" if over 21. Fit a card value of 10 on one line.
Moved UI info to have it less central, so it's easier to keep seeing the Blackjack main screen
Update the dealer's cards between rounds
Keep showing dealer cards after round ends
Card backings for the monitor UI
Show the dealer's cards on the monitor. Fix server-side errors.
Card spacing code (dealer)
Small secret blackjack Halloween mode for players to discover next year
General blackjack face stuff + other UI stuff
Scanlines and dirt for the blackjack monitor UI
A green light for the CRT
Visual tick rate thing that I'm probably not actually going to use. Committing this so I can go back if I regret deleting it
Show some of the monitor background texture through the UI in the best way we can (canvas blending options suck)
Added no-game and between-round layouts for the small monitors
Added a between-rounds screen layout for the main monitor. Removed unused Has21 method.
Dealer display fits up to seven cards (the max the dealer could ever have)
Setup for one row of dealer cards