25 lines
748 B
C#
25 lines
748 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Buffs.Potions
|
|
{
|
|
public class ShadowBuff : ModBuff
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Shadow");
|
|
Description.SetDefault("You are a shadow, rogue weapons spawn projectiles on hit, and stealth generation is boosted by 8%");
|
|
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;
|
|
}
|
|
}
|
|
}
|