tModLoader Spawn rate(question)

ripper94

Terrarian
Hello guys i'd like to know beside hosting a server to get acces to commands isn't there a way/mod to make us able to make the spawn rate faster beside using water candle and battle potion ?
 
I've added this to Cheat Sheet.

If you are wondering about the code, this is the relevant portion, in case you wanted to make your own mod:
Code:
    class SpawnRateMultiplierGlobalNPC : GlobalNPC
    {
        public override void EditSpawnRate(Player player, ref int spawnRate, ref int maxSpawns)
        {
            spawnRate = (int)(spawnRate / SpawnRateMultiplier.currentMultiplier);
            maxSpawns = (int)(maxSpawns * SpawnRateMultiplier.currentMultiplier);
        }
    }
 
Back
Top Bottom