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

◆ Boss_CanShootExtraAt()

bool Terraria.NPC.Boss_CanShootExtraAt ( int playerIndex,
int rotationIndexToAttack,
int rotationSize,
float attackScanDistance,
bool alwaysSkipMainTarget = true )
inline

Definition at line 48591 of file NPC.cs.

48592 {
48593 //IL_003e: Unknown result type (might be due to invalid IL or missing references)
48595 {
48596 return false;
48597 }
48599 {
48600 return false;
48601 }
48602 Player player = Main.player[playerIndex];
48603 if (!player.active || player.dead || !playerInteraction[playerIndex])
48604 {
48605 return false;
48606 }
48607 if (Distance(player.Center) > attackScanDistance)
48608 {
48609 return false;
48610 }
48611 return true;
48612 }
float Distance(Vector2 Other)
Definition Entity.cs:275
bool[] playerInteraction
Tracks which T:Terraria.Players have damaged this NPC. Damaging boss minions or other parts of a boss...
Definition NPC.cs:529
int target
Definition NPC.cs:1019

References Terraria.Entity.active, Terraria.Entity.Center, Terraria.Player.dead, Terraria.Entity.Distance(), Terraria.Main.player, Terraria.NPC.playerInteraction, and Terraria.NPC.target.

Referenced by Terraria.NPC.AI_120_HallowBoss(), and Terraria.NPC.SpawnPassiveShadowHands().

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