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

◆ MinionNPCTargetAim()

void Terraria.Player.MinionNPCTargetAim ( bool doNotDisableIfTheTargetIsTheSame)
inline

Definition at line 57952 of file Player.cs.

57953 {
57954 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
57955 //IL_0005: Unknown result type (might be due to invalid IL or missing references)
57956 //IL_0027: Unknown result type (might be due to invalid IL or missing references)
57957 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
57958 //IL_0039: Unknown result type (might be due to invalid IL or missing references)
57959 //IL_003e: Unknown result type (might be due to invalid IL or missing references)
57960 Vector2 mouseWorld = Main.MouseWorld;
57961 int num = -1;
57962 for (int i = 0; i < 200; i++)
57963 {
57964 if (Main.npc[i].CanBeChasedBy(this) && (num == -1 || Main.npc[i].Hitbox.Distance(mouseWorld) < Main.npc[num].Hitbox.Distance(mouseWorld)))
57965 {
57966 num = i;
57967 }
57968 }
57970 {
57972 }
57973 else
57974 {
57976 }
57977 }
int MinionAttackTargetNPC
Definition Player.cs:3121

References Terraria.Player.MinionAttackTargetNPC, Terraria.Main.MouseWorld, and Terraria.Main.npc.

Referenced by Terraria.Player.ItemCheck_MinionAltFeatureUse().

+ Here is the caller graph for this function: