GambitGambler
Overhauls the Gambit Wheel to scale rewards and punishments based on your Quota and current Money. Gambit now gambles your money instead of your life.
CHANGELOG
v1.0.6
Changes
- Renamed Tax terminology to Steal: The README.md and the Mod Script will refer to the TAX as STEAL.
- Nothing else was changed.
v1.0.5 — The Currency Logic Overhaul
Critical Fixes
- Fixed Stat vs. Valuable Scaling: Resolved a critical unit mismatch. The mod now distinguishes between Run Currency (where an integer of 1 = $1,000) and Valuable Object values (where an integer of 1,000 = $1,000).
- Physical Bag Logic: Physical loot bags now spawn with their correct raw dollar values. Previously, bags often failed to spawn or appeared the wrong size because the code compared raw rewards (e.g., 2500) against "K" thresholds (e.g., 5).
- Bag Sizing Consistency: Loot bag prefabs (Small/Medium/Big) now precisely mirror the sizing thresholds found in the game’s Extraction Point logic:
- Small: $1 – $5,000.
- Medium: $5,001 – $10,000.
- Big: $10,001+.
- Tax Safety Check: Fixed a math error where ExecuteTax could incorrectly trigger a total wipeout. The code now converts the level Haul Goal into "K" units before calculating the minimum tax floor, preventing the game from thinking a player with money is "broke".
- Quota Calculation: Reward amounts are now correctly derived from the raw Haul Goal integer, ensuring payouts scale accurately with the level's difficulty.
Balance & Game Logic Updates (Gambit Roulette)
- Green Outcome: Rewards are now strictly 15%–30% of the Haul Goal.
- Direct Deposit vs. Loot Bag: Wins under $5,000 are now consistently handled as a Direct Deposit to your Run Currency. Wins of $5,000 or more spawn physical loot bags to be hauled.
- Red Tax (ExecuteTax):
- Normal Roll: 15%–30% deduction (80% chance).
- Greedy Roll: 31%–51% deduction (20% chance).
- Dynamic Alert Messaging: The "Broke" penalty now features context-aware messages:
- Bankrupt: Triggered if you land on a penalty while already at $0.
- Fool: Triggered if you have money, but not enough to pay the Gambit's specific tax demand.
- Black Outcome (ExecuteBankruptcy): If a player lands on Black while at $0, it now correctly triggers the TriggerEnemyAlert penalty instead of just displaying a redundant message.
Technical Explanation
- The "Unit Mismatch" Fix: The mod now correctly interfaces with the two separate currency systems used in the game's core:
- Run Currency (Stat): Handled in "K" units (e.g., 5 = $5,000).
- Valuable Objects: Handled in raw dollar units (e.g., 5000 = $5,000).
- Extraction Point Compatibility: By assigning the raw dollar value to the
dollarValueOverridefield, bags spawned by the Gambit now correctly contribute the full amount toward the Haul Goal when processed by an Extraction Point.
v1.0.4
- Corrected Version Dependency for BepInExPack
- Updated README.md
v1.0.3
- I promise this is the final hotfix. Updated README with clearer installation instructions.
- Transferred all changelogs from README.md to CHANGELOG.md
v1.0.2
- Fixed an oopsie. Uploaded the wrong file and forgot to include .dll!
v1.0.1
- Attempted to fix the oopsie.
v1.0.0
- Initial Release.
- Implemented Quota-based scaling for rewards.
- Implemented Percent-based scaling for taxes/bankruptcy.
- Added "Smart Bag" spawning to reduce item clutter on big wins.