Files
CalamityModPublic/Buffs/StatDebuffs/FrozenLungs.cs
T

25 lines
681 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatDebuffs
{
public class FrozenLungs : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Frozen Lungs");
Description.SetDefault("The icy waters restrict your breathing");
Main.buffNoTimeDisplay[Type] = true;
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().iCantBreathe = true;
}
}
}