Winnings and prizes go straight into the inventory #5

Merged
SteamPodEater merged 2 commits from prizes-to-inventory into main 2026-11-10 09:06:38 +00:00
Owner

Requested by Rik · project thread

Independent of #1-#4 (base main).

What changes

  • New Casino.payTo(player, level, machine, n): chips go into the winner's inventory (whatever doesn't fit drops at the player) when the winner is online in the machine's level. Otherwise they pop out of the machine as before, for example for NPC wins or players who logged off.
  • Casino.onWin uses it, so every game's win path pays into the inventory: slots, pachinko, pachislot, wheel, plinko, tables, arena, race, derby, scratch cards and double-or-nothing.
  • Refunds for cancelled rounds and poker cash-outs use it too.
  • The claw machine puts its prize straight into the winner's inventory. It only throws the prize out when the inventory is full or the winner is offline.

Not tested in game

Gradle can't reach maven.neoforged.net from the build container. Checked with the javac syntax check from CLAUDE.md, build_assets.sh and check_trees.py.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MfH3NBzVMUijPYLmpAUPwK

<!-- claude-projects-attribution --> _Requested by **Rik** · [project thread](https://claude.ai/code/project/chan_01GF4aYRVNpT2F67Hfz4fSLG?thread=cmsg_01GF4aYRVNpT2F67Hfz4fSLGMhvpZkiNXCoor32CLK6N17)_ Independent of #1-#4 (base `main`). ## What changes - New `Casino.payTo(player, level, machine, n)`: chips go into the winner's inventory (whatever doesn't fit drops at the player) when the winner is online in the machine's level. Otherwise they pop out of the machine as before, for example for NPC wins or players who logged off. - `Casino.onWin` uses it, so every game's win path pays into the inventory: slots, pachinko, pachislot, wheel, plinko, tables, arena, race, derby, scratch cards and double-or-nothing. - Refunds for cancelled rounds and poker cash-outs use it too. - The claw machine puts its prize straight into the winner's inventory. It only throws the prize out when the inventory is full or the winner is offline. ## Not tested in game Gradle can't reach maven.neoforged.net from the build container. Checked with the javac syntax check from CLAUDE.md, `build_assets.sh` and `check_trees.py`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01MfH3NBzVMUijPYLmpAUPwK
Winnings and prizes go straight into the player's inventory
All checks were successful
Build / build (push) Successful in 3m58s
Build / build (pull_request) Successful in 4m2s
2086b03021
Casino.payTo(player, level, machine, n): chips go into the inventory (what does not fit
drops at the player) when the winner is online in the machine's level, else they pop out
of the machine as before. Used by Casino.onWin (every game's win path) and by the refunds
of games, arena, race gate, derby, pachislot and poker cash-outs. The claw machine puts
its prize straight into the winner's inventory too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MfH3NBzVMUijPYLmpAUPwK
Payouts: pushes into the inventory too, nothing lost right after death
All checks were successful
Build / build (push) Successful in 4m23s
Build / build (pull_request) Successful in 4m27s
0652c4ae3c
- Blackjack push and craps returned stakes go into the inventory (were still dropped).
- payTo and the claw prize fall back to the machine when the player is dead, so chips
  paid in the moment between death and respawn are not lost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MfH3NBzVMUijPYLmpAUPwK
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
SteamPodEater/MakeItRoll!5
No description provided.