Files
CalamityModPublic/Buffs/Summon/FuelCellBundleBuff.cs
T
DominicKarma 5713fdab15 FUCKTON of content. See description for a list
Added Eternity, my dev weapon
Changed the Sulf Sea worldgen a bit (a wip, more sprites needed)
Added a ton of Acid Rain weapons and enemies
Added a ton of summon weapons
Added some early-game Sulf Sea weapons
2020-03-09 17:55:45 -05:00

37 lines
1.0 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Summon;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
{
public class FuelCellBundleBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Mini Plaguebringer");
Description.SetDefault("A small plague bee is following you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.Calamity();
if (player.ownedProjectileCounts[ModContent.ProjectileType<PlaguebringerMK2>()] > 0)
{
modPlayer.plaguebringerMK2 = true;
}
if (!modPlayer.plaguebringerMK2)
{
player.DelBuff(buffIndex);
buffIndex--;
}
else
{
player.buffTime[buffIndex] = 18000;
}
}
}
}