Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
RarityWeightMod
Configure cosmetic box spawn count and rarity weights per level. Set how many boxes spawn and control the chance of each rarity tier.
By Meone101201
CHANGELOG
Changelog
v1.0.0 (2026-05-28)
Added
- Initial release
- Enabled toggle: enable or disable the mod without uninstalling
- SpawnMode enum: Volume or All, switchable in config
- Volume mode: runs spawn loop up to
BoxCounttimes, stops naturally when no spawn volumes remain - All mode: forces
BoxCountboxes using compensation window ofBoxCount × 3 - 1attempts - Configurable range: 1–20 boxes per level
- Rarity weight system: independent weight for Common, Uncommon, Rare, and UltraRare (ratio-based)
- Level-only guard: all patches check
SemiFunc.RunIsLevel()— no effect in shop, lobby, or arena
Technical
- Targets:
ValuableDirector.SpawnCosmeticWorldObject(Prefix),CosmeticWorldObjectLevelLoopsClampedGet(Postfix),CosmeticWorldObjectLevelLoopsGet(Postfix),SetupHost(Prefix) - No patches to
EnemyDirectororLevelGenerator - Counter resets on
SetupHostentry whenRunIsLevel()is true