Add Avali and Protogen progression sets
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Armor.AvaliSkirmisherSet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class AvaliSkirmisherCowl : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(gold: 5);
|
||||
Item.rare = ModContent.RarityType<AvalianItem>();
|
||||
Item.defense = 14;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Summon) += 0.18f;
|
||||
player.maxMinions += 2;
|
||||
player.statLifeMax2 += 40;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<AvaliSkirmisherChestplate>() && legs.type == ModContent.ItemType<AvaliSkirmisherLeggings>();
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Summons thermal vision drones that mark enemies\nMarked enemies take 12% more damage\n+2 max minions and +20% summon damage";
|
||||
player.maxMinions += 2;
|
||||
player.GetDamage(DamageClass.Summon) += 0.20f;
|
||||
// TODO: Implement thermal vision drone marking system
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<AvaliFeather>(), 10)
|
||||
.AddIngredient(ModContent.ItemType<AvaliScoutCowl>(), 1)
|
||||
.AddIngredient(ItemID.ChlorophyteBar, 8)
|
||||
.AddTile(TileID.MythrilAnvil)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user