42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
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.Armor.SingularitySet
|
|
{
|
|
[AutoloadEquip(EquipType.Legs)]
|
|
public class SingularityLeggings : ModItem
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 18;
|
|
Item.height = 18;
|
|
Item.value = Item.sellPrice(platinum: 500);
|
|
Item.rare = ModContent.RarityType<SingularityItem>();
|
|
Item.defense = 100;
|
|
}
|
|
|
|
public override void UpdateEquip(Player player)
|
|
{
|
|
player.moveSpeed += 5f;
|
|
player.GetDamage(DamageClass.Generic) += 0.5f;
|
|
player.endurance += 0.10f;
|
|
player.statLifeMax2 += 500;
|
|
player.wingTimeMax += 9000;
|
|
player.wingTime += 9000;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe()
|
|
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 15)
|
|
.AddIngredient(ModContent.ItemType<SingularityAlloy>(), 10)
|
|
.AddTile(ModContent.TileType<SingularitySealingUnit>())
|
|
.Register();
|
|
}
|
|
}
|
|
}
|