25 lines
698 B
C#
25 lines
698 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Buffs.Potions
|
|
{
|
|
public class ShadowBuff : ModBuff
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
DisplayName.SetDefault("Shadow");
|
|
Description.SetDefault("You're invisible, certain rogue weapons give and gain buffs, and stealth generation is boosted.");
|
|
Main.debuff[Type] = false;
|
|
Main.pvpBuff[Type] = true;
|
|
Main.buffNoSave[Type] = false;
|
|
longerExpertDebuff = false;
|
|
}
|
|
|
|
public override void Update(Player player, ref int buffIndex)
|
|
{
|
|
player.invis = true;
|
|
player.Calamity().shadow = true;
|
|
}
|
|
}
|
|
}
|