Files
CalamityModPublic/Items/Potions/Fabsoup.cs
T
2023-01-30 12:26:20 +07:00

59 lines
2.0 KiB
C#

/*using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Rarities;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Potions
{
public class Fabsoup : ModItem
{
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/SoupConsumption");
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Pot of Pain");
Tooltip.SetDefault("{$CommonItemTooltip.MajorStats}\n'hrngh, soup'");
SacrificeTotal = 1;
}
public override void SetDefaults()
{
Item.width = 56;
Item.height = 50;
Item.value = 0;
Item.rare = ModContent.RarityType<Violet>();
Item.maxStack = 1;
Item.consumable = false;
Item.useAnimation = 901;
Item.useTime = 901;
Item.UseSound = UseSound;
Item.useStyle = ItemUseStyleID.DrinkLiquid;
Item.useTurn = true;
}
public override void UseItemFrame(Player player)
{
int time = CalamityUtils.SecondsToFrames(1800f);
if (player.itemAnimation == 180)
{
player.AddBuff(BuffID.WellFed3, time);
}
// ow hot
if (player.itemAnimation == 60)
{
player.AddBuff(BuffID.WellFed3, time);
player.AddBuff(BuffID.OnFire, time);
player.AddBuff(BuffID.Frostburn, time);
player.AddBuff(BuffID.CursedInferno, time);
player.AddBuff(ModContent.BuffType<Shadowflame>(), time);
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), time);
player.AddBuff(ModContent.BuffType<HolyFlames>(), time);
player.AddBuff(ModContent.BuffType<GodSlayerInferno>(), time);
player.AddBuff(ModContent.BuffType<Dragonfire>(), time);
player.AddBuff(ModContent.BuffType<VulnerabilityHex>(), time);
}
}
}
}*/