-
Just a quick question about how the /spawnrate command works: is it just a modifier on top of the current world spawn rate or does it modify the current spawn rate directly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Somewhat confusingly, the lower the spawnrate, the more things will spawn. TShock modifies |
Beta Was this translation helpful? Give feedback.
Somewhat confusingly, the lower the spawnrate, the more things will spawn. TShock modifies
NPC.defaultSpawnRate
. Higher difficulty modes will multiply this value by a multiplier less than one, which reduces the "spawn rate" value but causes more things to spawn. The way that the game actually processes this is a bit complex, but suffice it to say that if you want a lot of things, set it lower. If you want a lot less, set it higher. Default is 600, and higher difficulties act as a multiplier on top. E.g., https://github.com/Pryaxis/Sources/blob/b66ed5b2/1.4.0.4/Terraria/NPC.cs#L73326