Add Nullified debuff, add Transcendent weapons and tool
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Accessories
|
||||
{
|
||||
public class TranscendentMatrix : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 32;
|
||||
Item.value = Item.sellPrice(platinum: 250);
|
||||
Item.rare = ModContent.RarityType<TranscendentItem>();
|
||||
Item.accessory = true;
|
||||
Item.defense = 12;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.25f;
|
||||
player.GetCritChance(DamageClass.Generic) += 15;
|
||||
player.endurance += 0.12f;
|
||||
player.statLifeMax2 += 160;
|
||||
player.statManaMax2 += 160;
|
||||
player.lifeRegen += 6;
|
||||
player.manaCost -= 0.12f;
|
||||
player.manaRegenBonus += 120;
|
||||
player.moveSpeed += 0.25f;
|
||||
player.GetAttackSpeed(DamageClass.Melee) += 0.15f;
|
||||
player.GetAttackSpeed(DamageClass.Summon) += 0.15f;
|
||||
player.lavaImmune = true;
|
||||
player.fireWalk = true;
|
||||
player.noKnockback = true;
|
||||
player.wingTimeMax = System.Math.Max(player.wingTimeMax, 1200);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 6)
|
||||
.AddIngredient(ModContent.ItemType<SingularityAlloy>(), 8)
|
||||
.AddIngredient(ModContent.ItemType<EnergyCore>(), 12)
|
||||
.AddIngredient(ModContent.ItemType<MalfunctioningNanites>(), 16)
|
||||
.AddIngredient(ModContent.ItemType<UnstableMatter>(), 6)
|
||||
.AddIngredient(ItemID.CelestialShell)
|
||||
.AddTile(ModContent.TileType<SingularitySealingUnit>())
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user