Update HydrothermalSmoke.cs

- Decreased scale of the fiery dust effect
- Removed the chance for the fire dust trail to be replaced with cloud dust
- Replaced the spore-esque gores used for mist and replaced it with appropriate particles
- Decreased the overall chance for the effects to occur per loop to make them less visually busy
This commit is contained in:
Nathanael Overton authored and Cameron Ewell committed 2025-07-07 20:35:55 -04:00
1 parent 36ceaeda14
commit 49eeed10d4
1 file changed
+12 -16
+12 -16
View File
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -10,6 +11,7 @@ namespace CalamityMod.Projectiles.Typeless
public new string LocalizationCategory => "Projectiles.Typeless";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public override void SetDefaults()
{
Projectile.width = 20;
@@ -23,21 +25,13 @@ namespace CalamityMod.Projectiles.Typeless
public override void AI()
{
if (Projectile.timeLeft == 6)
Projectile.Center = Main.player[Projectile.owner].Center;
int randomDust = Main.rand.Next(4);
if (randomDust == 3)
if (Main.rand.NextBool(6))
{
randomDust = 16;
}
else
{
randomDust = 127;
}
if (Main.rand.NextBool(4))
{
int fieryDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, randomDust, 0f, 0f, 100, default, 1f);
int fieryDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Flare, 0f, 0f, 100, default, 0.7f);
if (Main.rand.NextBool(4))
{
Main.dust[fieryDust].scale *= 0.35f;
@@ -45,11 +39,13 @@ namespace CalamityMod.Projectiles.Typeless
Main.dust[fieryDust].velocity *= 0f;
}
Vector2 goreVec = Projectile.position;
if (Main.rand.NextBool(8) && !Main.dedServ)
if (Main.rand.NextBool(9) && !Main.dedServ)
{
int smoke = Gore.NewGore(Projectile.GetSource_FromAI(), goreVec, default, Main.rand.Next(375, 378), 0.75f);
Main.gore[smoke].behindTiles = true;
float upwardVariation = Main.rand.NextFloat(-4.5f, -8f);
MediumMistParticle mist = new MediumMistParticle(Projectile.position, -Projectile.velocity + new Vector2(0.5f, upwardVariation), // This velocity makes it slowly float upward
Main.rand.NextBool(3) ? Color.DeepSkyBlue : Color.SkyBlue, Color.LightSkyBlue, Main.rand.NextFloat(0.4f, 0.65f), 130);
GeneralParticleHandler.SpawnParticle(mist);
}
}