Files
CalamityModPublic/Items/BrokenWaterFilter.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 CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items
{
public class BrokenWaterFilter : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Misc";
public override void SetDefaults()
{
Item.width = 32;
Item.height = 34;
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
Item.rare = ItemRarityID.Blue;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = (ContentSamples.CreativeHelper.ItemGroup)CalamityResearchSorting.SpawnPrevention;
}
public override void UpdateInventory(Player player)
{
if (Item.favorited)
player.Calamity().noStupidNaturalARSpawns = true;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<SulphuricScale>(20).
AddRecipeGroup("IronBar", 10).
AddTile(TileID.Anvils).
Register();
}
}
}