A lightweight and highly customizable mod that allows you to put a hard cap on how many times specific enemy types can spawn during a round. Perfect for fine-tuning game difficulty and preventing infinite enemy spam.
.cfg)Upon running the game for the first time with the mod installed, a configuration file will be generated at BepInEx/config/com.MoyaGz.repo.limitedspawns.cfg.
[General]true/false): Fully enables or disables the spawn limit functionality.[Enemy Settings]3): The maximum number of times a specific enemy type is allowed to spawn per round.36000.0): The timer (in seconds) applied to the enemy instance when a spawn attempt is blocked because the limit was reached..dll file inside your BepInEx/plugins/ directory.EnemyParent.Spawn via a Harmony Prefix patch. If the specific enemy's counter has reached the maximum allowed value, it manually sets its DespawnedTimer and cancels the original spawn process cleanly, ensuring zero performance impact.