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

◆ UpdateNPC_BloodMoonTransformations()

void Terraria.NPC.UpdateNPC_BloodMoonTransformations ( )
inlineprivate

Definition at line 88673 of file NPC.cs.

88674 {
88675 if (Main.netMode != 1 && Main.bloodMoon)
88676 {
88677 bool flag = false;
88678 if (value == 0f)
88679 {
88680 flag = true;
88681 }
88683 if (flag)
88684 {
88685 value = 0f;
88686 }
88687 }
88688 }
void AttemptToConvertNPCToEvil(bool crimson)
Definition NPC.cs:88690
float value
Definition NPC.cs:523

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