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

◆ ShouldLockOn()

static bool Terraria.GameInput.LockOnHelper.ShouldLockOn ( Player p)
inlinestaticprivate

Definition at line 204 of file LockOnHelper.cs.

205 {
206 int type = p.inventory[p.selectedItem].type;
207 if (type == 496)
208 {
209 return false;
210 }
211 return true;
212 }

References Terraria.Player.inventory, Terraria.Player.selectedItem, System.type, and Terraria.Item.type.

Referenced by Terraria.GameInput.LockOnHelper.Update().