From f113254d0010c7607d8ca972c04bb6d0c72b36fb Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sun, 24 Jul 2022 03:33:48 -0500 Subject: [PATCH] 1 - Slime God dust color adjustments. 2 - Slime Gods reduce their X velocity dramatically upon teleporting to avoid cheap hits. --- NPCs/SlimeGod/CorruptSlimeSpawn.cs | 5 ++++- NPCs/SlimeGod/CorruptSlimeSpawn2.cs | 6 ++++-- NPCs/SlimeGod/CrimsonSlimeSpawn.cs | 6 ++++-- NPCs/SlimeGod/CrimsonSlimeSpawn2.cs | 6 ++++-- NPCs/SlimeGod/CrimulanSlimeGod.cs | 15 ++++++++++++--- NPCs/SlimeGod/EbonianSlimeGod.cs | 15 ++++++++++++--- NPCs/SlimeGod/SlimeGodCore.cs | 6 ++++++ NPCs/SlimeGod/SplitCrimulanSlimeGod.cs | 21 +++++++++++++++------ NPCs/SlimeGod/SplitEbonianSlimeGod.cs | 21 +++++++++++++++------ Projectiles/Boss/UnstableCrimulanGlob.cs | 4 +++- Projectiles/Boss/UnstableEbonianGlob.cs | 4 +++- Projectiles/Enemy/CrimsonSpike.cs | 8 ++++++-- 12 files changed, 88 insertions(+), 29 deletions(-) diff --git a/NPCs/SlimeGod/CorruptSlimeSpawn.cs b/NPCs/SlimeGod/CorruptSlimeSpawn.cs index 5cfe60082c..d89edfc68b 100644 --- a/NPCs/SlimeGod/CorruptSlimeSpawn.cs +++ b/NPCs/SlimeGod/CorruptSlimeSpawn.cs @@ -62,9 +62,12 @@ namespace CalamityMod.NPCs.SlimeGod Vector2 spawnAt = NPC.Center + new Vector2(0f, (float)NPC.height / 2f); NPC.NewNPC(NPC.GetSource_Loot(), (int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType()); } + + Color dustColor = Color.Lavender; + dustColor.A = 150; for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Lavender, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f); } } diff --git a/NPCs/SlimeGod/CorruptSlimeSpawn2.cs b/NPCs/SlimeGod/CorruptSlimeSpawn2.cs index e76a0c9164..f70718e168 100644 --- a/NPCs/SlimeGod/CorruptSlimeSpawn2.cs +++ b/NPCs/SlimeGod/CorruptSlimeSpawn2.cs @@ -43,15 +43,17 @@ namespace CalamityMod.NPCs.SlimeGod public override void HitEffect(int hitDirection, double damage) { + Color dustColor = Color.Lavender; + dustColor.A = 150; for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Lavender, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f); } if (NPC.life <= 0) { for (int k = 0; k < 20; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Lavender, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f); } } } diff --git a/NPCs/SlimeGod/CrimsonSlimeSpawn.cs b/NPCs/SlimeGod/CrimsonSlimeSpawn.cs index 590bc1da31..93d7d11eca 100644 --- a/NPCs/SlimeGod/CrimsonSlimeSpawn.cs +++ b/NPCs/SlimeGod/CrimsonSlimeSpawn.cs @@ -58,15 +58,17 @@ namespace CalamityMod.NPCs.SlimeGod public override void HitEffect(int hitDirection, double damage) { + Color dustColor = Color.Crimson; + dustColor.A = 150; for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f); } if (NPC.life <= 0) { for (int k = 0; k < 20; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f); } } } diff --git a/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs b/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs index 02efbd4467..762ae98198 100644 --- a/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs +++ b/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs @@ -146,15 +146,17 @@ namespace CalamityMod.NPCs.SlimeGod public override void HitEffect(int hitDirection, double damage) { + Color dustColor = Color.Crimson; + dustColor.A = 150; for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f); } if (NPC.life <= 0) { for (int k = 0; k < 20; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f); } } } diff --git a/NPCs/SlimeGod/CrimulanSlimeGod.cs b/NPCs/SlimeGod/CrimulanSlimeGod.cs index 1be70cc261..fa808cbb46 100644 --- a/NPCs/SlimeGod/CrimulanSlimeGod.cs +++ b/NPCs/SlimeGod/CrimulanSlimeGod.cs @@ -160,6 +160,9 @@ namespace CalamityMod.NPCs.SlimeGod // Avoid cheap bullshit NPC.damage = 0; + // Slow down dramatically + NPC.velocity.X *= 0.5f; + NPC.ai[0] = 5f; NPC.ai[1] = 0f; NPC.ai[2] = 0f; @@ -574,9 +577,11 @@ namespace CalamityMod.NPCs.SlimeGod } // Emit teleport dust + Color dustColor = Color.Crimson; + dustColor.A = 150; for (int num245 = 0; num245 < 10; num245++) { - int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Crimson, 2f); + int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f); Main.dust[num246].noGravity = true; Main.dust[num246].velocity *= 0.5f; } @@ -606,9 +611,11 @@ namespace CalamityMod.NPCs.SlimeGod } // Emit teleport dust + Color dustColor = Color.Crimson; + dustColor.A = 150; for (int num245 = 0; num245 < 10; num245++) { - int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Crimson, 2f); + int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f); Main.dust[num246].noGravity = true; Main.dust[num246].velocity *= 0.5f; } @@ -671,9 +678,11 @@ namespace CalamityMod.NPCs.SlimeGod public override void HitEffect(int hitDirection, double damage) { + Color dustColor = Color.Crimson; + dustColor.A = 150; for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f); } } diff --git a/NPCs/SlimeGod/EbonianSlimeGod.cs b/NPCs/SlimeGod/EbonianSlimeGod.cs index c78122f088..8bbfaf5be5 100644 --- a/NPCs/SlimeGod/EbonianSlimeGod.cs +++ b/NPCs/SlimeGod/EbonianSlimeGod.cs @@ -153,6 +153,9 @@ namespace CalamityMod.NPCs.SlimeGod // Avoid cheap bullshit NPC.damage = 0; + // Slow down dramatically + NPC.velocity.X *= 0.5f; + NPC.ai[0] = 6f; NPC.ai[1] = 0f; NPC.ai[2] = 0f; @@ -587,9 +590,11 @@ namespace CalamityMod.NPCs.SlimeGod } // Emit teleport dust + Color dustColor = Color.Lavender; + dustColor.A = 150; for (int num245 = 0; num245 < 10; num245++) { - int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Lavender, 2f); + int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f); Main.dust[num246].noGravity = true; Main.dust[num246].velocity *= 0.5f; } @@ -619,9 +624,11 @@ namespace CalamityMod.NPCs.SlimeGod } // Emit teleport dust + Color dustColor = Color.Lavender; + dustColor.A = 150; for (int num245 = 0; num245 < 10; num245++) { - int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Lavender, 2f); + int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f); Main.dust[num246].noGravity = true; Main.dust[num246].velocity *= 0.5f; } @@ -684,9 +691,11 @@ namespace CalamityMod.NPCs.SlimeGod public override void HitEffect(int hitDirection, double damage) { + Color dustColor = Color.Lavender; + dustColor.A = 150; for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Lavender, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f); } } diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index 65b12186d2..c1a18540fd 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -188,6 +188,7 @@ namespace CalamityMod.NPCs.SlimeGod for (int k = 0; k < 5; k++) { Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson; + color.A = 150; Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, color, 1f); } @@ -214,6 +215,7 @@ namespace CalamityMod.NPCs.SlimeGod for (int num621 = 0; num621 < 40; num621++) { Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson; + color.A = 150; int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, color, 2f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) @@ -225,6 +227,7 @@ namespace CalamityMod.NPCs.SlimeGod for (int num623 = 0; num623 < 70; num623++) { Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson; + color.A = 150; int num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, color, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; @@ -338,6 +341,7 @@ namespace CalamityMod.NPCs.SlimeGod for (int i = 0; i < 20; i++) { Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson; + color.A = 150; int dust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, color, 2f); Main.dust[dust2].velocity *= 3f; if (Main.rand.NextBool(2)) @@ -349,6 +353,7 @@ namespace CalamityMod.NPCs.SlimeGod for (int j = 0; j < 30; j++) { Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson; + color.A = 150; int dust2 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, color, 3f); Main.dust[dust2].noGravity = true; Main.dust[dust2].velocity *= 5f; @@ -610,6 +615,7 @@ namespace CalamityMod.NPCs.SlimeGod for (int k = 0; k < 5; k++) { Color color = Main.rand.NextBool() ? Color.Lavender : Color.Crimson; + color.A = 150; Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, color, 1f); } } diff --git a/NPCs/SlimeGod/SplitCrimulanSlimeGod.cs b/NPCs/SlimeGod/SplitCrimulanSlimeGod.cs index 72484f2c32..a5d5719b3d 100644 --- a/NPCs/SlimeGod/SplitCrimulanSlimeGod.cs +++ b/NPCs/SlimeGod/SplitCrimulanSlimeGod.cs @@ -164,6 +164,9 @@ namespace CalamityMod.NPCs.SlimeGod // Avoid cheap bullshit NPC.damage = 0; + // Slow down dramatically + NPC.velocity.X *= 0.5f; + NPC.ai[0] = 5f; NPC.ai[1] = 0f; NPC.ai[2] = 0f; @@ -566,9 +569,11 @@ namespace CalamityMod.NPCs.SlimeGod } // Emit teleport dust + Color dustColor = Color.Crimson; + dustColor.A = 150; for (int num245 = 0; num245 < 10; num245++) { - int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Crimson, 2f); + int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f); Main.dust[num246].noGravity = true; Main.dust[num246].velocity *= 0.5f; } @@ -598,9 +603,11 @@ namespace CalamityMod.NPCs.SlimeGod } // Emit teleport dust + Color dustColor = Color.Crimson; + dustColor.A = 150; for (int num245 = 0; num245 < 10; num245++) { - int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Crimson, 2f); + int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f); Main.dust[num246].noGravity = true; Main.dust[num246].velocity *= 0.5f; } @@ -676,9 +683,11 @@ namespace CalamityMod.NPCs.SlimeGod public override void HitEffect(int hitDirection, double damage) { + Color dustColor = Color.Crimson; + dustColor.A = 150; for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Crimson, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f); } if (NPC.life <= 0) { @@ -690,7 +699,7 @@ namespace CalamityMod.NPCs.SlimeGod NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2); for (int num621 = 0; num621 < 40; num621++) { - int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Crimson, 2f); + int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 2f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) { @@ -700,10 +709,10 @@ namespace CalamityMod.NPCs.SlimeGod } for (int num623 = 0; num623 < 70; num623++) { - int num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Crimson, 3f); + int num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Crimson, 2f); + num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 2f); Main.dust[num624].velocity *= 2f; } } diff --git a/NPCs/SlimeGod/SplitEbonianSlimeGod.cs b/NPCs/SlimeGod/SplitEbonianSlimeGod.cs index b3e255c09a..fbe54b9971 100644 --- a/NPCs/SlimeGod/SplitEbonianSlimeGod.cs +++ b/NPCs/SlimeGod/SplitEbonianSlimeGod.cs @@ -160,6 +160,9 @@ namespace CalamityMod.NPCs.SlimeGod // Avoid cheap bullshit NPC.damage = 0; + // Slow down dramatically + NPC.velocity.X *= 0.5f; + NPC.ai[0] = 6f; NPC.ai[1] = 0f; NPC.ai[2] = 0f; @@ -583,9 +586,11 @@ namespace CalamityMod.NPCs.SlimeGod } // Emit teleport dust + Color dustColor = Color.Lavender; + dustColor.A = 150; for (int num245 = 0; num245 < 10; num245++) { - int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Lavender, 2f); + int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f); Main.dust[num246].noGravity = true; Main.dust[num246].velocity *= 0.5f; } @@ -615,9 +620,11 @@ namespace CalamityMod.NPCs.SlimeGod } // Emit teleport dust + Color dustColor = Color.Lavender; + dustColor.A = 150; for (int num245 = 0; num245 < 10; num245++) { - int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, Color.Lavender, 2f); + int num246 = Dust.NewDust(NPC.position + Vector2.UnitX * -20f, NPC.width + 40, NPC.height, 4, NPC.velocity.X, NPC.velocity.Y, NPC.alpha, dustColor, 2f); Main.dust[num246].noGravity = true; Main.dust[num246].velocity *= 0.5f; } @@ -689,9 +696,11 @@ namespace CalamityMod.NPCs.SlimeGod public override void HitEffect(int hitDirection, double damage) { + Color dustColor = Color.Lavender; + dustColor.A = 150; for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, Color.Lavender, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hitDirection, -1f, NPC.alpha, dustColor, 1f); } if (NPC.life <= 0) { @@ -703,7 +712,7 @@ namespace CalamityMod.NPCs.SlimeGod NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2); for (int num621 = 0; num621 < 40; num621++) { - int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Lavender, 2f); + int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 2f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) { @@ -713,10 +722,10 @@ namespace CalamityMod.NPCs.SlimeGod } for (int num623 = 0; num623 < 70; num623++) { - int num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Lavender, 3f); + int num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 3f); Main.dust[num624].noGravity = true; Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, Color.Lavender, 2f); + num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, 4, 0f, 0f, NPC.alpha, dustColor, 2f); Main.dust[num624].velocity *= 2f; } } diff --git a/Projectiles/Boss/UnstableCrimulanGlob.cs b/Projectiles/Boss/UnstableCrimulanGlob.cs index c77e775a65..90d33567e3 100644 --- a/Projectiles/Boss/UnstableCrimulanGlob.cs +++ b/Projectiles/Boss/UnstableCrimulanGlob.cs @@ -61,7 +61,9 @@ namespace CalamityMod.Projectiles.Boss if (Main.rand.NextBool()) { - int dust = Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 4, 0f, 0f, Projectile.alpha, Color.Crimson); + Color dustColor = Color.Crimson; + dustColor.A = 150; + int dust = Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 4, 0f, 0f, Projectile.alpha, dustColor); Main.dust[dust].noGravity = true; } diff --git a/Projectiles/Boss/UnstableEbonianGlob.cs b/Projectiles/Boss/UnstableEbonianGlob.cs index 69d30b1ee6..2d9fb0b48b 100644 --- a/Projectiles/Boss/UnstableEbonianGlob.cs +++ b/Projectiles/Boss/UnstableEbonianGlob.cs @@ -43,7 +43,9 @@ namespace CalamityMod.Projectiles.Boss if (Main.rand.NextBool()) { - int dust = Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 4, 0f, 0f, Projectile.alpha, Color.Lavender); + Color dustColor = Color.Lavender; + dustColor.A = 150; + int dust = Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 4, 0f, 0f, Projectile.alpha, dustColor); Main.dust[dust].noGravity = true; } diff --git a/Projectiles/Enemy/CrimsonSpike.cs b/Projectiles/Enemy/CrimsonSpike.cs index a535293cf6..846f337f65 100644 --- a/Projectiles/Enemy/CrimsonSpike.cs +++ b/Projectiles/Enemy/CrimsonSpike.cs @@ -27,7 +27,9 @@ namespace CalamityMod.Projectiles.Enemy { if (Projectile.Opacity == 1f && Main.rand.NextBool(3)) { - int num67 = Dust.NewDust(Projectile.position - Projectile.velocity * 3f, Projectile.width, Projectile.height, 260, 0f, 0f, 50, new Color(255, 136, 78, 150), 1.2f); + Color dustColor = Color.Crimson; + dustColor.A = 150; + int num67 = Dust.NewDust(Projectile.position - Projectile.velocity * 3f, Projectile.width, Projectile.height, 260, 0f, 0f, 50, dustColor, 1.2f); Main.dust[num67].velocity *= 0.3f; Main.dust[num67].velocity += Projectile.velocity * 0.3f; Main.dust[num67].noGravity = true; @@ -58,9 +60,11 @@ namespace CalamityMod.Projectiles.Enemy public override void Kill(int timeLeft) { + Color dustColor = Color.Crimson; + dustColor.A = 150; for (int k = 0; k < 5; k++) { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 260, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f); + Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 260, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f, 50, dustColor, 1f); } }