|
TModLoader v1.4.4.9
TModLoader source code documentation
|
| float Terraria.NPC.npcSlots = 1f |
Represents how much this npc counts towards the npc spawn limit. Small critters like worms or flies have values around 0.1f and 0.25f. Enemies that are more difficult than normal have values higher than 1f, and bosses and mini bosses have values around 6.
Proper npcSlots values help balance the game and prevents the player from randomly being overwhelmed by powerful enemies. The Spawn rates section on the NPC spawning wiki pagelists vanilla npcSlots values. Use this as a guide to find a suitable value.
Defaults to 1f.
Definition at line 633 of file NPC.cs.
Referenced by Terraria.NPC.AddIntoPlayersTownNPCSlots(), Terraria.NPC.CheckActive(), Terraria.NPC.SetDefaults(), and Terraria.NPC.SetDefaultsFromNetId().