deleted unused projectiles + slight havoc buff

This commit is contained in:
sunny-raindrops committed 2026-06-26 13:41:29 -07:00
1 parent 42a3f91b84
commit 23dba8d379
5 files changed
+2 -175

No files matched your search

@@ -598,7 +598,7 @@ TownPiggy: {
Techno: Techno
JohnPork: John Pork
Piglet: Piglet
Poogie: Poogie
Poogie: Poogie
}
Chat: {
@@ -43,7 +43,6 @@ BloodRay.DisplayName: Blood Ray
BlueBubble.DisplayName: Bubble
BlushieStaffProj.DisplayName: Staff of Blushie
BrimroseBeam.DisplayName: Brimrose Beam
BrimstoneHellfireballFriendly.DisplayName: Hellfireball
CauldronProj.DisplayName: Smauldron
CauldronProjSmall.DisplayName: Smaullerdron
ChronoIcicleLarge.DisplayName: Chrono Icicle
@@ -96,7 +95,6 @@ HadalUrnLamprey.DisplayName: Sea Lamprey
HadalUrnStarfish.DisplayName: Marianan Starfish
HadalUrnStarfishShard.DisplayName: Starfish Shard
HeliumFlashBlast.DisplayName: Helium Flash
HellfireExplosionFriendly.DisplayName: Explosion
HellwingBat.DisplayName: Ashen Hellwing
HolyFlame.DisplayName: Holy Flame
HolyLaser.DisplayName: Holy Laser
@@ -1,94 +0,0 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Dusts;
using CalamityMod.NPCs.BrimstoneElemental;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Magic
{
public class BrimstoneHellfireballFriendly : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Magic";
public override string Texture => "CalamityMod/Projectiles/Boss/BrimstoneHellfireball";
public override void SetStaticDefaults()
{
Main.projFrames[Type] = 6;
ProjectileID.Sets.TrailCacheLength[Type] = 3;
ProjectileID.Sets.TrailingMode[Type] = 0;
}
public override void SetDefaults()
{
Projectile.width = 12;
Projectile.height = 12;
Projectile.friendly = true;
Projectile.ignoreWater = true;
Projectile.timeLeft = 300;
Projectile.penetrate = 1;
Projectile.MaxUpdates = 2;
Projectile.DamageType = DamageClass.Magic;
}
public override void AI()
{
//Animation
Projectile.frameCounter++;
if (Projectile.frameCounter > 9)
{
Projectile.frame++;
Projectile.frameCounter = 0;
}
if (Projectile.frame >= 6)
{
Projectile.frame = 0;
}
//Fade in
if (Projectile.alpha > 5)
Projectile.alpha -= 15;
if (Projectile.alpha < 5)
Projectile.alpha = 5;
//Rotation
Projectile.spriteDirection = Projectile.direction = (Projectile.velocity.X > 0).ToDirectionInt();
Projectile.rotation = Projectile.velocity.ToRotation() + (Projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) - MathHelper.ToRadians(90) * Projectile.direction;
int brimDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.Brimstone, 0f, 0f, 170, default, 1.1f);
Main.dust[brimDust].noGravity = true;
Main.dust[brimDust].velocity *= 0.5f;
Main.dust[brimDust].velocity += Projectile.velocity * 0.1f;
Lighting.AddLight(Projectile.Center, (255 - Projectile.alpha) * 0.5f / 255f, (255 - Projectile.alpha) * 0.05f / 255f, (255 - Projectile.alpha) * 0.05f / 255f);
if (Projectile.localAI[0] == 0f)
{
SoundEngine.PlaySound(BrimstoneElemental.HellfireballSound, Projectile.Center);
Projectile.localAI[0] += 1f;
}
// Speed up as time goes on
Projectile.velocity = Projectile.velocity.SafeNormalize(Vector2.UnitX) * (Projectile.velocity.Length() + 0.25f);
}
public override void OnKill(int timeLeft)
{
if (Projectile.owner == Main.myPlayer)
{
int fire = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<HellfireExplosionFriendly>(), (int)(Projectile.damage * 0.66f), Projectile.knockBack, Projectile.owner);
}
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240);
}
public override bool PreDraw(ref Color lightColor)
{
CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor, 1);
return false;
}
}
}
@@ -1,77 +0,0 @@
using System;
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Dusts;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Magic
{
public class HellfireExplosionFriendly : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Magic";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public override void SetDefaults()
{
Projectile.width = 130;
Projectile.height = 130;
Projectile.friendly = true;
Projectile.ignoreWater = true;
Projectile.tileCollide = false;
Projectile.penetrate = -1;
Projectile.timeLeft = 120;
Projectile.DamageType = DamageClass.Magic;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 20;
}
public override void AI()
{
Lighting.AddLight(Projectile.Center, 0.9f, 0f, 0f);
if (Projectile.localAI[0] == 0f)
{
SoundEngine.PlaySound(SoundID.Item20, Projectile.Center);
Projectile.localAI[0] += 1f;
}
float projTimer = 25f;
if (Projectile.ai[0] > 180f)
{
projTimer -= (Projectile.ai[0] - 180f) / 2f;
}
if (projTimer <= 0f)
{
projTimer = 0f;
Projectile.Kill();
}
projTimer *= 0.7f;
Projectile.ai[0] += 4f;
int timerCounter = 0;
while ((float)timerCounter < projTimer)
{
float rando1 = (float)Main.rand.Next(-10, 11);
float rando2 = (float)Main.rand.Next(-10, 11);
float rando3 = (float)Main.rand.Next(3, 9);
float randoAdjuster = (float)Math.Sqrt((double)(rando1 * rando1 + rando2 * rando2));
randoAdjuster = rando3 / randoAdjuster;
rando1 *= randoAdjuster;
rando2 *= randoAdjuster;
int brimDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 1.5f);
Dust dust = Main.dust[brimDust];
dust.noGravity = true;
dust.position.X = Projectile.Center.X;
dust.position.Y = Projectile.Center.Y;
dust.position.X += (float)Main.rand.Next(-10, 11);
dust.position.Y += (float)Main.rand.Next(-10, 11);
dust.velocity.X = rando1;
dust.velocity.Y = rando2;
timerCounter++;
}
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240);
}
}
}
+1 -1
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Ranged
Projectile.MaxUpdates = 3;
Projectile.timeLeft = Lifetime;
Projectile.usesIDStaticNPCImmunity = true;
Projectile.idStaticNPCHitCooldown = 6;
Projectile.idStaticNPCHitCooldown = 5;
}
public override void AI()