43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Rarities;
|
|
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Armor.Fearmonger
|
|
{
|
|
[AutoloadEquip(EquipType.Body)]
|
|
public class FearmongerPlateMail : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 18;
|
|
Item.height = 18;
|
|
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
|
Item.defense = 50;
|
|
Item.rare = ModContent.RarityType<DarkBlue>();
|
|
}
|
|
|
|
public override void UpdateEquip(Player player)
|
|
{
|
|
player.statLifeMax2 += 100;
|
|
player.endurance += 0.08f;
|
|
player.GetDamage<GenericDamageClass>() += 0.05f;
|
|
player.GetCritChance<GenericDamageClass>() += 5;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient(ItemID.SpookyBreastplate).
|
|
AddIngredient<CosmiliteBar>(12).
|
|
AddIngredient(ItemID.SoulofFright, 12).
|
|
AddIngredient<AscendantSpiritEssence>(3).
|
|
AddTile<CosmicAnvil>().
|
|
Register();
|
|
}
|
|
}
|
|
}
|