Skip to content

Clarification on the /spawnrate command #1953

Answered by hakusaro
hazylua asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hakusaro
Comment options

Answer selected by hazylua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants