Add Avali and Protogen progression sets
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
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 AvaliSkirmisherHood : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(gold: 5);
|
||||
Item.rare = ModContent.RarityType<AvalianItem>();
|
||||
Item.defense = 12;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Magic) += 0.20f;
|
||||
player.statManaMax2 += 80;
|
||||
player.manaCost -= 0.12f;
|
||||
player.GetCritChance(DamageClass.Magic) += 8;
|
||||
}
|
||||
|
||||
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+20% magic damage and -15% mana cost";
|
||||
player.GetDamage(DamageClass.Magic) += 0.20f;
|
||||
player.manaCost -= 0.15f;
|
||||
// TODO: Implement thermal vision drone marking system
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<AvaliFeather>(), 10)
|
||||
.AddIngredient(ModContent.ItemType<AvaliScoutHood>(), 1)
|
||||
.AddIngredient(ItemID.ChlorophyteBar, 8)
|
||||
.AddTile(TileID.MythrilAnvil)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user