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

◆ DespawnEncouragement_AIStyle3_Fighters_NotDiscouraged()

static bool Terraria.NPC.DespawnEncouragement_AIStyle3_Fighters_NotDiscouraged ( int npcID,
Vector2 position,
NPC npcInstance )
inlinestatic

Definition at line 64686 of file NPC.cs.

64687 {
64688 //IL_0022: Unknown result type (might be due to invalid IL or missing references)
64689 if (!Main.eclipse && Main.IsItDay() && (npcInstance == null || !npcInstance.SpawnedFromStatue) && !((double)position.Y > Main.worldSurface * 16.0) && (npcInstance == null || !Main.player[npcInstance.target].ZoneGraveyard) && (!Main.snowMoon || (npcID != 343 && npcID != 350)) && (Main.invasionType != 1 || (npcID != 26 && npcID != 27 && npcID != 28 && npcID != 111 && npcID != 471)) && (!Main.dontStarveWorld || (npcID != 164 && npcID != 163)) && npcID != 73 && npcID != 624 && (npcID != 631 || !(npcInstance.ai[2] > 0f)) && (Main.invasionType != 3 || npcID < 212 || npcID > 216) && (Main.invasionType != 4 || (npcID != 381 && npcID != 382 && npcID != 383 && npcID != 385 && npcID != 386 && npcID != 389 && npcID != 391 && npcID != 520)) && npcID != 31 && npcID != 294 && npcID != 295 && npcID != 296 && npcID != 47 && npcID != 67 && npcID != 77 && npcID != 78 && npcID != 79 && npcID != 80 && npcID != 630 && npcID != 110 && npcID != 120 && npcID != 168 && npcID != 181 && npcID != 185 && npcID != 198 && npcID != 199 && npcID != 206 && npcID != 217 && npcID != 218 && npcID != 219 && npcID != 220 && npcID != 239 && npcID != 243 && npcID != 254 && npcID != 255 && npcID != 257 && npcID != 258 && npcID != 291 && npcID != 292 && npcID != 293 && npcID != 379 && npcID != 380 && npcID != 464 && npcID != 470 && npcID != 424 && (npcID != 411 || (npcInstance != null && !(npcInstance.ai[1] >= 180f) && !(npcInstance.ai[1] < 90f))))
64690 {
64691 switch (npcID)
64692 {
64693 default:
64694 if (npcID != 528 && npcID != 529 && npcID != 530)
64695 {
64696 return npcID == 532;
64697 }
64698 break;
64699 case 409:
64700 case 415:
64701 case 419:
64702 case 425:
64703 case 427:
64704 case 428:
64705 case 429:
64706 case 508:
64707 case 524:
64708 case 525:
64709 case 526:
64710 case 527:
64711 case 580:
64712 case 582:
64713 break;
64714 }
64715 }
64716 return true;
64717 }
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28

References Terraria.Main.dontStarveWorld, Terraria.Main.eclipse, Terraria.Main.invasionType, Terraria.Main.IsItDay(), Terraria.Main.player, Terraria.Entity.position, Terraria.Main.snowMoon, and Terraria.Main.worldSurface.

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

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