Files
CalamityModPublic/Buffs/StatBuffs/BossEffects.cs
T
GinYuH ba50bb246f split client and server configs
rebased by Ozzatron 15AUG2024 to fix conflicts
2024-08-15 16:54:43 -04:00

32 lines
983 B
C#

using System.Text;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class BossEffects : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = true;
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
// TODO -- This bool does nothing except enable boss zen config. All other effects are hardcoded.
// Is this intended?
player.Calamity().isNearbyBoss = true;
}
public override void ModifyBuffText(ref string buffName, ref string tip, ref int rare)
{
if (CalamityServerConfig.Instance.BossZen)
tip = tip.Replace(":", ":\n" + this.GetLocalizedValue("ZenDescription"));
}
}
}