24 lines
737 B
C#
24 lines
737 B
C#
using Terraria;
|
|
using Terraria.DataStructures;
|
|
using Terraria.ModLoader;
|
|
using ForgottenWawiTech.Content.Projectiles.Protogen;
|
|
|
|
namespace ForgottenWawiTech.Content.GlobalProjectiles
|
|
{
|
|
public class ProtogenSentinelGlobalProjectile : GlobalProjectile
|
|
{
|
|
public bool DisableSentinelSplit { get; set; }
|
|
|
|
public override bool InstancePerEntity => true;
|
|
|
|
public override void OnSpawn(Projectile projectile, IEntitySource source)
|
|
{
|
|
if (projectile.type == ModContent.ProjectileType<ProtogenSentinelFragment>() ||
|
|
projectile.type == ModContent.ProjectileType<ProtogenSentinelCoreBeam>())
|
|
{
|
|
DisableSentinelSplit = true;
|
|
}
|
|
}
|
|
}
|
|
}
|