2 - Vulnerability Hex decreases defense by 20 instead of 10. 3 - Whispering Death decreases damage dealt by 25% instead of 20%. 4 - Astral Infection decreases damage dealt by 15% instead of 10%. 5 - Plague decreases damage dealt by 15% instead of 10%.
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using CalamityMod.Buffs.Alcohol;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Potions.Alcohol
|
|
{
|
|
public class GrapeBeer : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
SacrificeTotal = 5;
|
|
DisplayName.SetDefault("Grape Beer");
|
|
Tooltip.SetDefault(@"This crap is abhorrent but you might like it
|
|
Reduces defense by 3%");
|
|
}
|
|
|
|
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.DrinkLiquid;
|
|
Item.UseSound = SoundID.Item3;
|
|
Item.healLife = 100;
|
|
Item.healMana = 100;
|
|
Item.consumable = true;
|
|
Item.potion = true;
|
|
Item.value = Item.buyPrice(0, 0, 20, 0);
|
|
}
|
|
|
|
public override void OnConsumeItem(Player player)
|
|
{
|
|
player.AddBuff(ModContent.BuffType<GrapeBeerBuff>(), 900);
|
|
}
|
|
}
|
|
}
|