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

◆ UpdateNPC_BloodMoonTransformations()

void Terraria.NPC.UpdateNPC_BloodMoonTransformations ( )
inlineprivate

Definition at line 108992 of file NPC.cs.

108993 {
108994 if (Main.netMode != 1 && Main.bloodMoon)
108995 {
108996 bool flag = false;
108997 if (value == 0f)
108998 {
108999 flag = true;
109000 }
109002 if (flag)
109003 {
109004 value = 0f;
109005 }
109006 }
109007 }
void AttemptToConvertNPCToEvil(bool crimson)
Definition NPC.cs:109009
float value
How many copper coins the NPC will drop when killed (100 copper coins = 1 silver coin etc....
Definition NPC.cs:1156

References Terraria.Main.bloodMoon, Terraria.WorldGen.crimson, and Terraria.Main.netMode.