44 lines
1.2 KiB
C#
44 lines
1.2 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
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Brimrose");
|
|
Tooltip.SetDefault("Summons a brimrose mount");
|
|
SacrificeTotal = 1;
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|
|
}
|