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

◆ UpdateAltTexture()

void Terraria.NPC.UpdateAltTexture ( )
inline

Definition at line 87028 of file NPC.cs.

87029 {
87030 if (townNPC)
87031 {
87033 bool flag = BirthdayParty.PartyIsUp || ForcePartyHatOn;
87034 if (type == 441 || type == 453 || type == 633)
87035 {
87036 flag = false;
87037 }
87038 altTexture = 0;
87039 if (flag)
87040 {
87041 altTexture = 1;
87042 }
87043 if (type == 633 && ShouldBestiaryGirlBeLycantrope())
87044 {
87045 altTexture = 2;
87046 }
87047 if (!ForcePartyHatOn)
87048 {
87050 }
87051 }
87052 }
bool ShouldBestiaryGirlBeLycantrope()
Definition NPC.cs:90417
bool ForcePartyHatOn
Definition NPC.cs:35
int type
Definition NPC.cs:445
int altTexture
Definition NPC.cs:99
void MakeTransitionEffectsForTextureChanges(int oldAltTexture, int currentAltTexture)
Definition NPC.cs:87054
bool townNPC
Definition NPC.cs:537

References System.type.