Add Nullified debuff, add Transcendent weapons and tool

This commit is contained in:
2025-11-20 13:25:27 +00:00
parent f3aecf176c
commit d1a99ca8b1
26 changed files with 1037 additions and 99 deletions
@@ -0,0 +1,49 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using ForgottenWawiTech.Content.Items.Materials;
using ForgottenWawiTech.Content.Players;
using ForgottenWawiTech.Content.Rarities;
using ForgottenWawiTech.Content.Tiles.CraftingStations;
namespace ForgottenWawiTech.Content.Items.Accessories
{
public class AscendantSwarmModule : ModItem
{
public override void SetDefaults()
{
Item.width = 30;
Item.height = 34;
Item.accessory = true;
Item.value = Item.sellPrice(platinum: 240);
Item.rare = ModContent.RarityType<TranscendentItem>();
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.maxMinions += 6;
player.maxTurrets += 3;
player.GetDamage(DamageClass.Summon) += 0.35f;
player.GetAttackSpeed(DamageClass.Summon) += 0.20f;
player.whipRangeMultiplier += 0.30f;
player.GetKnockback(DamageClass.Summon) += 2f;
player.buffImmune[BuffID.OnFire] = true;
player.buffImmune[BuffID.CursedInferno] = true;
player.buffImmune[BuffID.Venom] = true;
player.GetModPlayer<TranscendentPlayer>().HandleSwarmAccessory(Item);
}
public override void AddRecipes()
{
CreateRecipe()
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 6)
.AddIngredient(ModContent.ItemType<SingularityAlloy>(), 8)
.AddIngredient(ModContent.ItemType<EnergyCore>(), 10)
.AddIngredient(ModContent.ItemType<MalfunctioningNanites>(), 16)
.AddIngredient(ModContent.ItemType<UnstableMatter>(), 6)
.AddTile(ModContent.TileType<SingularitySealingUnit>())
.Register();
}
}
}