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

◆ GetPartyHatGore()

int Terraria.NPC.GetPartyHatGore ( )
inline

Returns the gore type of the party hat this NPC is currently wearing. If the NPC isn't wearing a party hat, 0 is returned.

Returns

Definition at line 112647 of file NPC.cs.

112648 {
112649 int num = 926;
112650 switch (GetPartyHatColor())
112651 {
112652 case PartyHatColor.Cyan:
112653 num = 940;
112654 break;
112655 case PartyHatColor.Pink:
112656 num = 939;
112657 break;
112658 case PartyHatColor.Purple:
112659 num = 941;
112660 break;
112661 case PartyHatColor.White:
112662 num = 942;
112663 break;
112664 case PartyHatColor.None:
112665 num = 0;
112666 break;
112667 }
112668 return num;
112669 }
PartyHatColor GetPartyHatColor()
Definition NPC.cs:72113