[PR #141] [MERGED] SMP 0.28.0: casino daily win cap (10,000 net a day) #142

Closed
opened 2026-11-03 04:03:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-mods/pull/141
Author: @ludovic111
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/smp-casino-win-cap


📝 Commits (3)

  • 7257e32 SMP futures: the rules (perpetuals on market prices, house = insurance fund)
  • 5ba6179 SMP 0.27.0: futures in the game (/futures menu, minute marking)
  • 31d7751 SMP 0.28.0: the casino's daily win cap (10,000 net a day, configurable)

📊 Changes

10 files changed (+1545 additions, -10 deletions)

View changed files

📝 native/smp/Cargo.lock (+1 -1)
📝 native/smp/Cargo.toml (+1 -1)
📝 native/smp/README.md (+21 -2)
📝 native/smp/mixins/smp/glue.rs (+171 -3)
📝 native/smp/mixins/smp/horizon-mixin.toml (+7 -1)
📝 native/smp/mixins/smp/smp_casino.rs (+54 -1)
📝 native/smp/mixins/smp/smp_casino_roulette.rs (+1 -0)
➕ native/smp/mixins/smp/smp_futures.rs (+1286 -0)
📝 native/smp/proof.py (+1 -1)
📝 native/smp/src/lib.rs (+2 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Player feedback after the 21:09Z restart: /sell has a daily limit, the casino had none on winnings.

  • New casino.daily_win_cap (default 10,000, same as daily_loss_cap): once a player's net casino winnings today (paid back minus staked, all games) reach it, new bets are refused until 00:00 UTC: "Daily win limit: you have won X today, the most a day (10,000 coins). The casino opens again for you at 00:00 UTC."
  • The round that crosses the cap is paid in full; a blackjack double inside a hand already dealt still works (the round is already in play).
  • /casino help and the README state the cap.
  • Test the_daily_win_cap_stops_new_bets: under the cap, crossing it, refusal with nothing held, another player unaffected, reset at the next day.

Stacked on #135 (futures, 0.27.0), which is stacked on #134 (0.26.0): this is 0.28.0 and merges after them. Ships at the next batched restart (DEPLOY.md).

cargo test --lib: 154 passed; cargo clippy --lib --tests -D warnings: clean.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon-mods/pull/141 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/smp-casino-win-cap` --- ### 📝 Commits (3) - [`7257e32`](https://github.com/horizon-rust/horizon-mods/commit/7257e322375fa0893647f2c716562c876d293b05) SMP futures: the rules (perpetuals on market prices, house = insurance fund) - [`5ba6179`](https://github.com/horizon-rust/horizon-mods/commit/5ba617927fc1d17e2eae6dd32bcdb24fde6e3640) SMP 0.27.0: futures in the game (/futures menu, minute marking) - [`31d7751`](https://github.com/horizon-rust/horizon-mods/commit/31d77513fed3f938fb8773f5fc9bdb6b512889b5) SMP 0.28.0: the casino's daily win cap (10,000 net a day, configurable) ### 📊 Changes **10 files changed** (+1545 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `native/smp/Cargo.lock` (+1 -1) 📝 `native/smp/Cargo.toml` (+1 -1) 📝 `native/smp/README.md` (+21 -2) 📝 `native/smp/mixins/smp/glue.rs` (+171 -3) 📝 `native/smp/mixins/smp/horizon-mixin.toml` (+7 -1) 📝 `native/smp/mixins/smp/smp_casino.rs` (+54 -1) 📝 `native/smp/mixins/smp/smp_casino_roulette.rs` (+1 -0) ➕ `native/smp/mixins/smp/smp_futures.rs` (+1286 -0) 📝 `native/smp/proof.py` (+1 -1) 📝 `native/smp/src/lib.rs` (+2 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Player feedback after the 21:09Z restart: `/sell` has a daily limit, the casino had none on winnings. - New `casino.daily_win_cap` (default 10,000, same as `daily_loss_cap`): once a player's net casino winnings today (paid back minus staked, all games) reach it, new bets are refused until 00:00 UTC: "Daily win limit: you have won X today, the most a day (10,000 coins). The casino opens again for you at 00:00 UTC." - The round that crosses the cap is paid in full; a blackjack double inside a hand already dealt still works (the round is already in play). - `/casino help` and the README state the cap. - Test `the_daily_win_cap_stops_new_bets`: under the cap, crossing it, refusal with nothing held, another player unaffected, reset at the next day. Stacked on #135 (futures, 0.27.0), which is stacked on #134 (0.26.0): this is **0.28.0** and merges after them. Ships at the next batched restart (DEPLOY.md). `cargo test --lib`: 154 passed; `cargo clippy --lib --tests -D warnings`: clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:03:36 +07:00
Sign in to join this conversation.
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
horizon-rust/horizon-mods#142
No description provided.