Clean up accessory code.

This commit is contained in:
Big Duckie
2022-07-05 16:17:11 -06:00
parent eb2cb27e79
commit 3cb03f994a
11 changed files with 111 additions and 118 deletions
+6 -7
View File
@@ -9,7 +9,6 @@ public class HellfireBand : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Hellfire Band");
Tooltip.SetDefault("4% increased all damage \nGrants immunity to the [c/FF4E00:On Fire!] debuff");
}
@@ -26,15 +25,15 @@ public class HellfireBand : ModItem
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.GetDamage(DamageClass.Generic) += 0.04f;
player.buffImmune[24] = true;
player.buffImmune[BuffID.OnFire] = true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<IronBand>());
val.AddIngredient(ItemID.HellstoneBar, 3);
val.AddTile(TileID.Anvils);
val.Register();
CreateRecipe()
.AddIngredient(ModContent.ItemType<IronBand>())
.AddIngredient(ItemID.HellstoneBar, 3)
.AddTile(TileID.Anvils)
.Register();
}
}