GamblingEconomyHandler
Handles gambling-specific economy operations including debt management. This class ensures safety-first transaction processing for gambling operations.
Properties
Functions
Link copied to clipboard
Awards winnings to a player.
Link copied to clipboard
Calculates payout for a win based on bet amount and multiplier.
Link copied to clipboard
Checks if a player can afford a bet, including using credit (going into debt).
Link copied to clipboard
Gets the player's available credit (how much more debt they can take on).
Link copied to clipboard
Gets the player's current balance (convenience method).
Link copied to clipboard
Formats the player's financial status as a string for display.
Link copied to clipboard
Gets the formatted house earnings string for display.
Link copied to clipboard
Tracks total house earnings (money won by the house from players).
Link copied to clipboard
Initializes the house earnings tracking system.
Link copied to clipboard
Records a loss for the house (when a player wins).
Link copied to clipboard
Records earnings for the house (when a player loses).
Link copied to clipboard
Central resolution point for all gambling game outcomes.
Link copied to clipboard
Saves the house earnings to disk.