43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using ForgottenWawiTech.Content.Items.Materials;
|
|
using ForgottenWawiTech.Content.Rarities;
|
|
using ForgottenWawiTech.Content.Items.Armor.ProtogenInitiateSet;
|
|
|
|
namespace ForgottenWawiTech.Content.Items.Armor.ProtogenOperativeSet
|
|
{
|
|
[AutoloadEquip(EquipType.Body)]
|
|
public class ProtogenOperativeChestplate : ModItem
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 18;
|
|
Item.height = 18;
|
|
Item.value = Item.sellPrice(gold: 8);
|
|
Item.rare = ModContent.RarityType<ProtogenItem>();
|
|
Item.defense = 20;
|
|
}
|
|
|
|
public override void UpdateEquip(Player player)
|
|
{
|
|
player.GetDamage(DamageClass.Generic) += 0.12f;
|
|
player.GetCritChance(DamageClass.Generic) += 6;
|
|
player.statLifeMax2 += 40;
|
|
player.statManaMax2 += 50;
|
|
player.endurance += 0.05f;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe()
|
|
.AddIngredient(ModContent.ItemType<MalfunctioningNanites>(), 18)
|
|
.AddIngredient(ModContent.ItemType<ProtogenInitiateChestplate>(), 1)
|
|
.AddIngredient(ItemID.ChlorophyteBar, 12)
|
|
.AddIngredient(ItemID.Wire, 15)
|
|
.AddTile(TileID.MythrilAnvil)
|
|
.Register();
|
|
}
|
|
}
|
|
}
|