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

◆ CanCutTiles()

bool Terraria.Projectile.CanCutTiles ( )
inlineprivate

Definition at line 14222 of file Projectile.cs.

14223 {
14224 bool? flag = ProjectileLoader.CanCutTiles(this);
14225 if (flag.HasValue)
14226 {
14227 return flag.GetValueOrDefault();
14228 }
14229 if (aiStyle != 45 && aiStyle != 137 && aiStyle != 92 && aiStyle != 105 && aiStyle != 106 && !ProjectileID.Sets.IsAGolfBall[type] && type != 463 && type != 69 && type != 70 && type != 621 && type != 10 && type != 11 && type != 379 && type != 407 && type != 476 && type != 623 && (type < 625 || type > 628) && type != 833 && type != 834 && type != 835 && type != 818 && type != 831 && type != 820 && type != 864 && type != 970 && type != 995 && type != 908)
14230 {
14231 return type != 1020;
14232 }
14233 return false;
14234 }
static bool[] IsAGolfBall
If true for a given projectile type (F:Terraria.Projectile.type), then that projectile is a kind of g...
static ? bool CanCutTiles(Projectile projectile)
This serves as the central class from which projectile-related functions are carried out....
int aiStyle
Selects which vanilla code to use for the AI method. Vanilla projectile AI styles are enumerated in t...
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...

References Terraria.Projectile.aiStyle, Terraria.ModLoader.ProjectileLoader.CanCutTiles(), Terraria.ID.ProjectileID.Sets.IsAGolfBall, and Terraria.Projectile.type.

Referenced by Terraria.Projectile.CutTiles(), and Terraria.Projectile.HandleMovement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: