Files
CalamityModPublic/Items/Fishing/Gorecodile.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

37 lines
1.1 KiB
C#

using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
{
[LegacyName("Xerocodile")]
public class Gorecodile : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Fishing";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
}
public override void SetDefaults()
{
Item.width = 30;
Item.height = 28;
Item.maxStack = 9999;
Item.consumable = true;
Item.value = Item.sellPrice(silver: 10);
Item.rare = ItemRarityID.Green;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = ContentSamples.CreativeHelper.ItemGroup.GoodieBags;
}
public override bool CanRightClick() => true;
public override void ModifyItemLoot(ItemLoot itemLoot) => itemLoot.Add(ModContent.ItemType<BloodOrb>(), 1, 5, 15);
}
}