45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using CalamityMod.Buffs.Potions;
|
|
using CalamityMod.Items.Materials;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Potions
|
|
{
|
|
[LegacyName("HolyWrathPotion", "ProfanedRagePotion")]
|
|
public class FlaskOfHolyFlames : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Potions";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 20;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 44;
|
|
Item.height = 36;
|
|
Item.useTurn = true;
|
|
Item.maxStack = 9999;
|
|
Item.rare = ItemRarityID.Purple;
|
|
Item.useAnimation = 17;
|
|
Item.useTime = 17;
|
|
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
|
Item.UseSound = SoundID.Item3;
|
|
Item.consumable = true;
|
|
Item.buffType = ModContent.BuffType<WeaponImbueHolyFlames>();
|
|
Item.buffTime = CalamityUtils.SecondsToFrames(1200f);
|
|
Item.value = Item.buyPrice(0, 2, 0, 0);
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient(ItemID.BottledWater).
|
|
AddIngredient<UnholyEssence>().
|
|
AddTile(TileID.ImbuingStation).
|
|
Register();
|
|
}
|
|
}
|
|
}
|