Add Avali and Protogen progression sets
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Armor.AvaliScoutSet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Body)]
|
||||
public class AvaliScoutChestplate : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(silver: 80);
|
||||
Item.rare = ModContent.RarityType<AvalianItem>();
|
||||
Item.defense = 5;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.05f;
|
||||
player.GetCritChance(DamageClass.Generic) += 3;
|
||||
player.statLifeMax2 += 20;
|
||||
player.moveSpeed += 0.08f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<AvaliFeather>(), 12)
|
||||
.AddTile(TileID.Anvils)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user