19 lines
1003 B
C#
19 lines
1003 B
C#
using Microsoft.Xna.Framework;
|
|
using Terraria.Audio;
|
|
using Terraria.Localization;
|
|
|
|
namespace CalamityMod.Cooldowns
|
|
{
|
|
public class PotionSickness : CooldownHandler
|
|
{
|
|
public static new string ID => "PotionSickness";
|
|
public override bool ShouldDisplay => CalamityConfig.Instance.VanillaCooldownDisplay && instance.player.potionDelay > 0;
|
|
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
|
|
public override string Texture => "CalamityMod/Cooldowns/PotionSickness";
|
|
public override Color OutlineColor => new Color(255, 142, 165);
|
|
public override Color CooldownStartColor => Color.Lerp(new Color(208, 234, 255), new Color(231, 3, 54), instance.Completion);
|
|
public override Color CooldownEndColor => Color.Lerp(new Color(208, 234, 255), new Color(231, 3, 54), instance.Completion);
|
|
public override SoundStyle? EndSound => new("CalamityMod/Sounds/Custom/AbilitySounds/PotionSicknessOver");
|
|
}
|
|
}
|