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

◆ AttemptToConvertNPCToEvil()

void Terraria.NPC.AttemptToConvertNPCToEvil ( bool crimson)
inline

Definition at line 88690 of file NPC.cs.

88691 {
88692 if (type == 46 || type == 303 || type == 337 || type == 443 || type == 540)
88693 {
88694 if (crimson)
88695 {
88696 Transform(464);
88697 }
88698 else
88699 {
88700 Transform(47);
88701 }
88702 }
88703 else if (type == 55 || type == 230 || type == 592 || type == 593)
88704 {
88705 if (crimson)
88706 {
88707 Transform(465);
88708 }
88709 else
88710 {
88711 Transform(57);
88712 }
88713 }
88714 else if (type == 148 || type == 149)
88715 {
88716 if (crimson)
88717 {
88718 Transform(470);
88719 }
88720 else
88721 {
88722 Transform(168);
88723 }
88724 }
88725 }
int type
Definition NPC.cs:445
void Transform(int newType)
Definition NPC.cs:77913

References System.type.