using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace moreyes.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class LensHelmet : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Lens Helmet");
Tooltip.SetDefault("Lens may be small, but they can still be used to craft with. The glass lens you used to craft this refracts light you see, making light seem brighter.");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = 1000;
item.rare = 0;
item.defense = 1;
}
public virtual void UpdateEquip(Item item, Player player)
{
player.AddBuff(BuffID.NightOwl, 2);
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == mod.ItemType("LensChestplate") && legs.type == mod.ItemType("LensLeggings");
}
public override void UpdateArmorSet(Player player)
{
player.setBonus = "With maximum light refraction from having full lens armor, you now also give off light!";
player.AddBuff(BuffID.Shine, 2);
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.Lens, 30);
recipe.AddTile(TileID.Anvils);
recipe.needLava = true;
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Top of spoiler