Files
CalamityModPublic/Buffs/Potions/ShadowBuff.cs
T
Ozzatron 1a33901ac0 1 - Surveyed buffs folder for new damage changes.
2 - Internally renamed DoG's Extreme Gravity vs Providence's Icarus Folly to be more clear.
3 - Added a few TODO comments regarding potential violations of the DR softcap.
4 - Rancor's debuff is now properly categorized as a DoT.
2023-07-10 13:30:50 -04:00

23 lines
589 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Potions
{
public class ShadowBuff : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().shadow = true;
if (player.yoraiz0rEye < 2 && CalamityConfig.Instance.StealthInvisibility)
player.yoraiz0rEye = 2;
}
}
}