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

◆ DespawnEncouragement_AIStyle2_FloatingEye_IsDiscouraged()

static bool Terraria.NPC.DespawnEncouragement_AIStyle2_FloatingEye_IsDiscouraged ( int npcID,
Vector2 npcPosition,
int target = 255 )
inlinestatic

Definition at line 46056 of file NPC.cs.

46057 {
46058 if (!Main.player[target].ZoneGraveyard && Main.IsItDay() && (double)npcPosition.Y <= Main.worldSurface * 16.0)
46059 {
46060 if (npcID != 2 && npcID != 133 && npcID != 190 && npcID != 191 && npcID != 192 && npcID != 193 && npcID != 194 && npcID != 317)
46061 {
46062 return npcID == 318;
46063 }
46064 return true;
46065 }
46066 return false;
46067 }
int target
Definition NPC.cs:459

References Terraria.Main.IsItDay(), Terraria.Main.player, Terraria.NPC.target, and Terraria.Main.worldSurface.

Referenced by Terraria.NPC.AI_002_FloatingEye(), and Terraria.GameContent.CoinLossRevengeSystem.RevengeMarker.WouldNPCBeDiscouraged().