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

◆ catchItem

int Terraria.NPC.catchItem

The numerical ID of the item that this NPC becomes when caught.
Mainly used for critters that can be caught with bug nets, such as butterflies and worms.
Bug nets and other catching tools will only work on NPCs with this field set to something greater than 0.

Definition at line 509 of file NPC.cs.

Referenced by Terraria.NPC.AI_065_Butterflies(), Terraria.NPC.CheckCatchNPC(), and Terraria.NPC.SetDefaults().