From a08ba8585bb03429b75a34d0aa4589aa73c9f772 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Fri, 21 Jul 2023 14:11:47 -0600 Subject: [PATCH] The final changes --- Items/Weapons/Rogue/DuststormInABottle.cs | 4 ++-- Projectiles/Rogue/DuststormCloudHitbox.cs | 4 ++-- Projectiles/Rogue/DuststormInABottleProj.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Items/Weapons/Rogue/DuststormInABottle.cs b/Items/Weapons/Rogue/DuststormInABottle.cs index f2834fa788..0b469e9777 100644 --- a/Items/Weapons/Rogue/DuststormInABottle.cs +++ b/Items/Weapons/Rogue/DuststormInABottle.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetDefaults() { Item.width = 20; - Item.damage = 64; //Do 74 if local iframes + Item.damage = 74; Item.noMelee = true; Item.noUseGraphic = true; Item.useAnimation = 28; @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Rogue public static float MaxSize = 3.2f; public static float MaxSizeStealth = 3.6f; public static float GrowthRate = 0.025f; - public static float StealthGrowhRate = 0.03f; + public static float StealthGrowhRate = 0.035f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { diff --git a/Projectiles/Rogue/DuststormCloudHitbox.cs b/Projectiles/Rogue/DuststormCloudHitbox.cs index 88c047459a..aa4d4d3597 100644 --- a/Projectiles/Rogue/DuststormCloudHitbox.cs +++ b/Projectiles/Rogue/DuststormCloudHitbox.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Projectiles.Rogue Projectile.ignoreWater = true; Projectile.timeLeft = DuststormInABottle.CloudLifetime; Projectile.DamageType = RogueDamageClass.Instance; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; + Projectile.usesIDStaticNPCImmunity = true; + Projectile.idStaticNPCHitCooldown = 10; } public override void AI() diff --git a/Projectiles/Rogue/DuststormInABottleProj.cs b/Projectiles/Rogue/DuststormInABottleProj.cs index fdca0a4b28..93cb1b6fec 100644 --- a/Projectiles/Rogue/DuststormInABottleProj.cs +++ b/Projectiles/Rogue/DuststormInABottleProj.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Rogue int d = Dust.NewDust(Projectile.Center, Projectile.width, Projectile.height, Main.rand.NextBool(5) ? 32 : 85, dustd.X, dustd.Y, 50, default, 2f); Main.dust[d].noGravity = true; Main.dust[d].position = Projectile.Center; - Main.dust[d].velocity *= Main.rand.NextFloat(0.25f, 1f); + Main.dust[d].velocity *= Main.rand.NextFloat(0.25f, 1.1f); } cloudAmt *= 2.75; cloudAmt = Math.Round(cloudAmt); @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Rogue if (hitbox.WithinBounds(Main.maxProjectiles) && Projectile.Calamity().stealthStrike) //Inherit stealth flag and less iframes { Main.projectile[hitbox].ai[1] = 1; - Main.projectile[hitbox].localNPCHitCooldown = DuststormInABottle.StealthIframes; + Main.projectile[hitbox].idStaticNPCHitCooldown = DuststormInABottle.StealthIframes; } } }