46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Items.Placeables.Ores;
|
|
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Mounts
|
|
{
|
|
class GazeOfCrysthamyr : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Gaze of Crysthamyr");
|
|
Tooltip.SetDefault("Summons a shadow dragon");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 16;
|
|
item.height = 16;
|
|
item.useTime = 20;
|
|
item.useAnimation = 20;
|
|
item.useStyle = 4;
|
|
item.rare = 10;
|
|
item.value = Item.buyPrice(3, 0, 0, 0);
|
|
item.UseSound = SoundID.NPCHit56;
|
|
item.noMelee = true;
|
|
item.mountType = ModContent.MountType<Crysthamyr>();
|
|
item.Calamity().postMoonLordRarity = 21;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ItemID.DD2PetDragon);
|
|
recipe.AddIngredient(ItemID.SoulofNight, 100);
|
|
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 50);
|
|
recipe.AddIngredient(ModContent.ItemType<ExodiumClusterOre>(), 25);
|
|
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|