Files
CalamityModPublic/Items/Accessories/StressPills.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 StressPills : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Stress Pills");
Tooltip.SetDefault("Boosts your defense by 4 and max movement speed and acceleration by 5%\n" +
"Receiving a hit causes you to only lose half of your max adrenaline rather than all of it\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)
{
player.statDefense += 4;
CalamityPlayer modPlayer = player.Calamity();
modPlayer.stressPills = true;
}
}
}