Files
CalamityModPublic/Items/Armor/Vanity/GodSlayerVisage.cs
T
Altixal 17db15200d Remainder buyPrice cleanups
Intentionally ignored consumable rogue weapons because plans to un-consumable those
2024-09-19 02:39:52 +07:00

32 lines
981 B
C#

using CalamityMod.Items.Armor.GodSlayer;
using CalamityMod.Rarities;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor.Vanity
{
[AutoloadEquip(EquipType.Head)]
public class GodSlayerVisage : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Armor.Vanity";
public override void SetDefaults()
{
Item.width = 18;
Item.height = 18;
Item.vanity = true;
Item.value = Item.buyPrice(gold: 8); // Sold by Clothier
Item.rare = ModContent.RarityType<DarkBlue>();
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == ModContent.ItemType<GodSlayerChestplate>() && legs.type == ModContent.ItemType<GodSlayerLeggings>();
}
public override void ArmorSetShadows(Player player)
{
player.armorEffectDrawShadow = true;
}
}
}