Files
CalamityModPublic/Buffs/Cooldowns/Withered.cs
T

22 lines
667 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Cooldowns
{
public class Withered : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Withered");
Description.SetDefault("Holding withered weapons causes you to suffer but makes your weapons strong");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
canBeCleared = false;
}
public override void Update(Player player, ref int buffIndex) => player.Calamity().witheredDebuff = true;
}
}