Files
Erupe/server
Houmgaor 6ccbc24a4a fix(gacha): prevent infinite loop in getRandomEntries
Add guards for edge cases:
- Empty entries with rolls > 0
- Zero or negative rolls
- Zero total weight in non-box mode
- Box mode with more rolls than available entries

Previously these cases caused infinite loops or panics.
2026-02-05 08:51:09 +01:00
..