Decimation_Mod/Content/Items/Armors/ScarabArmor/ScarabLeggings.cs
FyloZ ec4585bed5 - Changed Bloodshot Eye's music to Boss 1 Orchestra ( https://www.youtube.com/watch?time_continue=120&v=r-9nKGc85FQ )
- Added support for animated projectiles
- Refactoring
- Removed useless fields
- Fixed swords not dealing damages
- Added Hour Hand (from Evie's PR)
2020-03-21 00:11:07 -04:00

55 lines
1.8 KiB
C#

using System.Collections.Generic;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Decimation.Content.Tiles;
using Decimation.Content.Items.Misc.Souls;
using Decimation.Lib.Items;
using Decimation.Lib.Util;
namespace Decimation.Content.Items.Armors.ScarabArmor
{
[AutoloadEquip(EquipType.Legs)]
class ScarabLeggings : DecimationItem
{
protected override string ItemName => "Solar Scarab Greaves";
protected override string ItemTooltip => "Immunity to fire blocks" +
"\n20% increased movement and melee speed" +
"\nEnemies are more likely to target you";
protected override void Init()
{
item.width = 26;
item.height = 18;
item.rare = Rarity.Red.GetRarityValue();
item.maxStack = 1;
item.defense = 30;
}
public override void UpdateEquip(Player player)
{
player.meleeSpeed *= 1.20f;
player.moveSpeed *= 1.20f;
player.aggro += 250;
player.fireWalk = true;
}
protected override List<ModRecipe> GetAdditionalRecipes()
{
ModRecipe recipe = GetNewModRecipe(this, 1, new List<int>() { ModContent.TileType<TitanForge>() });
recipe.AddIngredient(ItemID.SolarFlareLeggings);
recipe.AddIngredient(ItemID.BeetleLeggings);
recipe.AddIngredient(ItemID.LunarOre, 6);
recipe.AddIngredient(ItemID.SoulofMight, 5);
recipe.AddIngredient(ItemID.SoulofFright, 5);
recipe.AddIngredient(ModContent.ItemType<SoulofSpite>(), 5);
recipe.AddIngredient(ItemID.LavaBucket);
return new List<ModRecipe>() { recipe };
}
}
}