2 - Deleted alt Siren Heart. 3 - Removed discount effect from Cadance Potion. 4 - Ultra Liquidator now takes 20 cursed flames or ichor instead of the Everglade Spray. 5 - Rev+ DoG now gets faster the further he is away from you. 6 - Aquatic Aberration and Parasea hitbox changes. 7 - Leviathan and Siren AI rework. 8 - Siren renamed to Anahita. 9 - Old Duke Tooth Balls get faster the further they are away from you. 10 - Storm Weaver phase 2 charge gets faster the further you are away from it. 11 - Storm Weaver stops charging once it has passed its target a ways. 12 - Yharon second phase issues fixed. 13 - Dragonfolly charge phase speed reduced. 14 - Dragonfolly final phase auras pushed further apart. 15 - Slime God abyss balls fade away instead of blinking out of existence.
44 lines
1.4 KiB
C#
44 lines
1.4 KiB
C#
using CalamityMod.CalPlayer;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Buffs.StatBuffs
|
|
{
|
|
public class SirenBobs : ModBuff
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
DisplayName.SetDefault("Water Elemental");
|
|
Description.SetDefault("You are a water elemental now");
|
|
Main.debuff[Type] = true;
|
|
Main.buffNoSave[Type] = true;
|
|
Main.buffNoTimeDisplay[Type] = true;
|
|
canBeCleared = false;
|
|
}
|
|
|
|
public override void Update(Player player, ref int buffIndex)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
if (modPlayer.sirenBoobsPrevious)
|
|
{
|
|
modPlayer.sirenBoobsPower = true;
|
|
player.ignoreWater = NPC.downedBoss3;
|
|
player.accFlipper = true;
|
|
if (player.breath <= player.breathMax + 2 && !modPlayer.ZoneAbyss && NPC.downedBoss3)
|
|
{
|
|
player.breath = player.breathMax + 3;
|
|
}
|
|
if (Main.myPlayer == player.whoAmI && player.wet && NPC.downedBoss3)
|
|
{
|
|
player.AddBuff(ModContent.BuffType<SirenWaterSpeed>(), 360);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
player.DelBuff(buffIndex);
|
|
buffIndex--;
|
|
}
|
|
}
|
|
}
|
|
}
|