Hardmode ore rogue weapon nerfs
This commit is contained in:
1 parent
542f87b872
commit
a59c823f6b
5 files changed
+13
-15
No files matched your search
@@ -12,10 +12,10 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
Item.width = 14;
|
||||
Item.height = 38;
|
||||
Item.damage = 56;
|
||||
Item.damage = 49;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = Item.useTime = 10;
|
||||
Item.useAnimation = Item.useTime = 12;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = 2.5f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
|
||||
@@ -12,12 +12,11 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
Item.width = 12;
|
||||
Item.height = 40;
|
||||
Item.damage = 80;
|
||||
Item.damage = 66;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 10;
|
||||
Item.useTime = Item.useAnimation = 12;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 10;
|
||||
Item.knockBack = 1.75f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
Item.width = 54;
|
||||
Item.height = 54;
|
||||
Item.damage = 118;
|
||||
Item.damage = 81;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = Item.useTime = 24;
|
||||
@@ -27,11 +27,12 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 0.8f;
|
||||
public override float StealthDamageMultiplier => 0.9f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int javelin = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
||||
float aiVal = player.Calamity().StealthStrikeAvailable() ? -12f : 0f;
|
||||
int javelin = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, ai1: aiVal);
|
||||
if (javelin.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[javelin].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.height = 12;
|
||||
Projectile.friendly = true;
|
||||
Projectile.aiStyle = ProjAIStyleID.ThrownProjectile;
|
||||
Projectile.penetrate = 4;
|
||||
Projectile.penetrate = 3;
|
||||
Projectile.timeLeft = 360;
|
||||
AIType = ProjectileID.ThrowingKnife;
|
||||
Projectile.DamageType = RogueDamageClass.Instance;
|
||||
|
||||
@@ -30,10 +30,10 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4;
|
||||
|
||||
//Stealth strike behavior
|
||||
if (!Projectile.Calamity().stealthStrike || Projectile.owner != Main.myPlayer || Projectile.ai[2] >= 2)
|
||||
if (!Projectile.Calamity().stealthStrike || Projectile.owner != Main.myPlayer || Projectile.ai[2] > 0)
|
||||
return;
|
||||
Projectile.localAI[0]++;
|
||||
if (Projectile.localAI[0] >= 12f)
|
||||
if (Projectile.localAI[0] == 12f)
|
||||
{
|
||||
Vector2 vector2 = new Vector2(20f, 20f);
|
||||
for (int index1 = 0; index1 < 10; ++index1)
|
||||
@@ -47,14 +47,12 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Dust.NewDust(Projectile.Center - vector2 / 2f, (int)vector2.X, (int)vector2.Y, DustID.Palladium, 0f, 0f, 0, default, 1f);
|
||||
}
|
||||
|
||||
int javelin = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity.RotatedBy(MathHelper.ToRadians(3f)), Projectile.type, Projectile.damage, Projectile.knockBack, Projectile.owner, ai2: Projectile.ai[2] + 1);
|
||||
int javelin2 = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity.RotatedBy(MathHelper.ToRadians(-3f)), Projectile.type, Projectile.damage, Projectile.knockBack, Projectile.owner, ai2: Projectile.ai[2] + 1);
|
||||
int javelin = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity.RotatedBy(MathHelper.ToRadians(3f)), Projectile.type, Projectile.damage, Projectile.knockBack, Projectile.owner, ai2: 1);
|
||||
int javelin2 = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity.RotatedBy(MathHelper.ToRadians(-3f)), Projectile.type, Projectile.damage, Projectile.knockBack, Projectile.owner, ai2: 1);
|
||||
if (javelin.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[javelin].Calamity().stealthStrike = true;
|
||||
if (javelin2.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[javelin2].Calamity().stealthStrike = true;
|
||||
|
||||
Projectile.Kill();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user