Files
CalamityModPublic/Projectiles/Magic/KeelhaulBubble.cs
T
CongratsIsTrash d9e9226582 Post-Plantera Calamity mage
Includes a functionality change to Anahita's Arpeggio, plus expanding the GFB easter egg
2025-07-07 20:45:31 -04:00

30 lines
1.3 KiB
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Magic
{
public class KeelhaulBubble : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Magic";
public override void SetDefaults()
{
Projectile.width = 14;
Projectile.height = 14;
Projectile.friendly = true;
Projectile.penetrate = 1;
Projectile.timeLeft = 300;
}
public override void OnKill(int timeLeft)
{
foreach (Projectile p in Main.ActiveProjectiles)
{
if (p.type == ModContent.ProjectileType<KeelhaulGeyserBottom>() || p.type == ModContent.ProjectileType<KeelhaulGeyserTop>())
p.Kill();
}
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y - 80f, 0f, 0f, ModContent.ProjectileType<KeelhaulGeyserBottom>(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f);
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y - 80f, 0f, 0f, ModContent.ProjectileType<KeelhaulGeyserTop>(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f);
}
}
}