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

◆ IsAGolfingItem()

static bool Terraria.Item.IsAGolfingItem ( Item item)
inlinestatic

Definition at line 46650 of file Item.cs.

46651 {
46652 if (ProjectileID.Sets.IsAGolfBall[item.shoot])
46653 {
46654 return true;
46655 }
46656 int num = item.type;
46657 if (num == 4039 || (uint)(num - 4092) <= 3u || (uint)(num - 4587) <= 11u)
46658 {
46659 return true;
46660 }
46661 return false;
46662 }

References Terraria.ID.ProjectileID.Sets.IsAGolfBall, and System.item.

Referenced by Terraria.Main.DrawInterface_GolfBallIndicator(), and Terraria.GameContent.Golf.GolfState.Update().