36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using CalamityMod.Buffs.Alcohol;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Potions.Alcohol
|
|
{
|
|
public class Screwdriver : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Screwdriver");
|
|
Tooltip.SetDefault(@"Do you have a screw loose?
|
|
Multiplies piercing projectile damage by 1.05
|
|
Reduces life regen by 1");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 28;
|
|
item.height = 18;
|
|
item.useTurn = true;
|
|
item.maxStack = 30;
|
|
item.rare = ItemRarityID.LightRed;
|
|
item.useAnimation = 17;
|
|
item.useTime = 17;
|
|
item.useStyle = ItemUseStyleID.EatingUsing;
|
|
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);
|
|
}
|
|
}
|
|
}
|