Add Avali and Protogen progression sets

This commit is contained in:
2025-11-19 12:30:39 +00:00
parent 21f3736395
commit d5f99e4b66
38 changed files with 1819 additions and 0 deletions
@@ -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.ProtogenInitiateSet
{
[AutoloadEquip(EquipType.Head)]
public class ProtogenInitiateCowl : 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.Summon) += 0.11f;
player.maxMinions += 1;
player.statLifeMax2 += 12;
player.statManaMax2 += 20;
}
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 25% faster and emit light\n+1 max minion and +12% summon damage";
player.manaRegenBonus += 5;
player.maxMinions += 1;
player.GetDamage(DamageClass.Summon) += 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();
}
}
}