Definition at line 83309 of file NPC.cs.
83310 {
83311
83312
83313
83314
83316 {
83320 {
83322 }
83325 {
83327 }
83328 }
83329 else
83330 {
83332 {
83334 }
83336 if (Main.player[
target].dead)
83337 {
83339 }
83341 {
83343 }
83345 {
83346 _ = Main.player[
target].aggro;
83349 bool num = Main.player[
target].itemAnimation == 0 && Main.player[
target].aggro < 0;
83352 {
83354 if ((
float)(targetRect.X + targetRect.Width / 2) <
position.X + (
float)(
width / 2))
83355 {
83357 }
83359 if ((
float)(targetRect.Y + targetRect.Height / 2) <
position.Y + (
float)(
height / 2))
83360 {
83362 }
83363 }
83364 }
83365 }
83367 {
83369 }
83371 {
83373 }
83374 }
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
bool boss
Set to true if the NPC is a boss. Prevents off-screen despawn. Bosses also need [AutoloadBossHead] an...
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
References Terraria.NPC.boss, Terraria.NPC.collideX, Terraria.NPC.collideY, Terraria.NPC.confused, Terraria.Entity.direction, Terraria.NPC.directionY, Terraria.Entity.height, Terraria.NPC.netUpdate, Terraria.Entity.oldDirection, Terraria.NPC.oldDirectionY, Terraria.NPC.oldTarget, Terraria.Main.player, Terraria.Entity.position, Terraria.Main.projectile, Terraria.NPC.target, Terraria.NPC.targetRect, Terraria.NPC.type, and Terraria.Entity.width.
Referenced by Terraria.NPC.TargetClosest(), and Terraria.NPC.TargetClosest_WOF().