55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
using CalamityMod.Buffs.Potions;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Rarities;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Potions
|
|
{
|
|
public class CeaselessHungerPotion : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Potions";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 20;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 28;
|
|
Item.height = 18;
|
|
Item.useTurn = true;
|
|
Item.maxStack = 9999;
|
|
Item.rare = ModContent.RarityType<PureGreen>();
|
|
Item.useAnimation = 17;
|
|
Item.useTime = 17;
|
|
Item.useStyle = ItemUseStyleID.DrinkLiquid;
|
|
Item.UseSound = SoundID.Item3;
|
|
Item.consumable = true;
|
|
Item.buffType = ModContent.BuffType<CeaselessHunger>();
|
|
Item.buffTime = CalamityUtils.SecondsToFrames(10f);
|
|
Item.value = Item.buyPrice(0, 2, 0, 0);
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe(4).
|
|
AddIngredient(ItemID.BottledWater, 4).
|
|
AddIngredient<DarkPlasma>().
|
|
AddIngredient<GalacticaSingularity>().
|
|
AddTile(TileID.AlchemyTable).
|
|
AddConsumeItemCallback(Recipe.ConsumptionRules.Alchemy).
|
|
Register();
|
|
|
|
CreateRecipe(4).
|
|
AddIngredient(ItemID.BottledWater, 4).
|
|
AddIngredient<BloodOrb>(20).
|
|
AddIngredient<DarkPlasma>().
|
|
AddTile(TileID.AlchemyTable).
|
|
Register()
|
|
.DisableDecraft();
|
|
}
|
|
}
|
|
}
|