auric bar swing offset fix

This commit is contained in:
termigator1359 authored and Cameron Ewell committed 2020-11-15 14:20:44 -05:00
1 parent e0e2388fe8
commit 7c1f055969
1 file changed
+5
+5
View File
@@ -35,6 +35,11 @@ namespace CalamityMod.Items.Materials
item.consumable = true;
}
public override void UseStyle(Player player)
{
player.itemLocation += new Vector2(-10f * player.direction, 10f * player.gravDir).RotatedBy(player.itemRotation);
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Materials/AuricBar_Animated");