Terraria v1.4.4.9
Terraria 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 53251 of file NPC.cs.

53252 {
53253 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))))
53254 {
53255 switch (npcID)
53256 {
53257 default:
53258 if (npcID != 528 && npcID != 529 && npcID != 530)
53259 {
53260 return npcID == 532;
53261 }
53262 break;
53263 case 409:
53264 case 415:
53265 case 419:
53266 case 425:
53267 case 427:
53268 case 428:
53269 case 429:
53270 case 508:
53271 case 524:
53272 case 525:
53273 case 526:
53274 case 527:
53275 case 580:
53276 case 582:
53277 break;
53278 }
53279 }
53280 return true;
53281 }
Vector2 position
Definition Entity.cs:14

References Terraria.Main.dontStarveWorld, Terraria.Main.eclipse, Terraria.Main.invasionType, Terraria.Main.IsItDay(), Terraria.Main.player, Terraria.Entity.position, Terraria.Main.snowMoon, Terraria.Main.worldSurface, and Microsoft.Xna.Framework.Vector2.Y.

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