Files
CalamityModPublic/Buffs/Summon/KalandraMirrorBuff.cs
T
Memes da91ab0052 Added Mirror of Kalandra.
1. Added Mirror of Kalandra item.
2. Added all of Mirror of Kalandra's minions.
3. Made a KalandraMirror bool in CalamityPlayer.cs.
4. Added Mirror of Kalandra buff.
5. Dude what is the deal with that localization armor from Lunic Corps armor.
2023-07-12 04:19:13 +02:00

36 lines
1004 B
C#

using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Summon.MirrorofKalandraMinions;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
{
public class KalandraMirrorBuff : ModBuff
{
public override void SetStaticDefaults()
{
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.Calamity();
if (player.ownedProjectileCounts[ModContent.ProjectileType<AtzirisDisfavor>()] > 0)
{
modPlayer.KalandraMirror = true;
}
if (!modPlayer.KalandraMirror)
{
player.DelBuff(buffIndex);
buffIndex--;
}
else
{
player.buffTime[buffIndex] = 18000;
}
}
}
}