diff --git a/NPCs/AbyssNPCs/AquaticScourgeBody.cs b/NPCs/AbyssNPCs/AquaticScourgeBody.cs index 7b31e01034..a0cbeddfab 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeBody.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeBody.cs @@ -24,7 +24,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.damage = 100; //70 npc.width = 32; //36 npc.height = 32; - npc.defense = 60; + npc.defense = 35; npc.aiStyle = -1; //new aiType = -1; //new npc.knockBackResist = 0f; @@ -337,11 +337,15 @@ namespace CalamityMod.NPCs.AbyssNPCs public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if ((projectile.type == ProjectileID.HallowStar || projectile.type == ProjectileID.CrystalShard) && projectile.ranged) - { - damage /= 2; - } - } + if (projectile.penetrate == -1 && !projectile.minion) + { + damage = (int)((double)damage * 0.2); + } + else if (projectile.penetrate > 1) + { + damage /= projectile.penetrate; + } + } public override bool? CanBeHitByProjectile(Projectile projectile) { diff --git a/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs b/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs index 8bfa0d40f8..369805ea4f 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs @@ -1,10 +1,10 @@ -using System; -using System.IO; +using CalamityMod.World; using Microsoft.Xna.Framework; +using System; +using System.IO; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.World; namespace CalamityMod.NPCs.AbyssNPCs { @@ -24,7 +24,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.damage = 100; //70 npc.width = 32; //36 npc.height = 32; - npc.defense = 60; + npc.defense = 25; npc.aiStyle = -1; //new aiType = -1; //new npc.knockBackResist = 0f; @@ -333,15 +333,19 @@ namespace CalamityMod.NPCs.AbyssNPCs } } - public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) - { - if ((projectile.type == ProjectileID.HallowStar || projectile.type == ProjectileID.CrystalShard) && projectile.ranged) - { - damage /= 2; - } - } + public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (projectile.penetrate == -1 && !projectile.minion) + { + damage = (int)((double)damage * 0.2); + } + else if (projectile.penetrate > 1) + { + damage /= projectile.penetrate; + } + } - public override bool? CanBeHitByProjectile(Projectile projectile) + public override bool? CanBeHitByProjectile(Projectile projectile) { if (projectile.minion) { diff --git a/NPCs/AbyssNPCs/AquaticScourgeHead.cs b/NPCs/AbyssNPCs/AquaticScourgeHead.cs index 91141e428b..f057d54e93 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeHead.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeHead.cs @@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.damage = 100; npc.width = 100; //36 npc.height = 90; //20 - npc.defense = 40; + npc.defense = 20; npc.aiStyle = -1; aiType = -1; npc.lifeMax = CalamityWorld.revenge ? 85000 : 73000; @@ -545,15 +545,19 @@ namespace CalamityMod.NPCs.AbyssNPCs } } - public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) - { - if ((projectile.type == ProjectileID.HallowStar || projectile.type == ProjectileID.CrystalShard) && projectile.ranged) - { - damage /= 2; - } - } + public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (projectile.penetrate == -1 && !projectile.minion) + { + damage = (int)((double)damage * 0.2); + } + else if (projectile.penetrate > 1) + { + damage /= projectile.penetrate; + } + } - public override bool? CanBeHitByProjectile(Projectile projectile) + public override bool? CanBeHitByProjectile(Projectile projectile) { if (projectile.minion) { @@ -586,6 +590,7 @@ namespace CalamityMod.NPCs.AbyssNPCs int closestSegmentID = DropHelper.FindClosestWormSegment(npc, mod.NPCType("AquaticScourgeHead"), mod.NPCType("AquaticScourgeBody"), + mod.NPCType("AquaticScourgeBodyAlt"), mod.NPCType("AquaticScourgeTail")); npc.position = Main.npc[closestSegmentID].position; return false; diff --git a/NPCs/AbyssNPCs/AquaticScourgeTail.cs b/NPCs/AbyssNPCs/AquaticScourgeTail.cs index 76e19a1ed7..70c65063d3 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeTail.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeTail.cs @@ -23,7 +23,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.damage = 100; //70 npc.width = 30; //28 npc.height = 50; //28 - npc.defense = 90; + npc.defense = 45; npc.aiStyle = -1; //new aiType = -1; //new npc.knockBackResist = 0f; @@ -304,15 +304,19 @@ namespace CalamityMod.NPCs.AbyssNPCs } } - public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) - { - if ((projectile.type == ProjectileID.HallowStar || projectile.type == ProjectileID.CrystalShard) && projectile.ranged) - { - damage /= 2; - } - } + public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (projectile.penetrate == -1 && !projectile.minion) + { + damage = (int)((double)damage * 0.2); + } + else if (projectile.penetrate > 1) + { + damage /= projectile.penetrate; + } + } - public override bool? CanBeHitByProjectile(Projectile projectile) + public override bool? CanBeHitByProjectile(Projectile projectile) { if (projectile.minion) {