Deleted unused projectiles

This commit is contained in:
sunny-raindrops committed 2026-05-27 21:33:20 -07:00
1 parent 962fffb06c
commit 97174fd3d7
3 files changed
+2 -171

No files matched your search

+2 -2
View File
@@ -54,8 +54,8 @@ namespace CalamityMod.Items.Weapons.Ranged
CreateRecipe().
AddIngredient(ItemID.Megashark).
AddIngredient<Archerfish>().
AddIngredient<Voidstone>(10).
AddIngredient<DepthCells>(10).
AddIngredient<DepthCells>(15).
AddIngredient<PlantyMush>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
@@ -1,72 +0,0 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Ranged
{
public class SeaDragonMuzzleBlast : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Ranged";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public override void SetDefaults()
{
Projectile.width = 80;
Projectile.height = 80;
Projectile.friendly = true;
Projectile.DamageType = DamageClass.Ranged;
Projectile.ignoreWater = true;
Projectile.penetrate = -1;
Projectile.tileCollide = false;
Projectile.timeLeft = 8;
Projectile.MaxUpdates = 4;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = -1;
}
public override void AI()
{
// Belching smoke and flames copied from Handheld Tank with a few edits (lasts 8 frames, but all happens at once due to extra updates)
for (int i = 0; i < 30; ++i)
{
// Pick a random type of fire (there's a little water mixed in)
int dustID;
switch (Main.rand.Next(6))
{
case 0:
dustID = 170;
break;
case 1:
case 2:
dustID = 174;
break;
default:
dustID = 33;
break;
}
// Choose a random speed and angle to belch out the fire
float dustSpeed = Main.rand.NextFloat(3.0f, 13.0f);
float angleRandom = 0.07f;
Vector2 dustVel = new Vector2(dustSpeed, 0.0f).RotatedBy(Projectile.velocity.ToRotation());
dustVel = dustVel.RotatedBy(-angleRandom);
dustVel = dustVel.RotatedByRandom(2.0f * angleRandom);
// Pick a size for the fire particle
float scale = Main.rand.NextFloat(0.7f, 1.8f);
// Actually spawn the fire
int idx = Dust.NewDust(Projectile.Center, 1, 1, dustID, dustVel.X, dustVel.Y, 0, default, scale);
Main.dust[idx].noGravity = true;
Main.dust[idx].position = Projectile.Center;
}
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(BuffID.OnFire3, 240);
}
}
}
-97
View File
@@ -1,97 +0,0 @@
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Ranged
{
public class VoidragonTentacle : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Ranged";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public override void SetDefaults()
{
Projectile.width = 40;
Projectile.height = 40;
Projectile.ignoreWater = true;
Projectile.friendly = true;
Projectile.penetrate = -1;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 5;
Projectile.MaxUpdates = 3;
Projectile.DamageType = DamageClass.Ranged;
Projectile.extraUpdates = 1;
}
public override void AI()
{
Projectile.localAI[1]++;
if (Projectile.velocity.X != Projectile.velocity.X)
{
if (Math.Abs(Projectile.velocity.X) < 1f)
{
Projectile.velocity.X = -Projectile.velocity.X;
}
else
{
Projectile.Kill();
}
}
if (Projectile.velocity.Y != Projectile.velocity.Y)
{
if (Math.Abs(Projectile.velocity.Y) < 1f)
{
Projectile.velocity.Y = -Projectile.velocity.Y;
}
else
{
Projectile.Kill();
}
}
Vector2 center10 = Projectile.Center;
Projectile.scale = 1f - Projectile.localAI[0];
Projectile.width = (int)(20f * Projectile.scale);
Projectile.height = Projectile.width;
Projectile.position.X = center10.X - (float)(Projectile.width / 2);
Projectile.position.Y = center10.Y - (float)(Projectile.height / 2);
if (Projectile.localAI[0] < 0.1f)
{
Projectile.localAI[0] += 0.01f;
}
else
{
Projectile.localAI[0] += 0.025f;
}
if (Projectile.localAI[0] >= 0.95f)
{
Projectile.Kill();
}
Projectile.velocity.X = Projectile.velocity.X + Projectile.ai[0] * 1.5f;
Projectile.velocity.Y = Projectile.velocity.Y + Projectile.ai[1] * 1.5f;
if (Projectile.velocity.Length() > 16f)
{
Projectile.velocity.Normalize();
Projectile.velocity *= 16f;
}
Projectile.ai[0] *= 1.05f;
Projectile.ai[1] *= 1.05f;
if (Projectile.scale < 1f && Projectile.localAI[1] > 5f)
{
int dustAmount = 0;
while ((float)dustAmount < Projectile.scale * 10f)
{
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.PurpleTorch, Projectile.velocity.X, Projectile.velocity.Y, 100, default, 1.3f);
Main.dust[dust].position = (Main.dust[dust].position + Projectile.Center) / 2f;
Main.dust[dust].noGravity = true;
Main.dust[dust].velocity *= 0.1f;
Main.dust[dust].velocity -= Projectile.velocity * (1.1f - Projectile.scale);
Main.dust[dust].fadeIn = (float)(125 + Projectile.owner);
Main.dust[dust].scale += Projectile.scale * 0.75f;
dustAmount++;
}
}
}
}
}