diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 3d11e73798..68d984728c 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -310,6 +310,7 @@ namespace CalamityMod.CalPlayer public bool moonCrown = false; public bool dragonScales = false; public bool gloveOfPrecision = false; + public bool gloveOfRecklessness = false; public bool momentumCapacitor = false; // Armor Set @@ -1023,6 +1024,7 @@ namespace CalamityMod.CalPlayer moonCrown = false; dragonScales = false; gloveOfPrecision = false; + gloveOfRecklessness = false; momentumCapacitor = false; shadowflame = false; @@ -4466,6 +4468,11 @@ namespace CalamityMod.CalPlayer player.Calamity().throwingCrit += 12; player.Calamity().throwingVelocity *= 1.2f; } + if (gloveOfRecklessness) + { + player.Calamity().throwingVelocity *= 1.2f; + player.Calamity().throwingDamage *= 0.9f; + } if (tarraSummon) { int lifeCounter = 0; diff --git a/Items/Accessories/GloveOfPrecicion.cs b/Items/Accessories/GloveOfPrecicion.cs index b974bade08..193cdee8f6 100644 --- a/Items/Accessories/GloveOfPrecicion.cs +++ b/Items/Accessories/GloveOfPrecicion.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { DisplayName.SetDefault("Glove Of Precision"); - Tooltip.SetDefault("Decreases rogue speed by 20% but increase damage and crit by 12% and velocity by 25%"); + Tooltip.SetDefault("Decreases rogue speed by 20% but increases damage and crit by 12% and velocity by 25%"); } public override void SetDefaults() diff --git a/Items/Accessories/GloveOfRecklessness.cs b/Items/Accessories/GloveOfRecklessness.cs new file mode 100644 index 0000000000..340478b985 --- /dev/null +++ b/Items/Accessories/GloveOfRecklessness.cs @@ -0,0 +1,32 @@ +using CalamityMod.CalPlayer; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Accessories +{ + public class GloveOfRecklessness : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Glove Of Recklessness"); + Tooltip.SetDefault("Increases rogue speed by 20% but decreases damage by 10%\n" + + "Adds inaccuracy to rogue weapons"); + } + + public override void SetDefaults() + { + item.width = 24; + item.height = 40; + item.value = Item.buyPrice(0, 50, 0, 0); + item.accessory = true; + item.rare = 8; + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.Calamity(); + modPlayer.gloveOfRecklessness = true; + } + } +} diff --git a/Items/Accessories/GloveOfRecklessness.png b/Items/Accessories/GloveOfRecklessness.png new file mode 100644 index 0000000000..518e6ed5a2 Binary files /dev/null and b/Items/Accessories/GloveOfRecklessness.png differ diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 525962a728..7e489c3357 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -118,6 +118,13 @@ namespace CalamityMod.Items { speedX *= player.Calamity().throwingVelocity; speedY *= player.Calamity().throwingVelocity; + if (player.Calamity().gloveOfRecklessness) + { + Vector2 rotated = new Vector2(speedX, speedY); + rotated = rotated.RotatedByRandom(MathHelper.ToRadians(10f)); + speedX = rotated.X; + speedY = rotated.Y; + } } if (player.Calamity().luxorsGift) { diff --git a/Projectiles/Rogue/DragonShit.cs b/Projectiles/Rogue/DragonShit.cs index 0636b90d38..3fed2ea8b3 100644 --- a/Projectiles/Rogue/DragonShit.cs +++ b/Projectiles/Rogue/DragonShit.cs @@ -139,7 +139,6 @@ namespace CalamityMod.Projectiles.Rogue Gore expr_13D1F_cp_0 = Main.gore[num626]; expr_13D1F_cp_0.velocity.Y -= 1f; } - projectile.damage = Main.expertMode ? 300 : 180; projectile.Damage(); } }