38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Rarities;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Mounts
|
|
{
|
|
public class Brimrose : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Mounts";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 64;
|
|
Item.height = 64;
|
|
Item.useTime = 20;
|
|
Item.useAnimation = 20;
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.UseSound = SoundID.Item3;
|
|
Item.noMelee = true;
|
|
Item.mountType = ModContent.MountType<PhuppersChair>();
|
|
|
|
Item.value = Item.buyPrice(platinum: 1, gold: 50);
|
|
Item.rare = ModContent.RarityType<Turquoise>();
|
|
Item.Calamity().devItem = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<UnholyCore>(5).
|
|
AddIngredient<Bloodstone>(20).
|
|
AddTile(TileID.LunarCraftingStation).
|
|
Register();
|
|
}
|
|
}
|
|
}
|