The final changes

This commit is contained in:
Storm2103 committed 2023-07-21 14:11:47 -06:00
1 parent 851775e811
commit a08ba8585b
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -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)
{
+2 -2
View File
@@ -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()
+2 -2
View File
@@ -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;
}
}
}