TModLoader v1.4.4.9
TModLoader 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 56031 of file NPC.cs.

56032 {
56033 //IL_0015: Unknown result type (might be due to invalid IL or missing references)
56034 if (!Main.player[target].ZoneGraveyard && Main.IsItDay() && (double)npcPosition.Y <= Main.worldSurface * 16.0)
56035 {
56036 if (npcID != 2 && npcID != 133 && npcID != 190 && npcID != 191 && npcID != 192 && npcID != 193 && npcID != 194 && npcID != 317)
56037 {
56038 return npcID == 318;
56039 }
56040 return true;
56041 }
56042 return false;
56043 }
int target
Definition NPC.cs:1019

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: