Files
CalamityModPublic/Items/PermanentBoosters/InfernalBlood.cs
T
Ozzatron 11806dc586 Rage rework.
1 - Ripper damage function is now a util
2 - Rage lasts 10 seconds instead of 5.
3 - Rage adds +50% damage and between 10% and 20% multiplicative DR (higher at fuller meter).
4 - Rage Boosters increase duration by 2 seconds each instead of adding damage.
5 - Rage is gained via pre-mitigation damage versus your max health.
6 - Rage decays when out of combat.
7 - Heart of Darkness removes Rage decay and gives constant Rage gain.
8 - Draedon's Heart massively increases Rage generation at low HP.
9 - Reworked when-player-takes-damage code.
10 - Adjusted tooltips of relevant items.
2021-01-21 20:44:34 -05:00

43 lines
1.2 KiB
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.PermanentBoosters
{
public class InfernalBlood : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Infernal Blood");
Tooltip.SetDefault("Permanently increases the duration of Rage Mode by 2 seconds\n" +
"Revengeance drop");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 20;
item.useAnimation = 30;
item.rare = ItemRarityID.Yellow;
item.useTime = 30;
item.useStyle = ItemUseStyleID.HoldingUp;
item.UseSound = SoundID.Item122;
item.consumable = true;
}
public override bool CanUseItem(Player player) => !player.Calamity().rageBoostTwo;
public override bool UseItem(Player player)
{
if (player.itemAnimation > 0 && player.itemTime == 0)
{
player.itemTime = item.useTime;
CalamityPlayer modPlayer = player.Calamity();
modPlayer.rageBoostTwo = true;
}
return true;
}
}
}