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.ProtogenInitiateSet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class ProtogenInitiateHood : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(silver: 60);
|
||||
Item.rare = ModContent.RarityType<ProtogenItem>();
|
||||
Item.defense = 2;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Magic) += 0.13f;
|
||||
player.statManaMax2 += 50;
|
||||
player.manaCost -= 0.10f;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<ProtogenInitiateChestplate>() && legs.type == ModContent.ItemType<ProtogenInitiateLeggings>();
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Regenerate mana 35% faster and emit light\n+12% magic damage and -12% mana cost";
|
||||
player.manaRegenBonus += 7;
|
||||
player.GetDamage(DamageClass.Magic) += 0.12f;
|
||||
player.manaCost -= 0.12f;
|
||||
Lighting.AddLight(player.Center, 0.3f, 0.5f, 0.7f);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<MalfunctioningNanites>(), 10)
|
||||
.AddIngredient(ItemID.Wire, 5)
|
||||
.AddTile(TileID.Anvils)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user