Glove of Recklessness and fixes
This commit is contained in:
1 parent
992c289ac1
commit
0d41953eaf
6 files changed
+47
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 626 B |
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user