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

◆ IsAGolfingItem()

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

Definition at line 47897 of file Item.cs.

47898 {
47899 if (ProjectileID.Sets.IsAGolfBall[item.shoot])
47900 {
47901 return true;
47902 }
47903 int num = item.type;
47904 if (num == 4039 || (uint)(num - 4092) <= 3u || (uint)(num - 4587) <= 11u)
47905 {
47906 return true;
47907 }
47908 return false;
47909 }
static bool[] IsAGolfBall
If true for a given projectile type (F:Terraria.Projectile.type), then that projectile is a kind of g...

References Terraria.ID.ProjectileID.Sets.IsAGolfBall, Terraria.Item.shoot, and Terraria.Item.type.

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

+ Here is the caller graph for this function: