Add trans set

This commit is contained in:
2025-11-20 11:35:07 +00:00
parent c0f4a516a8
commit f3aecf176c
22 changed files with 728 additions and 1 deletions
@@ -0,0 +1,66 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using ForgottenWawiTech.Content.Items.Armor.AvaliVanguardSet;
using ForgottenWawiTech.Content.Items.Armor.ProtogenSentinelSet;
using ForgottenWawiTech.Content.Items.Armor.SingularitySet;
using ForgottenWawiTech.Content.Items.Materials;
using ForgottenWawiTech.Content.Rarities;
using ForgottenWawiTech.Content.Tiles.CraftingStations;
namespace ForgottenWawiTech.Content.Items.Armor.TranscendentSet
{
[AutoloadEquip(EquipType.Head)]
public class TranscendentCowl : ModItem
{
public override void SetDefaults()
{
Item.width = 20;
Item.height = 20;
Item.value = Item.sellPrice(platinum: 250);
Item.rare = ModContent.RarityType<TranscendentItem>();
Item.defense = 52;
}
public override void UpdateEquip(Player player)
{
player.GetDamage(DamageClass.Summon) += 0.40f;
player.maxMinions += 5;
player.maxTurrets += 2;
player.statLifeMax2 += 220;
player.endurance += 0.10f;
player.whipRangeMultiplier += 0.25f;
player.GetAttackSpeed(DamageClass.Summon) += 0.20f;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == ModContent.ItemType<TranscendentCoreplate>() && legs.type == ModContent.ItemType<TranscendentGreaves>();
}
public override void UpdateArmorSet(Player player)
{
TranscendentSetEffects.ApplySetBonus(player);
player.GetDamage(DamageClass.Summon) += 0.30f;
player.GetAttackSpeed(DamageClass.Summon) += 0.25f;
player.maxMinions += 4;
player.maxTurrets += 2;
player.whipRangeMultiplier += 0.20f;
player.spiderArmor = true;
}
public override void AddRecipes()
{
CreateRecipe()
.AddIngredient(ModContent.ItemType<SingularityHelmet>())
.AddIngredient(ModContent.ItemType<AvaliVanguardCowl>())
.AddIngredient(ModContent.ItemType<ProtogenSentinelCowl>())
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 6)
.AddIngredient(ModContent.ItemType<EnergyCore>(), 10)
.AddIngredient(ModContent.ItemType<MalfunctioningNanites>(), 18)
.AddIngredient(ModContent.ItemType<UnstableMatter>(), 4)
.AddTile(ModContent.TileType<SingularitySealingUnit>())
.Register();
}
}
}