Fixed gills effects on gfb
All gills effects applied to the player now only happen is the player is underwater
This commit is contained in:
1 parent
3df69807f7
commit
2ea8793847
5 files changed
+10
-6
No files matched your search
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -20,7 +20,8 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (modPlayer.abyssalDivingSuitPrevious)
|
||||
{
|
||||
player.gills = true;
|
||||
if (player.IsUnderwater())
|
||||
player.gills = true;
|
||||
modPlayer.abyssalDivingSuitPower = true;
|
||||
modPlayer.depthCharm = true;
|
||||
modPlayer.jellyfishNecklace = true;
|
||||
|
||||
@@ -2499,7 +2499,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (decayEffigy)
|
||||
{
|
||||
Player.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = true;
|
||||
if (!ZoneAbyss)
|
||||
if (!ZoneAbyss && Player.IsUnderwater())
|
||||
{
|
||||
Player.gills = true;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,8 @@ namespace CalamityMod.Items.Accessories
|
||||
player.npcTypeNoAggro[NPCID.PinkJellyfish] = true;
|
||||
player.npcTypeNoAggro[NPCID.Crab] = true;
|
||||
player.npcTypeNoAggro[NPCID.Squid] = true;
|
||||
player.gills = true;
|
||||
if (player.IsUnderwater())
|
||||
player.gills = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,8 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.04f;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 2;
|
||||
player.gills = true;
|
||||
if (player.IsUnderwater())
|
||||
player.gills = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -1256,7 +1256,8 @@ namespace CalamityMod.Items
|
||||
}
|
||||
else if (item.type == ItemID.FinWings) // Boosted water abilities, faster fall in water
|
||||
{
|
||||
player.gills = true;
|
||||
if (player.IsUnderwater())
|
||||
player.gills = true;
|
||||
player.ignoreWater = true;
|
||||
player.noFallDmg = true;
|
||||
if (!player.mount.Active)
|
||||
|
||||
Reference in new issue
Block a user