2 - Correctly implemented Hold SHIFT and Flavor tooltips on many items. 3 - Added a second default tooltip extension indicator for when the tooltip is entirely replaced.
62 lines
2.1 KiB
C#
62 lines
2.1 KiB
C#
using CalamityMod.Items.Materials;
|
|
using Terraria;
|
|
using Terraria.DataStructures;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class StatisNinjaBelt : ModItem, ILocalizedModType, IHoldShiftTooltipItem
|
|
{
|
|
public new string LocalizationCategory => "Items.Accessories";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 6));
|
|
ItemID.Sets.AnimatesAsSoul[Type] = true;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 30;
|
|
Item.height = 26;
|
|
Item.value = CalamityGlobalItem.RarityPurpleBuyPrice;
|
|
Item.rare = ItemRarityID.Purple;
|
|
Item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.autoJump = true;
|
|
player.jumpSpeedBoost += 1.6f;
|
|
player.extraFall += 35;
|
|
player.blackBelt = true;
|
|
player.dashType = 1;
|
|
player.Calamity().DashID = string.Empty;
|
|
player.spikedBoots = 2;
|
|
player.accFlipper = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
// 20FEB2024: Ozzatron: used to have one recipe which was MNG + Frog Gear. This requires 2 Tiger Climbing Gear.
|
|
// There are now two recipes depending on whether you made Frog Gear or Master Ninja Gear.
|
|
CreateRecipe().
|
|
AddIngredient(ItemID.MasterNinjaGear).
|
|
AddIngredient(ItemID.FrogFlipper).
|
|
AddIngredient<PurifiedGel>(50).
|
|
AddIngredient<Necroplasm>(5).
|
|
AddTile(TileID.LunarCraftingStation).
|
|
Register();
|
|
|
|
CreateRecipe().
|
|
AddIngredient(ItemID.Tabi).
|
|
AddIngredient(ItemID.BlackBelt).
|
|
AddIngredient(ItemID.FrogGear).
|
|
AddIngredient<PurifiedGel>(50).
|
|
AddIngredient<Necroplasm>(5).
|
|
AddTile(TileID.LunarCraftingStation).
|
|
Register();
|
|
}
|
|
}
|
|
}
|