From 8412c82c04506d3de8500cdffebed7bd3bf06d3d Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sun, 31 Dec 2023 16:58:46 -0600 Subject: [PATCH] Penumbra dust adjustment --- Items/Weapons/Rogue/Cinquedea.cs | 9 +++------ Projectiles/Rogue/PenumbraBomb.cs | 8 ++++---- Projectiles/Rogue/PenumbraSoul.cs | 4 ++-- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/Items/Weapons/Rogue/Cinquedea.cs b/Items/Weapons/Rogue/Cinquedea.cs index 8050c79fba..75f86baffa 100644 --- a/Items/Weapons/Rogue/Cinquedea.cs +++ b/Items/Weapons/Rogue/Cinquedea.cs @@ -9,17 +9,14 @@ namespace CalamityMod.Items.Weapons.Rogue { public class Cinquedea : RogueWeapon { - public static int BaseDamage = 36; - public static float Knockback = 5f; - public static float Speed = 8f; public override void SetDefaults() { Item.width = 32; Item.height = 32; - Item.damage = BaseDamage; + Item.damage = 36; Item.rare = ItemRarityID.Orange; - Item.knockBack = Knockback; + Item.knockBack = 5; Item.autoReuse = true; Item.useTime = 15; Item.useAnimation = 15; @@ -28,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noMelee = true; Item.noUseGraphic = true; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = Speed; + Item.shootSpeed = 8; Item.value = CalamityGlobalItem.Rarity3BuyPrice; Item.DamageType = RogueDamageClass.Instance; } diff --git a/Projectiles/Rogue/PenumbraBomb.cs b/Projectiles/Rogue/PenumbraBomb.cs index 98bd195729..0169a1b2f6 100644 --- a/Projectiles/Rogue/PenumbraBomb.cs +++ b/Projectiles/Rogue/PenumbraBomb.cs @@ -57,16 +57,16 @@ namespace CalamityMod.Projectiles.Rogue Projectile.rotation = (Projectile.velocity.ToRotation() + (Projectile.spriteDirection == 1 ? 0f : MathHelper.Pi)) + (MathHelper.ToRadians(180)*Projectile.direction); //Dust - float dfreq = Projectile.Calamity().stealthStrike ? 4f : 2f; + float dfreq = Projectile.Calamity().stealthStrike ? 8f : 4f; if (Projectile.ai[0] == dfreq) { Vector2 dustspeed = Projectile.velocity * Main.rand.NextFloat(0.5f,0.8f); - int d = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Shadowflame, dustspeed.X, dustspeed.Y, 0, new Color(38, 30, 43), 1.4f); + int d = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 54, dustspeed.X, dustspeed.Y, 0, new Color(38, 30, 43), 1.4f); Main.dust[d].velocity = dustspeed; if (Projectile.Calamity().stealthStrike) { Vector2 dustspeed2 = new Vector2 (Main.rand.NextFloat(-3f,3f),Main.rand.NextFloat(-3f,3f)); - int d2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Shadowflame, dustspeed2.X, dustspeed2.Y, 0, new Color(38, 30, 43), 1.3f); + int d2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 54, dustspeed2.X, dustspeed2.Y, 0, new Color(38, 30, 43), 1.3f); Main.dust[d2].velocity = dustspeed2; } Projectile.ai[0] = 0f; @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Rogue for (int i = 0; i < maxDust; i++) { Vector2 dustspeed = new Vector2(Main.rand.NextFloat(-6f, 6f), Main.rand.NextFloat(-6f, 6f)); - int d = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Shadowflame, dustspeed.X, dustspeed.Y, 0, new Color(38, 30, 43), 1.6f); + int d = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 54, dustspeed.X, dustspeed.Y, 0, new Color(38, 30, 43), 1.6f); } SoundEngine.PlaySound(SoundID.Item14, Projectile.Center); Projectile.width = 110; diff --git a/Projectiles/Rogue/PenumbraSoul.cs b/Projectiles/Rogue/PenumbraSoul.cs index 587493a868..17b77c38eb 100644 --- a/Projectiles/Rogue/PenumbraSoul.cs +++ b/Projectiles/Rogue/PenumbraSoul.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Rogue int trailDust = 1; for (int i = 0; i < trailDust; ++i) { - int dustID = DustID.Shadowflame; + int dustID = 54; //Used by Wraiths and other shadowy stuff int idx = Dust.NewDust(Projectile.position - Projectile.velocity, Projectile.width, Projectile.height, dustID,0f,0f, 0, new Color(38, 30, 43)); Main.dust[idx].noGravity = true; @@ -84,7 +84,7 @@ namespace CalamityMod.Projectiles.Rogue int onHitDust = Main.rand.Next(6, 11); for (int i = 0; i < onHitDust; ++i) { - int dustID = DustID.Shadowflame; + int dustID = 54; int idx = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, dustID, 0f, 0f,0, new Color(38, 30, 43)); Main.dust[idx].noGravity = true;