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

◆ IsAGravestone

bool [] Terraria.ID.ProjectileID.Sets.IsAGravestone = Factory.CreateBoolSet(false, 202, 201, 204, 43, 203, 205, 527, 528, 529, 530, 531)
static

If true for a given projectile type (F:Terraria.Projectile.type), then that projectile handles player hits in a special way.
If a projectile in this set hits a player, it's F:Terraria.Projectile.ai[0] value is used instead of F:Terraria.Projectile.owner when assigning the damage source.
This has the effect of making the player who dropped the gravestone be responsible for any potential deaths rather than the server.
Defaults to false.

Definition at line 38 of file ProjectileID.cs.

Referenced by Terraria.Projectile.BombsHurtPlayers(), and Terraria.Projectile.Damage().