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
{
87032
int
oldAltTexture
=
altTexture
;
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
{
87049
MakeTransitionEffectsForTextureChanges
(
oldAltTexture
,
altTexture
);
87050
}
87051
}
87052
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
Terraria.NPC.ShouldBestiaryGirlBeLycantrope
bool ShouldBestiaryGirlBeLycantrope()
Definition
NPC.cs:90417
Terraria.NPC.ForcePartyHatOn
bool ForcePartyHatOn
Definition
NPC.cs:35
Terraria.NPC.type
int type
Definition
NPC.cs:445
Terraria.NPC.altTexture
int altTexture
Definition
NPC.cs:99
Terraria.NPC.MakeTransitionEffectsForTextureChanges
void MakeTransitionEffectsForTextureChanges(int oldAltTexture, int currentAltTexture)
Definition
NPC.cs:87054
Terraria.NPC.townNPC
bool townNPC
Definition
NPC.cs:537
References
System.type
.
Terraria
NPC
Generated by
1.10.0