TModLoader
v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
◆
AttemptToConvertNPCToEvil()
void
Terraria.NPC.AttemptToConvertNPCToEvil
(
bool
crimson
)
inline
Definition at line
109009
of file
NPC.cs
.
109010
{
109011
if
(
type
== 46 ||
type
== 303 ||
type
== 337 ||
type
== 443 ||
type
== 540)
109012
{
109013
if
(crimson)
109014
{
109015
Transform
(464);
109016
}
109017
else
109018
{
109019
Transform
(47);
109020
}
109021
}
109022
else
if
(
type
== 55 ||
type
== 230 ||
type
== 592 ||
type
== 593)
109023
{
109024
if
(crimson)
109025
{
109026
Transform
(465);
109027
}
109028
else
109029
{
109030
Transform
(57);
109031
}
109032
}
109033
else
if
(
type
== 148 ||
type
== 149)
109034
{
109035
if
(crimson)
109036
{
109037
Transform
(470);
109038
}
109039
else
109040
{
109041
Transform
(168);
109042
}
109043
}
109044
}
Terraria.NPC.type
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
Definition
NPC.cs:990
Terraria.NPC.Transform
void Transform(int newType)
Definition
NPC.cs:91590
Terraria
NPC
Generated by
1.10.0