36 lines
1.1 KiB
C#

using Emiliasmod.Content.Mounts;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Emiliasmod.Content.Items.Mounts
{
[Autoload(false)]
public class SpaceShuttleItem : ModItem
{
public override void SetDefaults() {
Item.width = 20;
Item.height = 30;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useStyle = ItemUseStyleID.Swing; // how the player's arm moves when using the item
Item.value = Item.sellPrice(1, 25, 24, 0);
Item.rare = ItemRarityID.Red;
Item.UseSound = SoundID.Item79; // What sound should play when using the item
Item.noMelee = true; // this item doesn't do any melee damage
Item.mountType = MountID.WitchBroom;
//ModContent.MountType<>();
}
// Please see Content/ExampleRecipes.cs for a detailed explanation of recipe creation.
public override void AddRecipes() {
Recipe recipe = CreateRecipe();
recipe.AddCondition(Condition.DownedMoonLord);
recipe.AddIngredient(ItemID.EmpressFlightBooster, 1);
recipe.AddIngredient(ItemID.MoonLordLegs, 1);
recipe.AddIngredient(ItemID.LongRainbowTrailWings, 1);
recipe.Register();
}
}
}