feat(catalog): implement LTD raffle system#9
Merged
Diddyy merged 5 commits intonitrodevco:devfrom Feb 10, 2026
Merged
Conversation
- Added weighted selection based on badges, account age, achievement score, friend count, room count, and furniture count - Implemented 20s buffer window with automatic drawing logic - Added support for both randomized and sequential serial numbers - Implemented Landing View countdown timer (Header 2178) - Added 'One-Per-Customer' anti-hoarding policy - Refactored to lean, high-performance C# 12 patterns (Primary Constructors, Collection Expressions)
c106942 to
c1d7cf8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a comprehensive Limited Edition (LTD) system tailored for modern Habbo standards. It introduces a
weighted raffle mechanism to combat bot-sniping, a two-phase sale process (Raffle -> FCFS), and full Landing View
integration for drop countdowns.
Key Features
LtdRaffleGrainmanages a configurable buffer window (default 20s). Players join apool rather than buying instantly, ensuring fair distribution during high-traffic drops.
appsettings.json):LimitedOfferAppearingNext) to display countdown timers on the HotelView and automatically disable/hide "Buy" buttons until the drop is live.
has_raffle_finishedstate tracking to ensure raffle states survive emulator restarts.Technical Highlights
double-minting or duplicate serials.
IPlayerGrainsnapshots for weighting factor lookups to avoid database hammering during the20-second rush.
IPlayerWalletGrainrefactoring (removal ofGetSnapshotAsync).condensed logic to avoid over-engineering.
⚙️ Configuration
Hotel owners can tune fairness and timing directly via appsettings.json:
🗄 Database Changes
✅ Checklist