Files
CalamityModPublic/Items/DifficultyItems/BallAndChain.cs
T
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00

40 lines
1.1 KiB
C#

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.DifficultyItems
{
public class BallAndChain : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Misc";
public override void SetDefaults()
{
Item.width = 32;
Item.height = 50;
Item.rare = ItemRarityID.Blue;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = (ContentSamples.CreativeHelper.ItemGroup)CalamityResearchSorting.ToolsOther;
}
public override bool CanUseItem(Player player) => false;
public override void UpdateInventory(Player player)
{
if (Item.favorited)
player.Calamity().blockAllDashes = true;
}
public override void AddRecipes()
{
CreateRecipe().
AddRecipeGroup("IronBar", 10).
AddIngredient(ItemID.Chain).
AddTile(TileID.Anvils).
Register();
}
}
}