52 lines
1.7 KiB
C#
52 lines
1.7 KiB
C#
using CalamityMod.Items.Materials;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class StatisNinjaBelt : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Statis' Ninja Belt");
|
|
Tooltip.SetDefault("6% increased jump speed and allows constant jumping\n" +
|
|
"Increased fall damage resistance by 35 blocks\n" +
|
|
"Can climb walls, dash, and dodge attacks\n" +
|
|
"The dodge has a 90 second cooldown\n" +
|
|
"This cooldown is shared with all other dodges and reflects");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 28;
|
|
item.height = 32;
|
|
item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
|
item.rare = ItemRarityID.Lime;
|
|
item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.autoJump = true;
|
|
player.jumpSpeedBoost += 0.3f;
|
|
player.extraFall += 35;
|
|
player.blackBelt = true;
|
|
player.dash = 1;
|
|
player.spikedBoots = 2;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ItemID.MasterNinjaGear);
|
|
recipe.AddIngredient(ItemID.FrogLeg);
|
|
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 50);
|
|
recipe.AddIngredient(ModContent.ItemType<CoreofEleum>());
|
|
recipe.AddTile(TileID.MythrilAnvil);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|