Files
CalamityModPublic/Items/Accessories/Laudanum.cs
T
Ozzatron 90ee131985 1) Removed Absolute Rage
2) Refactored both rippers in code
3) Disabled rage effects of HoD + DH
4) Changed hover text in ripper UI
2021-01-21 20:44:34 -05:00

35 lines
1.1 KiB
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class Laudanum : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Laudanum");
Tooltip.SetDefault("Converts certain debuffs into buffs and extends their durations\n" +
"Debuffs affected: Darkness, Blackout, Confused, Slow, Weak, Broken Armor,\n" +
"Armor Crunch, War Cleave, Chilled, Ichor and Obstructed\n" +
"Revengeance drop");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = ItemRarityID.Orange;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.laudanum = true;
}
}
}