Files
CalamityModPublic/Items/Materials/CoreofCalamity.cs
T
Altixal e1c848d45f bulk price changes part 1
- *Re-scaled price of most Calamity materials* (most drastically post-DoG)
- Shimmer transmutation price parity (same as og items)
- Applied consistent vanilla sell anchor values to Calamity items:
 - Buff potions: 2 silver
 - Flask: 5 silver
 - Uncommon critters: 10 silver
 - Potion fish: 15 silver
 - Lootable fish: 10 silver
 - Sashimi fish: 7.5 silver
 - Plentiful fish: 5 silver
 - Added value to Calamity seeds and saplings to match vanilla
2024-09-17 21:42:55 +07:00

45 lines
1.5 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, ILocalizedModType
{
public new string LocalizationCategory => "Items.Materials";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.ItemNoGravity[Item.type] = true;
ItemID.Sets.SortingPriorityMaterials[Type] = 94; // Spectre Bar
}
public override void SetDefaults()
{
Item.width = 36;
Item.height = 36;
Item.maxStack = 9999;
Item.value = Item.sellPrice(gold: 2);
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.Request<Texture2D>("CalamityMod/Items/Materials/CoreofCalamityGlow").Value);
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<CoreofSunlight>(3).
AddIngredient<CoreofEleum>(3).
AddIngredient<CoreofHavoc>(3).
AddIngredient<AshesofCalamity>().
AddTile(TileID.MythrilAnvil).
Register();
}
}
}