Files
CalamityModPublic/Items/Materials/CoreofCalamity.cs
T
Ozzatron eaa04280ba 1 - Properly separated all Cosmic Anvil and Draedon's Forge recipes.
2 - An extremely large number of recipe changes. Far too many to remember.
3 - Occult Stone and furniture are now made at the Ancient Manipulator.
4 - 1 Core of Calamity now requires 1 Ashes of Calamity.
5 - Renamed the Calamitous Altar to Altar of the Accursed.
6 - All Cosmilite tier items are made at the Cosmic Anvil.
7 - Standardized the costs of all late game (Cosmilite tier and beyond) items.
2021-09-12 20:07:50 -04:00

43 lines
1.4 KiB
C#

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Materials
{
public class CoreofCalamity : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Core of Calamity");
}
public override void SetDefaults()
{
item.width = 36;
item.height = 36;
item.maxStack = 99;
item.value = Item.sellPrice(gold: 4);
item.rare = ItemRarityID.Yellow;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.GetTexture("CalamityMod/Items/Materials/CoreofCalamityGlow"));
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<CoreofCinder>(), 3);
recipe.AddIngredient(ModContent.ItemType<CoreofEleum>(), 3);
recipe.AddIngredient(ModContent.ItemType<CoreofChaos>(), 3);
recipe.AddIngredient(ModContent.ItemType<CalamityDust>());
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}