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
+7 -7
View File
@@ -25,16 +25,16 @@ public class HallowedBand : ModItem
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.GetDamage(DamageClass.Generic) += 0.08f;
player.buffImmune[24] = true;
player.buffImmune[BuffID.OnFire] = true;
}
public override void AddRecipes()
{
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ModContent.ItemType<HellfireBand>());
recipe.AddIngredient(ItemID.HallowedBar, 3);
recipe.AddIngredient(ItemID.Ruby, 2);
recipe.AddTile(TileID.Anvils);
recipe.Register();
CreateRecipe()
.AddIngredient(ModContent.ItemType<HellfireBand>())
.AddIngredient(ItemID.HallowedBar, 3)
.AddIngredient(ItemID.Ruby, 2)
.AddTile(TileID.Anvils)
.Register();
}
}