Files
CalamityModPublic/Items/Potions/Alcohol/Screwdriver.cs
T

34 lines
1021 B
C#

using CalamityMod.Buffs.Alcohol;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Potions.Alcohol
{
public class Screwdriver : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Potions";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 5;
}
public override void SetDefaults()
{
Item.width = 16;
Item.height = 26;
Item.useTurn = true;
Item.maxStack = 9999;
Item.rare = ItemRarityID.LightPurple;
Item.useAnimation = 17;
Item.useTime = 17;
Item.useStyle = ItemUseStyleID.DrinkLiquid;
Item.UseSound = SoundID.Item3;
Item.consumable = true;
Item.buffType = ModContent.BuffType<ScrewdriverBuff>();
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
Item.value = Item.buyPrice(0, 4, 0, 0);
}
}
}