diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index c1235cadd7..2883d1875b 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -1127,31 +1127,6 @@ namespace CalamityMod.CalPlayer { CalamityGlobalProjectile modProj = proj.Calamity(); - // Spectre Damage set and Nebula set work on enemies which are "immune to lifesteal" - if (!target.canGhostHeal) - { - if (Player.ghostHurt) - proj.ghostHurt(damage, target.Center, target); - - if (Player.setNebula && Player.nebulaCD == 0 && Main.rand.NextBool(3)) - { - Player.nebulaCD = 30; - int boosterType = Utils.SelectRandom(Main.rand, new int[] - { - ItemID.NebulaPickup1, - ItemID.NebulaPickup2, - ItemID.NebulaPickup3 - }); - - var source = Player.GetSource_Misc("1"); - int nebulaBooster = Item.NewItem(source, target.Center, target.Size, boosterType, 1, false, 0, false, false); - Main.item[nebulaBooster].velocity.Y = Main.rand.Next(-20, 1) * 0.2f; - Main.item[nebulaBooster].velocity.X = Main.rand.Next(10, 31) * 0.2f * proj.direction; - if (Main.netMode == NetmodeID.MultiplayerClient) - NetMessage.SendData(MessageID.SyncItem, -1, -1, null, nebulaBooster, 0f, 0f, 0f, 0, 0, 0); - } - } - if (bloodflareSet && !target.IsAnEnemy(false) && !Player.moonLeech) { if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0) @@ -1205,19 +1180,19 @@ namespace CalamityMod.CalPlayer { int heal = (int)Math.Round(damage * 0.011); if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(1f, heal)) - CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileID.VampireHeal, 1200f, 6f); + CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileID.VampireHeal, 1200f, 6f); } if (bloodyGlove && proj.CountsAsClass() && modProj.stealthStrike) - CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, 1200f, 10f); + CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, 2, ProjectileID.VampireHeal, 1200f, 10f); if (target.IsAnEnemy(false)) { if (bloodflareThrowing && proj.CountsAsClass() && crit) - CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, 1200f, 3f); + CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, 2, ProjectileID.VampireHeal, 1200f, 3f); if (bloodflareMelee && proj.IsTrueMelee()) - CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, 1200f, 3f); + CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, 2, ProjectileID.VampireHeal, 1200f, 3f); } if (proj.CountsAsClass() && Player.ActiveItem().CountsAsClass()) @@ -1228,7 +1203,7 @@ namespace CalamityMod.CalPlayer healMult -= proj.numHits * 0.05f; float heal = damage * healMult * (Player.statMana / (float)Player.statManaMax2); if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal)) - CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType(), 1200f, 4f); + CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType(), 1200f, 4f); } } @@ -1238,7 +1213,7 @@ namespace CalamityMod.CalPlayer healMult -= proj.numHits * 0.015f; float heal = damage * healMult; if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal)) - CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType(), 1200f, 2f); + CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType(), 1200f, 2f); } else if (proj.CountsAsClass() && Player.ActiveItem().CountsAsClass()) { @@ -1248,7 +1223,7 @@ namespace CalamityMod.CalPlayer healMult -= proj.numHits * 0.05f; float heal = damage * healMult; if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal)) - CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType(), 1200f, 3f); + CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType(), 1200f, 3f); } else if (ataxiaMage) { @@ -1256,7 +1231,7 @@ namespace CalamityMod.CalPlayer healMult -= proj.numHits * 0.05f; float heal = damage * healMult; if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal)) - CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType(), 1200f, 3f); + CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType(), 1200f, 3f); } } @@ -1266,7 +1241,7 @@ namespace CalamityMod.CalPlayer healMult -= proj.numHits * 0.05f; float heal = damage * healMult; if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal)) - CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType(), 1200f, 3f); + CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType(), 1200f, 3f); } if (proj.CountsAsClass()) @@ -1277,7 +1252,7 @@ namespace CalamityMod.CalPlayer healMult -= proj.numHits * 0.015f; float heal = damage * healMult; if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal)) - CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType(), 1200f, 3f); + CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType(), 1200f, 3f); } } } diff --git a/CalamityLists.cs b/CalamityLists.cs index 91dbff3ca3..c00c19e251 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -101,7 +101,6 @@ namespace CalamityMod public static List revengeanceProjectileBuffList25Percent; public static List revengeanceProjectileBuffList20Percent; public static List revengeanceProjectileBuffList15Percent; - public static List revengeanceLifeStealExceptionList; public static List noRageWormSegmentList; public static List needsDebuffIconDisplayList; public static List scopedWeaponList; @@ -1510,36 +1509,6 @@ namespace CalamityMod ProjectileType() }; - revengeanceLifeStealExceptionList = new List() - { - NPCID.Probe, - NPCID.CultistDragonHead, - NPCID.CultistDragonBody1, - NPCID.CultistDragonBody2, - NPCID.CultistDragonBody3, - NPCID.CultistDragonBody4, - NPCID.CultistDragonTail, - NPCID.AncientCultistSquidhead, - NPCID.AncientLight, - NPCID.Sharkron, - NPCID.Sharkron2, - NPCID.PlanterasTentacle, - NPCType(), - NPCID.Spore, - NPCID.TheHungryII, - NPCID.LeechHead, - NPCID.LeechBody, - NPCID.LeechTail, - NPCID.QueenSlimeMinionBlue, - NPCID.QueenSlimeMinionPink, - NPCID.QueenSlimeMinionPurple, - NPCID.TheDestroyerBody, - NPCID.TheDestroyerTail, - NPCID.EaterofWorldsBody, - NPCID.EaterofWorldsTail, - NPCID.MoonLordCore - }; - noRageWormSegmentList = new List() { NPCType(), @@ -2812,7 +2781,6 @@ namespace CalamityMod revengeanceProjectileBuffList25Percent = null; revengeanceProjectileBuffList20Percent = null; revengeanceProjectileBuffList15Percent = null; - revengeanceLifeStealExceptionList = null; noRageWormSegmentList = null; needsDebuffIconDisplayList = null; scopedWeaponList = null; diff --git a/Items/Weapons/Melee/Earth.cs b/Items/Weapons/Melee/Earth.cs index 0a49fdac72..8da799472d 100644 --- a/Items/Weapons/Melee/Earth.cs +++ b/Items/Weapons/Melee/Earth.cs @@ -87,7 +87,7 @@ namespace CalamityMod.Items.Weapons.Melee if (!target.canGhostHeal || player.moonLeech) return; - int heal = Main.rand.Next(1, 69); + int heal = Main.rand.Next(1, 70); player.statLife += heal; player.HealEffect(heal); } diff --git a/NPCs/AquaticScourge/AquaticScourgeBody.cs b/NPCs/AquaticScourge/AquaticScourgeBody.cs index d5331aa480..e7d0565bad 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBody.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBody.cs @@ -47,7 +47,6 @@ namespace CalamityMod.NPCs.AquaticScourge NPC.netAlways = true; NPC.dontCountMe = true; NPC.chaseable = false; - NPC.canGhostHeal = false; if (BossRushEvent.BossRushActive) NPC.scale *= 1.25f; diff --git a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs index 40f0a5fceb..6a2871b0a2 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs @@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.AquaticScourge NPC.netAlways = true; NPC.dontCountMe = true; NPC.chaseable = false; - NPC.canGhostHeal = false; if (BossRushEvent.BossRushActive) NPC.scale *= 1.25f; diff --git a/NPCs/AquaticScourge/AquaticScourgeTail.cs b/NPCs/AquaticScourge/AquaticScourgeTail.cs index fb71b715fb..5b7217d8c0 100644 --- a/NPCs/AquaticScourge/AquaticScourgeTail.cs +++ b/NPCs/AquaticScourge/AquaticScourgeTail.cs @@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.AquaticScourge NPC.netAlways = true; NPC.dontCountMe = true; NPC.chaseable = false; - NPC.canGhostHeal = false; if (BossRushEvent.BossRushActive) NPC.scale *= 1.25f; diff --git a/NPCs/AstrumAureus/AureusSpawn.cs b/NPCs/AstrumAureus/AureusSpawn.cs index 0f10da2ef5..3c8439e0e4 100644 --- a/NPCs/AstrumAureus/AureusSpawn.cs +++ b/NPCs/AstrumAureus/AureusSpawn.cs @@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.AstrumAureus NPC.dontTakeDamage = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; NPC.Calamity().VulnerableToHeat = true; diff --git a/NPCs/AstrumDeus/AstrumDeusBody.cs b/NPCs/AstrumDeus/AstrumDeusBody.cs index 5ad2a271f0..cee87a5536 100644 --- a/NPCs/AstrumDeus/AstrumDeusBody.cs +++ b/NPCs/AstrumDeus/AstrumDeusBody.cs @@ -52,7 +52,6 @@ namespace CalamityMod.NPCs.AstrumDeus NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = AstrumDeusHead.HitSound; NPC.DeathSound = AstrumDeusHead.DeathSound; NPC.netAlways = true; diff --git a/NPCs/AstrumDeus/AstrumDeusTail.cs b/NPCs/AstrumDeus/AstrumDeusTail.cs index 697b4080b7..881e8ee4f2 100644 --- a/NPCs/AstrumDeus/AstrumDeusTail.cs +++ b/NPCs/AstrumDeus/AstrumDeusTail.cs @@ -52,7 +52,6 @@ namespace CalamityMod.NPCs.AstrumDeus NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = AstrumDeusHead.HitSound; NPC.DeathSound = AstrumDeusHead.DeathSound; NPC.netAlways = true; diff --git a/NPCs/BrimstoneElemental/Brimling.cs b/NPCs/BrimstoneElemental/Brimling.cs index a983423648..149a689271 100644 --- a/NPCs/BrimstoneElemental/Brimling.cs +++ b/NPCs/BrimstoneElemental/Brimling.cs @@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.BrimstoneElemental NPC.knockBackResist = 0.5f; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit23; NPC.DeathSound = SoundID.NPCDeath39; if (BossRushEvent.BossRushActive) diff --git a/NPCs/Bumblebirb/Bumblefuck2.cs b/NPCs/Bumblebirb/Bumblefuck2.cs index 57e33046f2..957905ed53 100644 --- a/NPCs/Bumblebirb/Bumblefuck2.cs +++ b/NPCs/Bumblebirb/Bumblefuck2.cs @@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.Bumblebirb NPC.lavaImmune = true; NPC.noTileCollide = true; NPC.noGravity = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit51; NPC.DeathSound = SoundID.NPCDeath46; NPC.Calamity().VulnerableToHeat = true; diff --git a/NPCs/CalClone/SoulSeeker.cs b/NPCs/CalClone/SoulSeeker.cs index 9123593666..7c5477d74e 100644 --- a/NPCs/CalClone/SoulSeeker.cs +++ b/NPCs/CalClone/SoulSeeker.cs @@ -33,7 +33,6 @@ namespace CalamityMod.NPCs.CalClone NPC.height = 40; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.damage = 40; NPC.defense = 10; NPC.DR_NERD(0.1f); diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 3fde18481a..d36f96e13e 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -1489,11 +1489,6 @@ namespace CalamityMod.NPCs { npc.knockBackResist = 0f; } - - if (CalamityLists.revengeanceLifeStealExceptionList.Contains(npc.type)) - { - npc.canGhostHeal = false; - } } #endregion diff --git a/NPCs/CeaselessVoid/DarkEnergy.cs b/NPCs/CeaselessVoid/DarkEnergy.cs index b7f04b99dc..3c1a4827d6 100644 --- a/NPCs/CeaselessVoid/DarkEnergy.cs +++ b/NPCs/CeaselessVoid/DarkEnergy.cs @@ -50,7 +50,6 @@ namespace CalamityMod.NPCs.CeaselessVoid NPC.Opacity = 0f; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit53; NPC.DeathSound = SoundID.NPCDeath44; NPC.Calamity().VulnerableToSickness = false; diff --git a/NPCs/Crabulon/CrabShroom.cs b/NPCs/Crabulon/CrabShroom.cs index 730635427e..47b079b94b 100644 --- a/NPCs/Crabulon/CrabShroom.cs +++ b/NPCs/Crabulon/CrabShroom.cs @@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.Crabulon NPC.knockBackResist = 0.5f; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; NPC.Calamity().VulnerableToHeat = true; diff --git a/NPCs/Cryogen/CryogenShield.cs b/NPCs/Cryogen/CryogenShield.cs index e031360953..1ea4343171 100644 --- a/NPCs/Cryogen/CryogenShield.cs +++ b/NPCs/Cryogen/CryogenShield.cs @@ -25,7 +25,6 @@ namespace CalamityMod.NPCs.Cryogen NPC.Calamity().canBreakPlayerDefense = true; NPC.aiStyle = -1; AIType = -1; - NPC.canGhostHeal = false; NPC.noTileCollide = true; NPC.coldDamage = true; NPC.GetNPCDamage(); diff --git a/NPCs/DesertScourge/DesertNuisanceBody.cs b/NPCs/DesertScourge/DesertNuisanceBody.cs index 9b547a3971..5c467c4e02 100644 --- a/NPCs/DesertScourge/DesertNuisanceBody.cs +++ b/NPCs/DesertScourge/DesertNuisanceBody.cs @@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.DesertScourge NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; NPC.netAlways = true; diff --git a/NPCs/DesertScourge/DesertNuisanceTail.cs b/NPCs/DesertScourge/DesertNuisanceTail.cs index 9a1024b6e8..618b0102fb 100644 --- a/NPCs/DesertScourge/DesertNuisanceTail.cs +++ b/NPCs/DesertScourge/DesertNuisanceTail.cs @@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.DesertScourge NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; NPC.netAlways = true; diff --git a/NPCs/DesertScourge/DesertScourgeBody.cs b/NPCs/DesertScourge/DesertScourgeBody.cs index 23693f3e39..a5954ba900 100644 --- a/NPCs/DesertScourge/DesertScourgeBody.cs +++ b/NPCs/DesertScourge/DesertScourgeBody.cs @@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.DesertScourge NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; NPC.netAlways = true; diff --git a/NPCs/DesertScourge/DesertScourgeTail.cs b/NPCs/DesertScourge/DesertScourgeTail.cs index ea0d38c87f..ff24926a44 100644 --- a/NPCs/DesertScourge/DesertScourgeTail.cs +++ b/NPCs/DesertScourge/DesertScourgeTail.cs @@ -38,7 +38,6 @@ namespace CalamityMod.NPCs.DesertScourge NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; NPC.netAlways = true; diff --git a/NPCs/DevourerofGods/CosmicGuardianBody.cs b/NPCs/DevourerofGods/CosmicGuardianBody.cs index 55d3b639b5..22df16f5e1 100644 --- a/NPCs/DevourerofGods/CosmicGuardianBody.cs +++ b/NPCs/DevourerofGods/CosmicGuardianBody.cs @@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.DevourerofGods NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit4; NPC.DeathSound = SoundID.NPCDeath14; NPC.netAlways = true; diff --git a/NPCs/DevourerofGods/CosmicGuardianHead.cs b/NPCs/DevourerofGods/CosmicGuardianHead.cs index d40e41098c..d4d809eb7d 100644 --- a/NPCs/DevourerofGods/CosmicGuardianHead.cs +++ b/NPCs/DevourerofGods/CosmicGuardianHead.cs @@ -54,7 +54,6 @@ namespace CalamityMod.NPCs.DevourerofGods NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit4; NPC.DeathSound = SoundID.NPCDeath14; NPC.netAlways = true; diff --git a/NPCs/DevourerofGods/CosmicGuardianTail.cs b/NPCs/DevourerofGods/CosmicGuardianTail.cs index eebc906c3c..4308471905 100644 --- a/NPCs/DevourerofGods/CosmicGuardianTail.cs +++ b/NPCs/DevourerofGods/CosmicGuardianTail.cs @@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.DevourerofGods NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit4; NPC.DeathSound = SoundID.NPCDeath14; NPC.netAlways = true; diff --git a/NPCs/DevourerofGods/DevourerofGodsBody.cs b/NPCs/DevourerofGods/DevourerofGodsBody.cs index e9e58b8136..ddbb093225 100644 --- a/NPCs/DevourerofGods/DevourerofGodsBody.cs +++ b/NPCs/DevourerofGods/DevourerofGodsBody.cs @@ -55,7 +55,6 @@ namespace CalamityMod.NPCs.DevourerofGods global.DR = 0.925f; global.unbreakableDR = true; NPC.chaseable = false; - NPC.canGhostHeal = false; } NPC.LifeMaxNERB(887500, 1065000, 1500000); // Phase 1 is 355000, Phase 2 is 532500 double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; diff --git a/NPCs/DevourerofGods/DevourerofGodsTail.cs b/NPCs/DevourerofGods/DevourerofGodsTail.cs index 0bd4d1858f..1f51ff5ea0 100644 --- a/NPCs/DevourerofGods/DevourerofGodsTail.cs +++ b/NPCs/DevourerofGods/DevourerofGodsTail.cs @@ -67,7 +67,6 @@ namespace CalamityMod.NPCs.DevourerofGods NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.DeathSound = SoundID.NPCDeath14; NPC.netAlways = true; NPC.boss = true; diff --git a/NPCs/ExoMechs/Ares/AresGaussNuke.cs b/NPCs/ExoMechs/Ares/AresGaussNuke.cs index 58c27cd60f..c85886d59f 100644 --- a/NPCs/ExoMechs/Ares/AresGaussNuke.cs +++ b/NPCs/ExoMechs/Ares/AresGaussNuke.cs @@ -92,7 +92,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares AIType = -1; NPC.Opacity = 0f; NPC.knockBackResist = 0f; - NPC.canGhostHeal = false; NPC.noGravity = true; NPC.noTileCollide = true; NPC.DeathSound = CommonCalamitySounds.ExoDeathSound; diff --git a/NPCs/ExoMechs/Ares/AresLaserCannon.cs b/NPCs/ExoMechs/Ares/AresLaserCannon.cs index 31c2cf3702..431a174cdb 100644 --- a/NPCs/ExoMechs/Ares/AresLaserCannon.cs +++ b/NPCs/ExoMechs/Ares/AresLaserCannon.cs @@ -95,7 +95,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares AIType = -1; NPC.Opacity = 0f; NPC.knockBackResist = 0f; - NPC.canGhostHeal = false; NPC.noGravity = true; NPC.noTileCollide = true; NPC.DeathSound = CommonCalamitySounds.ExoDeathSound; diff --git a/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs b/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs index e4b9a41c25..b569a0c639 100644 --- a/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs +++ b/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs @@ -89,7 +89,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares AIType = -1; NPC.Opacity = 0f; NPC.knockBackResist = 0f; - NPC.canGhostHeal = false; NPC.noGravity = true; NPC.noTileCollide = true; NPC.DeathSound = CommonCalamitySounds.ExoDeathSound; diff --git a/NPCs/ExoMechs/Ares/AresTeslaCannon.cs b/NPCs/ExoMechs/Ares/AresTeslaCannon.cs index 12dc2ff4d1..19eead6a22 100644 --- a/NPCs/ExoMechs/Ares/AresTeslaCannon.cs +++ b/NPCs/ExoMechs/Ares/AresTeslaCannon.cs @@ -90,7 +90,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares AIType = -1; NPC.Opacity = 0f; NPC.knockBackResist = 0f; - NPC.canGhostHeal = false; NPC.noGravity = true; NPC.noTileCollide = true; NPC.DeathSound = CommonCalamitySounds.ExoDeathSound; diff --git a/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs b/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs index 8a0dba7614..f5f2f9721f 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs @@ -73,7 +73,6 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos AIType = -1; NPC.knockBackResist = 0f; NPC.Opacity = 0f; - NPC.canGhostHeal = false; NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; diff --git a/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs b/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs index ddb8ed59b3..78170efcf5 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs @@ -71,7 +71,6 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos AIType = -1; NPC.knockBackResist = 0f; NPC.Opacity = 0f; - NPC.canGhostHeal = false; NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; diff --git a/NPCs/ExoMechs/Thanatos/ThanatosTail.cs b/NPCs/ExoMechs/Thanatos/ThanatosTail.cs index 31254ed0ff..6d1ed1dcab 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosTail.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosTail.cs @@ -71,7 +71,6 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos AIType = -1; NPC.knockBackResist = 0f; NPC.Opacity = 0f; - NPC.canGhostHeal = false; NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; diff --git a/NPCs/HiveMind/DankCreeper.cs b/NPCs/HiveMind/DankCreeper.cs index 5b8c406d53..a9328ad75e 100644 --- a/NPCs/HiveMind/DankCreeper.cs +++ b/NPCs/HiveMind/DankCreeper.cs @@ -42,7 +42,6 @@ namespace CalamityMod.NPCs.HiveMind NPC.knockBackResist = BossRushEvent.BossRushActive ? 0f : 0.3f; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; NPC.Calamity().VulnerableToHeat = true; diff --git a/NPCs/HiveMind/DarkHeart.cs b/NPCs/HiveMind/DarkHeart.cs index 5d6689b967..0449ae3853 100644 --- a/NPCs/HiveMind/DarkHeart.cs +++ b/NPCs/HiveMind/DarkHeart.cs @@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.HiveMind AIType = -1; NPC.knockBackResist = BossRushEvent.BossRushActive ? 0f : 0.4f; NPC.noGravity = true; - NPC.canGhostHeal = false; NPC.chaseable = false; NPC.HitSound = SoundID.NPCHit13; NPC.DeathSound = SoundID.NPCDeath21; diff --git a/NPCs/HiveMind/HiveBlob.cs b/NPCs/HiveMind/HiveBlob.cs index 42c68b794a..cd07a4b5fe 100644 --- a/NPCs/HiveMind/HiveBlob.cs +++ b/NPCs/HiveMind/HiveBlob.cs @@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.HiveMind AIType = -1; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.chaseable = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; diff --git a/NPCs/HiveMind/HiveBlob2.cs b/NPCs/HiveMind/HiveBlob2.cs index ac4aec61da..e52ba4db4e 100644 --- a/NPCs/HiveMind/HiveBlob2.cs +++ b/NPCs/HiveMind/HiveBlob2.cs @@ -42,7 +42,6 @@ namespace CalamityMod.NPCs.HiveMind AIType = -1; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.chaseable = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; diff --git a/NPCs/Leviathan/AnahitasIceShield.cs b/NPCs/Leviathan/AnahitasIceShield.cs index db7c5035f7..9baba8e7fa 100644 --- a/NPCs/Leviathan/AnahitasIceShield.cs +++ b/NPCs/Leviathan/AnahitasIceShield.cs @@ -31,7 +31,6 @@ namespace CalamityMod.NPCs.Leviathan { NPC.aiStyle = -1; AIType = -1; - NPC.canGhostHeal = false; NPC.noTileCollide = true; NPC.coldDamage = true; NPC.GetNPCDamage(); diff --git a/NPCs/Leviathan/AquaticAberration.cs b/NPCs/Leviathan/AquaticAberration.cs index 2356cccfd4..55d330b8b9 100644 --- a/NPCs/Leviathan/AquaticAberration.cs +++ b/NPCs/Leviathan/AquaticAberration.cs @@ -48,7 +48,6 @@ namespace CalamityMod.NPCs.Leviathan NPC.knockBackResist = 0.2f; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; AIType = -1; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; diff --git a/NPCs/NormalNPCs/KingSlimeJewel.cs b/NPCs/NormalNPCs/KingSlimeJewel.cs index f0fbe1a540..b4f6b4739a 100644 --- a/NPCs/NormalNPCs/KingSlimeJewel.cs +++ b/NPCs/NormalNPCs/KingSlimeJewel.cs @@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.knockBackResist = 0.8f; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit5; NPC.DeathSound = SoundID.NPCDeath15; NPC.Calamity().VulnerableToSickness = false; diff --git a/NPCs/NormalNPCs/WildBumblefuck.cs b/NPCs/NormalNPCs/WildBumblefuck.cs index ec7ca83ab6..8421f495ff 100644 --- a/NPCs/NormalNPCs/WildBumblefuck.cs +++ b/NPCs/NormalNPCs/WildBumblefuck.cs @@ -44,7 +44,6 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.lavaImmune = true; NPC.noTileCollide = true; NPC.noGravity = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit51; NPC.DeathSound = SoundID.NPCDeath46; NPC.Calamity().VulnerableToHeat = true; diff --git a/NPCs/Perforator/PerforatorBodyLarge.cs b/NPCs/Perforator/PerforatorBodyLarge.cs index 34bc115a9b..c5a2f6056c 100644 --- a/NPCs/Perforator/PerforatorBodyLarge.cs +++ b/NPCs/Perforator/PerforatorBodyLarge.cs @@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = HitSound; NPC.DeathSound = DeathSound; NPC.netAlways = true; diff --git a/NPCs/Perforator/PerforatorBodyMedium.cs b/NPCs/Perforator/PerforatorBodyMedium.cs index 9aef865bdd..88c2e048e3 100644 --- a/NPCs/Perforator/PerforatorBodyMedium.cs +++ b/NPCs/Perforator/PerforatorBodyMedium.cs @@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.Perforator NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = HitSound; NPC.DeathSound = DeathSound; NPC.netAlways = true; diff --git a/NPCs/Perforator/PerforatorBodySmall.cs b/NPCs/Perforator/PerforatorBodySmall.cs index 183e7ebbc1..580b82d6f7 100644 --- a/NPCs/Perforator/PerforatorBodySmall.cs +++ b/NPCs/Perforator/PerforatorBodySmall.cs @@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = HitSound; NPC.DeathSound = DeathSound; NPC.netAlways = true; diff --git a/NPCs/Perforator/PerforatorTailLarge.cs b/NPCs/Perforator/PerforatorTailLarge.cs index b5e9ce7611..a66ffd806b 100644 --- a/NPCs/Perforator/PerforatorTailLarge.cs +++ b/NPCs/Perforator/PerforatorTailLarge.cs @@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = HitSound; NPC.DeathSound = DeathSound; NPC.netAlways = true; diff --git a/NPCs/Perforator/PerforatorTailMedium.cs b/NPCs/Perforator/PerforatorTailMedium.cs index e918cfe157..39a8984455 100644 --- a/NPCs/Perforator/PerforatorTailMedium.cs +++ b/NPCs/Perforator/PerforatorTailMedium.cs @@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.Perforator NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = HitSound; NPC.DeathSound = DeathSound; NPC.netAlways = true; diff --git a/NPCs/Perforator/PerforatorTailSmall.cs b/NPCs/Perforator/PerforatorTailSmall.cs index 63932a1536..6a0df33e00 100644 --- a/NPCs/Perforator/PerforatorTailSmall.cs +++ b/NPCs/Perforator/PerforatorTailSmall.cs @@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator NPC.behindTiles = true; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = HitSound; NPC.DeathSound = DeathSound; NPC.netAlways = true; diff --git a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs index 7320b57fde..ca383549b6 100644 --- a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs +++ b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs @@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath NPC.HitSound = SoundID.NPCHit4; NPC.DeathSound = SoundID.NPCDeath14; NPC.noGravity = true; - NPC.canGhostHeal = false; NPC.noTileCollide = true; NPC.Calamity().VulnerableToSickness = false; NPC.Calamity().VulnerableToElectricity = true; diff --git a/NPCs/PlaguebringerGoliath/PlagueMine.cs b/NPCs/PlaguebringerGoliath/PlagueMine.cs index 2b708fd477..2d2f1d0164 100644 --- a/NPCs/PlaguebringerGoliath/PlagueMine.cs +++ b/NPCs/PlaguebringerGoliath/PlagueMine.cs @@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath NPC.knockBackResist = 0.2f; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit4; NPC.DeathSound = SoundID.NPCDeath14; NPC.Calamity().VulnerableToSickness = false; diff --git a/NPCs/Polterghast/PhantomFuckYou.cs b/NPCs/Polterghast/PhantomFuckYou.cs index b8ba19d93d..84dc65fb2c 100644 --- a/NPCs/Polterghast/PhantomFuckYou.cs +++ b/NPCs/Polterghast/PhantomFuckYou.cs @@ -32,7 +32,6 @@ namespace CalamityMod.NPCs.Polterghast NPC.DR_NERD(0.1f); NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.damage = 50; NPC.lifeMax = 20000; double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; diff --git a/NPCs/Polterghast/PolterPhantom.cs b/NPCs/Polterghast/PolterPhantom.cs index 53e7d35425..4e948bd9d9 100644 --- a/NPCs/Polterghast/PolterPhantom.cs +++ b/NPCs/Polterghast/PolterPhantom.cs @@ -49,7 +49,6 @@ namespace CalamityMod.NPCs.Polterghast NPC.noGravity = true; NPC.noTileCollide = true; NPC.netAlways = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit36; NPC.DeathSound = SoundID.NPCDeath39; NPC.Calamity().VulnerableToSickness = false; diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs b/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs index 76a9932dc8..d0217c4cbd 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs @@ -63,7 +63,6 @@ namespace CalamityMod.NPCs.ProfanedGuardians NPC.knockBackResist = 0f; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; AIType = -1; NPC.HitSound = SoundID.NPCHit52; NPC.DeathSound = SoundID.NPCDeath55; diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianHealer.cs b/NPCs/ProfanedGuardians/ProfanedGuardianHealer.cs index 84a73540f9..7354c06280 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianHealer.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianHealer.cs @@ -73,7 +73,6 @@ namespace CalamityMod.NPCs.ProfanedGuardians NPC.knockBackResist = 0f; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; AIType = -1; NPC.HitSound = SoundID.NPCHit52; NPC.DeathSound = SoundID.NPCDeath55; diff --git a/NPCs/ProfanedGuardians/ProfanedRocks.cs b/NPCs/ProfanedGuardians/ProfanedRocks.cs index eb13ecf041..4320634dcd 100644 --- a/NPCs/ProfanedGuardians/ProfanedRocks.cs +++ b/NPCs/ProfanedGuardians/ProfanedRocks.cs @@ -47,7 +47,6 @@ namespace CalamityMod.NPCs.ProfanedGuardians NPC.noGravity = true; NPC.chaseable = false; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit52; NPC.DeathSound = SoundID.NPCDeath55; NPC.Calamity().VulnerableToHeat = false; diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index 9f2305b06d..b965df0767 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -182,7 +182,6 @@ namespace CalamityMod.NPCs.Providence writer.Write(flightPath); writer.Write(NPC.dontTakeDamage); writer.Write(NPC.chaseable); - writer.Write(NPC.canGhostHeal); writer.Write(NPC.localAI[0]); writer.Write(NPC.localAI[1]); writer.Write(NPC.localAI[2]); @@ -209,7 +208,6 @@ namespace CalamityMod.NPCs.Providence flightPath = reader.ReadInt32(); NPC.dontTakeDamage = reader.ReadBoolean(); NPC.chaseable = reader.ReadBoolean(); - NPC.canGhostHeal = reader.ReadBoolean(); NPC.localAI[0] = reader.ReadSingle(); NPC.localAI[1] = reader.ReadSingle(); NPC.localAI[2] = reader.ReadSingle(); @@ -523,7 +521,6 @@ namespace CalamityMod.NPCs.Providence // Whether the boss can be homed in on or healed off of NPC.chaseable = normalAttackRate; - NPC.canGhostHeal = NPC.chaseable; // Prevent lag by stopping rain if (CalamityConfig.Instance.BossesStopWeather) diff --git a/NPCs/Ravager/FlamePillar.cs b/NPCs/Ravager/FlamePillar.cs index f5734341db..61e958a4e2 100644 --- a/NPCs/Ravager/FlamePillar.cs +++ b/NPCs/Ravager/FlamePillar.cs @@ -28,7 +28,6 @@ namespace CalamityMod.NPCs.Ravager NPC.defense = 35; NPC.DR_NERD(0.2f); NPC.chaseable = false; - NPC.canGhostHeal = false; NPC.lifeMax = DownedBossSystem.downedProvidence ? 14000 : 3500; double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); diff --git a/NPCs/Ravager/RavagerClawLeft.cs b/NPCs/Ravager/RavagerClawLeft.cs index 27c43336b8..a801996201 100644 --- a/NPCs/Ravager/RavagerClawLeft.cs +++ b/NPCs/Ravager/RavagerClawLeft.cs @@ -34,7 +34,6 @@ namespace CalamityMod.NPCs.Ravager NPC.knockBackResist = 0f; AIType = -1; NPC.noGravity = true; - NPC.canGhostHeal = false; NPC.alpha = 255; NPC.netAlways = true; NPC.HitSound = RavagerBody.HitSound; diff --git a/NPCs/Ravager/RavagerClawRight.cs b/NPCs/Ravager/RavagerClawRight.cs index 6194b94953..83f9bfe777 100644 --- a/NPCs/Ravager/RavagerClawRight.cs +++ b/NPCs/Ravager/RavagerClawRight.cs @@ -35,7 +35,6 @@ namespace CalamityMod.NPCs.Ravager AIType = -1; NPC.netAlways = true; NPC.noGravity = true; - NPC.canGhostHeal = false; NPC.alpha = 255; NPC.HitSound = RavagerBody.HitSound; NPC.DeathSound = RavagerBody.LimbLossSound; diff --git a/NPCs/Ravager/RavagerHead.cs b/NPCs/Ravager/RavagerHead.cs index 110acd3552..b0ff5f487d 100644 --- a/NPCs/Ravager/RavagerHead.cs +++ b/NPCs/Ravager/RavagerHead.cs @@ -32,7 +32,6 @@ namespace CalamityMod.NPCs.Ravager AIType = -1; NPC.netAlways = true; NPC.noGravity = true; - NPC.canGhostHeal = false; NPC.noTileCollide = true; NPC.alpha = 255; NPC.HitSound = RavagerBody.HitSound; diff --git a/NPCs/Ravager/RavagerHead2.cs b/NPCs/Ravager/RavagerHead2.cs index 3574de8db4..ccaa1b8db8 100644 --- a/NPCs/Ravager/RavagerHead2.cs +++ b/NPCs/Ravager/RavagerHead2.cs @@ -32,7 +32,6 @@ namespace CalamityMod.NPCs.Ravager AIType = -1; NPC.netAlways = true; NPC.noGravity = true; - NPC.canGhostHeal = false; NPC.noTileCollide = true; NPC.HitSound = RavagerBody.HitSound; NPC.DeathSound = RavagerBody.LimbLossSound; diff --git a/NPCs/Ravager/RavagerLegLeft.cs b/NPCs/Ravager/RavagerLegLeft.cs index 3d86d0d59c..9c1c8355b5 100644 --- a/NPCs/Ravager/RavagerLegLeft.cs +++ b/NPCs/Ravager/RavagerLegLeft.cs @@ -28,7 +28,6 @@ namespace CalamityMod.NPCs.Ravager AIType = -1; NPC.netAlways = true; NPC.noGravity = true; - NPC.canGhostHeal = false; NPC.noTileCollide = true; NPC.alpha = 255; NPC.HitSound = RavagerBody.HitSound; diff --git a/NPCs/Ravager/RavagerLegRight.cs b/NPCs/Ravager/RavagerLegRight.cs index aca0683f79..01ba1268f8 100644 --- a/NPCs/Ravager/RavagerLegRight.cs +++ b/NPCs/Ravager/RavagerLegRight.cs @@ -28,7 +28,6 @@ namespace CalamityMod.NPCs.Ravager AIType = -1; NPC.netAlways = true; NPC.noGravity = true; - NPC.canGhostHeal = false; NPC.noTileCollide = true; NPC.alpha = 255; NPC.HitSound = RavagerBody.HitSound; diff --git a/NPCs/Ravager/RockPillar.cs b/NPCs/Ravager/RockPillar.cs index feaf02d7d7..7f274230b6 100644 --- a/NPCs/Ravager/RockPillar.cs +++ b/NPCs/Ravager/RockPillar.cs @@ -27,7 +27,6 @@ namespace CalamityMod.NPCs.Ravager NPC.defense = 50; NPC.DR_NERD(0.3f); NPC.chaseable = false; - NPC.canGhostHeal = false; NPC.lifeMax = DownedBossSystem.downedProvidence ? 20000 : 5000; double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); diff --git a/NPCs/Signus/CosmicLantern.cs b/NPCs/Signus/CosmicLantern.cs index 469445932f..8118069eda 100644 --- a/NPCs/Signus/CosmicLantern.cs +++ b/NPCs/Signus/CosmicLantern.cs @@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.Signus NPC.noGravity = true; NPC.dontTakeDamage = true; NPC.chaseable = false; - NPC.canGhostHeal = false; NPC.noTileCollide = true; NPC.HitSound = SoundID.NPCHit53; NPC.DeathSound = SoundID.NPCDeath44; diff --git a/NPCs/SlimeGod/CorruptSlimeSpawn.cs b/NPCs/SlimeGod/CorruptSlimeSpawn.cs index 99b8bda2ff..b3f43e7cbd 100644 --- a/NPCs/SlimeGod/CorruptSlimeSpawn.cs +++ b/NPCs/SlimeGod/CorruptSlimeSpawn.cs @@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.SlimeGod NPC.lavaImmune = false; NPC.noGravity = false; NPC.noTileCollide = false; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; NPC.Calamity().VulnerableToHeat = true; diff --git a/NPCs/SlimeGod/CorruptSlimeSpawn2.cs b/NPCs/SlimeGod/CorruptSlimeSpawn2.cs index 3397364739..9842a5070c 100644 --- a/NPCs/SlimeGod/CorruptSlimeSpawn2.cs +++ b/NPCs/SlimeGod/CorruptSlimeSpawn2.cs @@ -38,7 +38,6 @@ namespace CalamityMod.NPCs.SlimeGod NPC.lavaImmune = false; NPC.noGravity = false; NPC.noTileCollide = false; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; NPC.Calamity().VulnerableToHeat = true; diff --git a/NPCs/SlimeGod/CrimsonSlimeSpawn.cs b/NPCs/SlimeGod/CrimsonSlimeSpawn.cs index 01ef58a863..14e3462383 100644 --- a/NPCs/SlimeGod/CrimsonSlimeSpawn.cs +++ b/NPCs/SlimeGod/CrimsonSlimeSpawn.cs @@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.SlimeGod NPC.lavaImmune = false; NPC.noGravity = false; NPC.noTileCollide = false; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; NPC.Calamity().VulnerableToHeat = true; diff --git a/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs b/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs index bd512d28b5..cec25e0cb4 100644 --- a/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs +++ b/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs @@ -41,7 +41,6 @@ namespace CalamityMod.NPCs.SlimeGod NPC.lavaImmune = false; NPC.noGravity = false; NPC.noTileCollide = false; - NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit1; NPC.DeathSound = SoundID.NPCDeath1; NPC.Calamity().VulnerableToHeat = true; diff --git a/NPCs/StormWeaver/StormWeaverBody.cs b/NPCs/StormWeaver/StormWeaverBody.cs index c81508e3e7..6b5b8895af 100644 --- a/NPCs/StormWeaver/StormWeaverBody.cs +++ b/NPCs/StormWeaver/StormWeaverBody.cs @@ -51,7 +51,6 @@ namespace CalamityMod.NPCs.StormWeaver NPC.noGravity = true; NPC.boss = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.netAlways = true; NPC.dontCountMe = true; diff --git a/NPCs/StormWeaver/StormWeaverTail.cs b/NPCs/StormWeaver/StormWeaverTail.cs index 53648c08dd..8dc73957d0 100644 --- a/NPCs/StormWeaver/StormWeaverTail.cs +++ b/NPCs/StormWeaver/StormWeaverTail.cs @@ -48,7 +48,6 @@ namespace CalamityMod.NPCs.StormWeaver NPC.noGravity = true; NPC.boss = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.netAlways = true; NPC.dontCountMe = true; diff --git a/NPCs/SupremeCalamitas/BrimstoneHeart.cs b/NPCs/SupremeCalamitas/BrimstoneHeart.cs index e6d54584b3..fd529f0e33 100644 --- a/NPCs/SupremeCalamitas/BrimstoneHeart.cs +++ b/NPCs/SupremeCalamitas/BrimstoneHeart.cs @@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas NPC.alpha = 255; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.hide = true; NPC.HitSound = SoundID.NPCHit13; NPC.DeathSound = SoundID.NPCDeath1; diff --git a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs index ca3778740e..02d1da79fe 100644 --- a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs +++ b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs @@ -53,7 +53,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas NPC.height = 40; NPC.noGravity = true; NPC.noTileCollide = true; - NPC.canGhostHeal = false; NPC.damage = 50; NPC.defense = 60; NPC.DR_NERD(NormalDR); diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index b3a2693257..e235fdafe6 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -245,7 +245,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas NPC.dontTakeDamage = false; NPC.chaseable = true; NPC.boss = true; - NPC.canGhostHeal = false; NPC.noGravity = true; NPC.noTileCollide = true; NPC.Calamity().VulnerableToHeat = false; diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 388bbe21c3..0d2776e1b4 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -4181,9 +4181,9 @@ namespace CalamityMod.Projectiles #region Life Steal public static bool CanSpawnLifeStealProjectile(float healMultiplier, float healAmount) => healMultiplier > 0f && (int)healAmount > 0; - public static void SpawnLifeStealProjectile(Projectile projectile, Player player, float healAmount, int healProjectileType, float distanceRequired, float cooldownMultiplier) + public static void SpawnLifeStealProjectile(NPC target, Projectile projectile, Player player, float healAmount, int healProjectileType, float distanceRequired, float cooldownMultiplier) { - if (Main.player[Main.myPlayer].moonLeech) + if (Main.player[Main.myPlayer].moonLeech || !target.canGhostHeal) return; Main.player[Main.myPlayer].lifeSteal -= healAmount * cooldownMultiplier;