Meone101201-RarityWeightMod icon

RarityWeightMod

Configure cosmetic box spawn count and rarity weights per level. Set how many boxes spawn and control the chance of each rarity tier.

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 BoxCount times, stops naturally when no spawn volumes remain
  • All mode: forces BoxCount boxes using compensation window of BoxCount × 3 - 1 attempts
  • 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 EnemyDirector or LevelGenerator
  • Counter resets on SetupHost entry when RunIsLevel() is true