Finish set bonuses, add more options to the Avali Trader
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user