TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ npcCatchable

bool [] Terraria.Main.npcCatchable = new bool[NPCID.Count]
static

Used to denote an NPC as being catchable by bug nets and similar.
Contrary to its name, this array isn't actually used for catching logic at all.
It is instead used to determine if an NPC can be released back into the world after being caught.
These NPC will be forced F:Terraria.NPC.friendly for 1.5 seconds if naturally spawned.

Definition at line 1800 of file Main.cs.

Referenced by Terraria.MessageBuffer.GetData(), Terraria.Main.Initialize_TileAndNPCData1_Part2(), Terraria.NPC.ReleaseNPC(), Terraria.ModLoader.NPCLoader.ResizeArrays(), Terraria.NetMessage.SendData(), and Terraria.NPC.SetDefaults().