Spin Calculate
This node updates the player's session state based on spin results.
The Spin Calculate node manages the wallet, statistics, and counters.
The Spin Calculate node takes the results of a spin (winnings, hits, etc.) and updates the running totals for the session. It calculates the new capital (balance), total bets, total winnings, and spin counts.
Inputs
Inputs
| Data | Description |
|---|---|
| Capital | Current player balance. |
| Bet Amount | Amount bet on this spin. |
| Spin Winnings | Amount won in this spin. |
| Total Bets | Running total of all bets. |
| Total Winnings | Running total of all winnings. |
| Current Free Spins | Number of free spins remaining. |
| Spin Count | Total spins played. |
| Hits | Total number of winning spins. |
Actions
| Signal | Description |
|---|---|
| Do | Triggers the calculation. |
Outputs
Results
| Data | Description |
|---|---|
| Capital | Updated balance. |
| Total Bets | Updated total bets. |
| Total Winnings | Updated total winnings. |
| Spin Count | Updated spin count. |
| Hits | Updated hit count. |
Events
| Signal | Description |
|---|---|
| Done | Triggered when calculation is complete. |
Usage
Session Management
- Store
Capital,TotalBets, etc., in Variables. - After a spin, pass the current variable values and the new
Spin Winningsto Spin Calculate. - Trigger Do.
- Update the Variables with the new output values.
Detailed Behavior
- Free Spins: If
Current Free Spins> 0, theBet Amountis not deducted fromCapital(free spins are free). - Stats: It increments
Hitsonly ifSpin Winnings> 0.
Troubleshooting
- Balance Draining: If balance drops during free spins, ensure
Current Free Spinsis correctly passed as > 0.
Was this page helpful?