From 1d60619dbb6117a60ca5230bb557826ee00e60dd Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 8 Oct 2019 23:06:02 -0400 Subject: [PATCH] All Calamity NPC DR placed in their own files. --- NPCs/AbyssNPCs/AquaticScourgeBody.cs | 1 + NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs | 1 + NPCs/AbyssNPCs/AquaticScourgeHead.cs | 1 + NPCs/AbyssNPCs/AquaticScourgeTail.cs | 1 + NPCs/AbyssNPCs/BobbitWormHead.cs | 3 +- NPCs/AbyssNPCs/ColossalSquid.cs | 1 + NPCs/AbyssNPCs/EidolonWyrmHead.cs | 3 +- NPCs/AbyssNPCs/Gnasher.cs | 1 + NPCs/AbyssNPCs/MantisShrimp.cs | 1 + NPCs/AbyssNPCs/Mauler.cs | 1 + NPCs/Astrageldon/Astrageldon.cs | 3 +- NPCs/AstralBiomeNPCs/Aries.cs | 1 + NPCs/AstralBiomeNPCs/AstralProbe.cs | 1 + NPCs/AstralBiomeNPCs/AstralachneaGround.cs | 1 + NPCs/AstralBiomeNPCs/AstralachneaWall.cs | 1 + NPCs/AstralBiomeNPCs/Atlas.cs | 1 + NPCs/AstralBiomeNPCs/BigSightseer.cs | 1 + NPCs/AstralBiomeNPCs/FusionFeeder.cs | 1 + NPCs/AstralBiomeNPCs/Hadarian.cs | 1 + NPCs/AstralBiomeNPCs/Hive.cs | 3 +- NPCs/AstralBiomeNPCs/Mantis.cs | 1 + NPCs/AstralBiomeNPCs/Nova.cs | 1 + NPCs/AstralBiomeNPCs/SmallSightseer.cs | 1 + NPCs/AstralBiomeNPCs/StellarCulex.cs | 1 + NPCs/AstrumDeus/AstrumDeusBody.cs | 1 + NPCs/AstrumDeus/AstrumDeusHead.cs | 1 + NPCs/AstrumDeus/AstrumDeusProbe3.cs | 3 +- NPCs/AstrumDeus/AstrumDeusTail.cs | 3 +- NPCs/Calamitas/Calamitas.cs | 1 + NPCs/Calamitas/CalamitasRun.cs | 1 + NPCs/Calamitas/CalamitasRun2.cs | 1 + NPCs/Calamitas/CalamitasRun3.cs | 1 + NPCs/Calamitas/SoulSeeker.cs | 1 + NPCs/CalamityBiomeNPCs/DespairStone.cs | 3 +- NPCs/CalamityBiomeNPCs/SoulSlurper.cs | 1 + NPCs/CalamityGlobalNPC.cs | 85 ++++--------------- NPCs/Cryogen/Cryogen.cs | 1 + NPCs/Cryogen/CryogenIce.cs | 3 +- NPCs/DesertScourge/DesertScourgeBody.cs | 1 + NPCs/DesertScourge/DesertScourgeTail.cs | 1 + NPCs/GreatSandShark/GreatSandShark.cs | 3 +- NPCs/Leviathan/Leviathan.cs | 3 +- NPCs/Leviathan/Siren.cs | 1 + NPCs/Leviathan/SirenIce.cs | 3 +- NPCs/NormalNPCs/ArmoredDiggerBody.cs | 3 +- NPCs/NormalNPCs/ArmoredDiggerHead.cs | 1 + NPCs/NormalNPCs/ArmoredDiggerTail.cs | 3 +- NPCs/NormalNPCs/Cnidrion.cs | 1 + NPCs/NormalNPCs/Cryon.cs | 1 + NPCs/NormalNPCs/Horse.cs | 1 + NPCs/NormalNPCs/OverloadedSoldier.cs | 3 +- NPCs/NormalNPCs/PhantomDebris.cs | 1 + NPCs/NormalNPCs/ProfanedEnergyBody.cs | 1 + NPCs/NormalNPCs/SandTortoise.cs | 3 +- NPCs/NormalNPCs/ScornEater.cs | 1 + NPCs/NormalNPCs/ShockstormShuttle.cs | 1 + NPCs/NormalNPCs/ThiccWaifu.cs | 1 + .../PlaguebringerGoliath.cs | 3 +- NPCs/PlaguebringerShade/PlaguebringerShade.cs | 3 +- .../ProfanedGuardianBoss.cs | 3 +- .../ProfanedGuardianBoss2.cs | 3 +- .../ProfanedGuardianBoss3.cs | 1 + NPCs/Providence/ProvSpawnDefense.cs | 3 +- NPCs/Providence/ProvSpawnHealer.cs | 1 + NPCs/Providence/ProvSpawnOffense.cs | 3 +- NPCs/Scavenger/ScavengerBody.cs | 3 +- NPCs/Scavenger/ScavengerClawLeft.cs | 1 + NPCs/Scavenger/ScavengerClawRight.cs | 1 + NPCs/Scavenger/ScavengerHead.cs | 1 + NPCs/Scavenger/ScavengerLegLeft.cs | 1 + NPCs/Scavenger/ScavengerLegRight.cs | 1 + NPCs/StormWeaver/StasisProbe.cs | 3 +- NPCs/SunkenSeaNPCs/BlindedAngler.cs | 3 +- NPCs/SunkenSeaNPCs/Clam.cs | 3 +- NPCs/SunkenSeaNPCs/EutrophicRay.cs | 1 + NPCs/SunkenSeaNPCs/GiantClam.cs | 3 +- NPCs/SunkenSeaNPCs/PrismTurtle.cs | 3 +- NPCs/SupremeCalamitas/SoulSeekerSupreme.cs | 3 +- 78 files changed, 123 insertions(+), 95 deletions(-) diff --git a/NPCs/AbyssNPCs/AquaticScourgeBody.cs b/NPCs/AbyssNPCs/AquaticScourgeBody.cs index 95ca397b17..c5f8053c61 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeBody.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeBody.cs @@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.width = 32; npc.height = 32; npc.defense = 20; + npc.GetCalamityNPC().RevPlusDR(0.05f); npc.aiStyle = -1; aiType = -1; npc.knockBackResist = 0f; diff --git a/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs b/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs index eae8954669..413a92daab 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs @@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.width = 32; npc.height = 32; npc.defense = 15; + npc.GetCalamityNPC().RevPlusDR(0.05f); npc.aiStyle = -1; aiType = -1; npc.knockBackResist = 0f; diff --git a/NPCs/AbyssNPCs/AquaticScourgeHead.cs b/NPCs/AbyssNPCs/AquaticScourgeHead.cs index db81aceacb..4757a7e29a 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeHead.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeHead.cs @@ -34,6 +34,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.width = 100; npc.height = 90; npc.defense = 10; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.aiStyle = -1; aiType = -1; npc.lifeMax = CalamityWorld.revenge ? 85000 : 73000; diff --git a/NPCs/AbyssNPCs/AquaticScourgeTail.cs b/NPCs/AbyssNPCs/AquaticScourgeTail.cs index a031c3d663..e2524da01a 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeTail.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeTail.cs @@ -22,6 +22,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.width = 30; npc.height = 50; npc.defense = 25; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.aiStyle = -1; aiType = -1; npc.knockBackResist = 0f; diff --git a/NPCs/AbyssNPCs/BobbitWormHead.cs b/NPCs/AbyssNPCs/BobbitWormHead.cs index c027db7832..66d291053a 100644 --- a/NPCs/AbyssNPCs/BobbitWormHead.cs +++ b/NPCs/AbyssNPCs/BobbitWormHead.cs @@ -25,7 +25,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.width = 80; //324 npc.height = 40; //216 npc.defense = 50; - npc.lifeMax = 10000; + npc.GetCalamityNPC().RevPlusDR(0.25f); + npc.lifeMax = 10000; npc.knockBackResist = 0f; aiType = -1; npc.noGravity = true; diff --git a/NPCs/AbyssNPCs/ColossalSquid.cs b/NPCs/AbyssNPCs/ColossalSquid.cs index 750b6e7f0d..4a9dc6dd4d 100644 --- a/NPCs/AbyssNPCs/ColossalSquid.cs +++ b/NPCs/AbyssNPCs/ColossalSquid.cs @@ -28,6 +28,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.width = 180; npc.height = 180; npc.defense = 50; + npc.GetCalamityNPC().RevPlusDR(0.05f); npc.lifeMax = 220000; npc.aiStyle = -1; aiType = -1; diff --git a/NPCs/AbyssNPCs/EidolonWyrmHead.cs b/NPCs/AbyssNPCs/EidolonWyrmHead.cs index 2e67f9747e..7f4e770d80 100644 --- a/NPCs/AbyssNPCs/EidolonWyrmHead.cs +++ b/NPCs/AbyssNPCs/EidolonWyrmHead.cs @@ -31,7 +31,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.width = 126; //36 npc.height = 76; //20 npc.defense = 300; - npc.lifeMax = 160000; + npc.GetCalamityNPC().RevPlusDR(0.15f); + npc.lifeMax = 160000; npc.aiStyle = -1; aiType = -1; for (int k = 0; k < npc.buffImmune.Length; k++) diff --git a/NPCs/AbyssNPCs/Gnasher.cs b/NPCs/AbyssNPCs/Gnasher.cs index 560b288b6a..222468333c 100644 --- a/NPCs/AbyssNPCs/Gnasher.cs +++ b/NPCs/AbyssNPCs/Gnasher.cs @@ -20,6 +20,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.width = 50; npc.height = 36; npc.defense = 30; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 35; npc.knockBackResist = 0.25f; npc.aiStyle = 3; diff --git a/NPCs/AbyssNPCs/MantisShrimp.cs b/NPCs/AbyssNPCs/MantisShrimp.cs index c95941c7aa..41d226d03e 100644 --- a/NPCs/AbyssNPCs/MantisShrimp.cs +++ b/NPCs/AbyssNPCs/MantisShrimp.cs @@ -20,6 +20,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.width = 40; npc.height = 24; npc.defense = 10; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = 30; npc.aiStyle = 3; aiType = 67; diff --git a/NPCs/AbyssNPCs/Mauler.cs b/NPCs/AbyssNPCs/Mauler.cs index 8c5681a490..dc4452910a 100644 --- a/NPCs/AbyssNPCs/Mauler.cs +++ b/NPCs/AbyssNPCs/Mauler.cs @@ -26,6 +26,7 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.width = 180; npc.height = 90; npc.defense = 50; + npc.GetCalamityNPC().RevPlusDR(0.05f); npc.lifeMax = 165000; npc.aiStyle = -1; aiType = -1; diff --git a/NPCs/Astrageldon/Astrageldon.cs b/NPCs/Astrageldon/Astrageldon.cs index 6e3df437ba..0683a2365c 100644 --- a/NPCs/Astrageldon/Astrageldon.cs +++ b/NPCs/Astrageldon/Astrageldon.cs @@ -30,7 +30,8 @@ namespace CalamityMod.NPCs.Astrageldon npc.width = 400; npc.height = 280; npc.defense = 50; - npc.LifeMaxNERD(96000, NPC.downedMoonlord ? 440000 : 122000, 187000, 1400000, 1600000); + npc.GetCalamityNPC().RevPlusDR(0.15f); + npc.LifeMaxNERD(96000, NPC.downedMoonlord ? 440000 : 122000, 187000, 1400000, 1600000); npc.aiStyle = -1; aiType = -1; npc.knockBackResist = 0f; diff --git a/NPCs/AstralBiomeNPCs/Aries.cs b/NPCs/AstralBiomeNPCs/Aries.cs index 7ea17ccc36..640edf9b18 100644 --- a/NPCs/AstralBiomeNPCs/Aries.cs +++ b/NPCs/AstralBiomeNPCs/Aries.cs @@ -28,6 +28,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.height = 54; npc.aiStyle = 41; npc.defense = 14; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 300; npc.knockBackResist = 0.6f; npc.value = Item.buyPrice(0, 0, 10, 0); diff --git a/NPCs/AstralBiomeNPCs/AstralProbe.cs b/NPCs/AstralBiomeNPCs/AstralProbe.cs index b0d04d08ea..d7a9186b62 100644 --- a/NPCs/AstralBiomeNPCs/AstralProbe.cs +++ b/NPCs/AstralBiomeNPCs/AstralProbe.cs @@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.width = 30; //324 npc.height = 30; //216 npc.defense = 10; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 50; npc.aiStyle = -1; aiType = -1; diff --git a/NPCs/AstralBiomeNPCs/AstralachneaGround.cs b/NPCs/AstralBiomeNPCs/AstralachneaGround.cs index 5388ed493f..22f97f8a21 100644 --- a/NPCs/AstralBiomeNPCs/AstralachneaGround.cs +++ b/NPCs/AstralBiomeNPCs/AstralachneaGround.cs @@ -32,6 +32,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.aiStyle = 3; npc.damage = 55; npc.defense = 20; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 500; npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); npc.knockBackResist = 0.38f; diff --git a/NPCs/AstralBiomeNPCs/AstralachneaWall.cs b/NPCs/AstralBiomeNPCs/AstralachneaWall.cs index 477d26ae07..4a94b77840 100644 --- a/NPCs/AstralBiomeNPCs/AstralachneaWall.cs +++ b/NPCs/AstralBiomeNPCs/AstralachneaWall.cs @@ -32,6 +32,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.aiStyle = -1; npc.damage = 55; npc.defense = 20; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 500; npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); npc.knockBackResist = 0f; diff --git a/NPCs/AstralBiomeNPCs/Atlas.cs b/NPCs/AstralBiomeNPCs/Atlas.cs index b7b7a22897..e968ddd212 100644 --- a/NPCs/AstralBiomeNPCs/Atlas.cs +++ b/NPCs/AstralBiomeNPCs/Atlas.cs @@ -103,6 +103,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.height = 88; npc.damage = 70; npc.defense = 40; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 1200; npc.knockBackResist = 0.08f; npc.value = Item.buyPrice(0, 1, 0, 0); diff --git a/NPCs/AstralBiomeNPCs/BigSightseer.cs b/NPCs/AstralBiomeNPCs/BigSightseer.cs index 4df8877244..46efa64d4c 100644 --- a/NPCs/AstralBiomeNPCs/BigSightseer.cs +++ b/NPCs/AstralBiomeNPCs/BigSightseer.cs @@ -30,6 +30,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.height = 56; npc.damage = 50; npc.defense = 20; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 430; npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); npc.noGravity = true; diff --git a/NPCs/AstralBiomeNPCs/FusionFeeder.cs b/NPCs/AstralBiomeNPCs/FusionFeeder.cs index c53d496ab0..11ae6021e9 100644 --- a/NPCs/AstralBiomeNPCs/FusionFeeder.cs +++ b/NPCs/AstralBiomeNPCs/FusionFeeder.cs @@ -33,6 +33,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.aiStyle = 103; npc.lifeMax = 400; npc.defense = 12; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.value = Item.buyPrice(0, 0, 20, 0); npc.knockBackResist = 0.8f; npc.behindTiles = true; diff --git a/NPCs/AstralBiomeNPCs/Hadarian.cs b/NPCs/AstralBiomeNPCs/Hadarian.cs index 9038a2b654..1ef1836288 100644 --- a/NPCs/AstralBiomeNPCs/Hadarian.cs +++ b/NPCs/AstralBiomeNPCs/Hadarian.cs @@ -31,6 +31,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.aiStyle = -1; npc.damage = 50; npc.defense = 8; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 330; npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); npc.knockBackResist = 0.75f; diff --git a/NPCs/AstralBiomeNPCs/Hive.cs b/NPCs/AstralBiomeNPCs/Hive.cs index c8f60641e4..3efc41c3e5 100644 --- a/NPCs/AstralBiomeNPCs/Hive.cs +++ b/NPCs/AstralBiomeNPCs/Hive.cs @@ -30,7 +30,8 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.aiStyle = -1; npc.damage = 55; npc.defense = 15; - npc.lifeMax = 470; + npc.GetCalamityNPC().RevPlusDR(0.15f); + npc.lifeMax = 470; npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 0, 15, 0); diff --git a/NPCs/AstralBiomeNPCs/Mantis.cs b/NPCs/AstralBiomeNPCs/Mantis.cs index 155099d07e..12c90de84a 100644 --- a/NPCs/AstralBiomeNPCs/Mantis.cs +++ b/NPCs/AstralBiomeNPCs/Mantis.cs @@ -29,6 +29,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.height = 58; npc.aiStyle = -1; npc.defense = 6; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 340; npc.knockBackResist = 0.2f; npc.value = Item.buyPrice(0, 0, 15, 0); diff --git a/NPCs/AstralBiomeNPCs/Nova.cs b/NPCs/AstralBiomeNPCs/Nova.cs index 9cc302b65a..333b4eaf88 100644 --- a/NPCs/AstralBiomeNPCs/Nova.cs +++ b/NPCs/AstralBiomeNPCs/Nova.cs @@ -38,6 +38,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.height = 50; npc.damage = 45; npc.defense = 15; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 230; npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); npc.noGravity = true; diff --git a/NPCs/AstralBiomeNPCs/SmallSightseer.cs b/NPCs/AstralBiomeNPCs/SmallSightseer.cs index 94edd2e28d..ebc1bfd5c7 100644 --- a/NPCs/AstralBiomeNPCs/SmallSightseer.cs +++ b/NPCs/AstralBiomeNPCs/SmallSightseer.cs @@ -30,6 +30,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.height = 40; npc.damage = 38; npc.defense = 16; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 310; npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); npc.noGravity = true; diff --git a/NPCs/AstralBiomeNPCs/StellarCulex.cs b/NPCs/AstralBiomeNPCs/StellarCulex.cs index 094b20812c..3a8cf01279 100644 --- a/NPCs/AstralBiomeNPCs/StellarCulex.cs +++ b/NPCs/AstralBiomeNPCs/StellarCulex.cs @@ -32,6 +32,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.npcSlots = 0.5f; //needed? npc.damage = 55; npc.defense = 18; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.knockBackResist = 0.65f; npc.lifeMax = 210; npc.value = Item.buyPrice(0, 0, 10, 0); diff --git a/NPCs/AstrumDeus/AstrumDeusBody.cs b/NPCs/AstrumDeus/AstrumDeusBody.cs index 5d7f093028..0398a864c1 100644 --- a/NPCs/AstrumDeus/AstrumDeusBody.cs +++ b/NPCs/AstrumDeus/AstrumDeusBody.cs @@ -25,6 +25,7 @@ namespace CalamityMod.NPCs.AstrumDeus npc.width = 38; npc.height = 44; npc.defense = 40; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.LifeMaxNERD(12000, 18000, 29100, 360000, 420000); double HPBoost = Config.BossHealthPercentageBoost * 0.01; npc.lifeMax += (int)(npc.lifeMax * HPBoost); diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index 36ca027a11..2b33c2f4b5 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -34,6 +34,7 @@ namespace CalamityMod.NPCs.AstrumDeus npc.width = 56; npc.height = 56; npc.defense = 20; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = CalamityWorld.revenge ? 18000 : 12000; if (CalamityWorld.death) { diff --git a/NPCs/AstrumDeus/AstrumDeusProbe3.cs b/NPCs/AstrumDeus/AstrumDeusProbe3.cs index c1c25be03d..e8b7d3dd55 100644 --- a/NPCs/AstrumDeus/AstrumDeusProbe3.cs +++ b/NPCs/AstrumDeus/AstrumDeusProbe3.cs @@ -23,7 +23,8 @@ namespace CalamityMod.NPCs.AstrumDeus npc.width = 30; npc.height = 30; npc.defense = 30; - npc.lifeMax = 1400; + npc.GetCalamityNPC().RevPlusDR(0.2f); + npc.lifeMax = 1400; if (CalamityWorld.bossRushActive) { npc.lifeMax = 120000; diff --git a/NPCs/AstrumDeus/AstrumDeusTail.cs b/NPCs/AstrumDeus/AstrumDeusTail.cs index b864a6d6ca..8124ebbb89 100644 --- a/NPCs/AstrumDeus/AstrumDeusTail.cs +++ b/NPCs/AstrumDeus/AstrumDeusTail.cs @@ -21,7 +21,8 @@ namespace CalamityMod.NPCs.AstrumDeus npc.width = 52; npc.height = 68; npc.defense = 60; - npc.lifeMax = CalamityWorld.revenge ? 18000 : 12000; + npc.GetCalamityNPC().RevPlusDR(0.35f); + npc.lifeMax = CalamityWorld.revenge ? 18000 : 12000; if (CalamityWorld.death) { npc.lifeMax = 29100; diff --git a/NPCs/Calamitas/Calamitas.cs b/NPCs/Calamitas/Calamitas.cs index 9c71bf0508..d182eeb36c 100644 --- a/NPCs/Calamitas/Calamitas.cs +++ b/NPCs/Calamitas/Calamitas.cs @@ -25,6 +25,7 @@ namespace CalamityMod.NPCs.Calamitas npc.width = 120; npc.height = 120; npc.defense = 15; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.value = 0f; npc.lifeMax = CalamityWorld.revenge ? 51750 : 37500; if (CalamityWorld.death) diff --git a/NPCs/Calamitas/CalamitasRun.cs b/NPCs/Calamitas/CalamitasRun.cs index 5a26905d84..7ab90d5855 100644 --- a/NPCs/Calamitas/CalamitasRun.cs +++ b/NPCs/Calamitas/CalamitasRun.cs @@ -27,6 +27,7 @@ namespace CalamityMod.NPCs.Calamitas npc.width = 120; npc.height = 120; npc.defense = 10; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = CalamityWorld.revenge ? 13200 : 9000; if (CalamityWorld.death) { diff --git a/NPCs/Calamitas/CalamitasRun2.cs b/NPCs/Calamitas/CalamitasRun2.cs index 0abb8fe602..5a62afc0a0 100644 --- a/NPCs/Calamitas/CalamitasRun2.cs +++ b/NPCs/Calamitas/CalamitasRun2.cs @@ -27,6 +27,7 @@ namespace CalamityMod.NPCs.Calamitas npc.width = 120; npc.height = 120; npc.defense = 10; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = CalamityWorld.revenge ? 11025 : 7500; if (CalamityWorld.death) { diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasRun3.cs index 3c5857bcec..9fc5cbf413 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasRun3.cs @@ -31,6 +31,7 @@ namespace CalamityMod.NPCs.Calamitas npc.width = 120; npc.height = 120; npc.defense = 25; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = CalamityWorld.revenge ? 38812 : 28125; if (CalamityWorld.death) { diff --git a/NPCs/Calamitas/SoulSeeker.cs b/NPCs/Calamitas/SoulSeeker.cs index 2f6598eac5..dfa821ad16 100644 --- a/NPCs/Calamitas/SoulSeeker.cs +++ b/NPCs/Calamitas/SoulSeeker.cs @@ -29,6 +29,7 @@ namespace CalamityMod.NPCs.Calamitas npc.canGhostHeal = false; npc.damage = 40; npc.defense = 10; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = 2500; if (CalamityWorld.bossRushActive) { diff --git a/NPCs/CalamityBiomeNPCs/DespairStone.cs b/NPCs/CalamityBiomeNPCs/DespairStone.cs index ff0f3d6ee8..00219530bf 100644 --- a/NPCs/CalamityBiomeNPCs/DespairStone.cs +++ b/NPCs/CalamityBiomeNPCs/DespairStone.cs @@ -23,7 +23,8 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.width = 72; //324 npc.height = 72; //216 npc.defense = 38; - npc.lifeMax = 120; + npc.GetCalamityNPC().RevPlusDR(0.35f); + npc.lifeMax = 120; npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 0, 5, 0); npc.HitSound = SoundID.NPCHit41; diff --git a/NPCs/CalamityBiomeNPCs/SoulSlurper.cs b/NPCs/CalamityBiomeNPCs/SoulSlurper.cs index 466dccd27d..2b964ec2e6 100644 --- a/NPCs/CalamityBiomeNPCs/SoulSlurper.cs +++ b/NPCs/CalamityBiomeNPCs/SoulSlurper.cs @@ -24,6 +24,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.width = 60; //324 npc.height = 40; //216 npc.defense = 40; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 60; npc.knockBackResist = 0.65f; npc.value = Item.buyPrice(0, 0, 5, 0); diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 2b90761f0e..c889a31c1a 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -503,6 +503,14 @@ namespace CalamityMod.NPCs newAI[m] = 0f; } + // Apply DR to vanilla NPCs. No vanilla NPCs have DR except in Rev+. + // This also applies DR to other mods' NPCs who have set up their NPCs to have DR in Rev+. + if (CalamityWorld.revenge) + { + CalamityMod.DRValues.TryGetValue(npc.type, out float revDR); + DR = revDR; + } + if (npc.boss && CalamityWorld.revenge) { if (npc.type != mod.NPCType("HiveMindP2") && npc.type != mod.NPCType("Leviathan") && npc.type != mod.NPCType("StormWeaverHeadNaked") && @@ -826,75 +834,18 @@ namespace CalamityMod.NPCs { npc.canGhostHeal = false; } - - RevengeanceDamageReduction(npc, mod); } - #endregion - #region Revengeance Damage Reduction - private void RevengeanceDamageReduction(NPC npc, Mod mod) - { - if (npc.type == mod.NPCType("Cnidrion") || npc.type == mod.NPCType("DesertScourgeBody") || npc.type == mod.NPCType("ColossalSquid") || - npc.type == mod.NPCType("Siren") || npc.type == mod.NPCType("ThiccWaifu") || npc.type == mod.NPCType("ProfanedGuardianBoss3") || - npc.type == mod.NPCType("ScornEater") || npc.type == mod.NPCType("AquaticScourgeBody") || npc.type == mod.NPCType("AquaticScourgeBodyAlt") || - npc.type == mod.NPCType("Mauler") || npc.type == mod.NPCType("EutrophicRay")) - { - DR = 0.05f; - } - else if (npc.type == mod.NPCType("AstrumDeusBody") || npc.type == mod.NPCType("SoulSeeker") || npc.type == mod.NPCType("DesertScourgeTail") || - npc.type == mod.NPCType("Horse") || npc.type == mod.NPCType("ProfanedEnergyBody") || npc.type == mod.NPCType("ScavengerClawLeft") || - npc.type == mod.NPCType("ScavengerClawRight") || npc.type == mod.NPCType("ScavengerHead") || npc.type == mod.NPCType("MantisShrimp") || - npc.type == mod.NPCType("PhantomDebris") || npc.type == mod.NPCType("AstrumDeusHead") || npc.type == mod.NPCType("AquaticScourgeHead") || - npc.type == mod.NPCType("Cryon") || npc.type == mod.NPCType("Cryogen")) - { - DR = 0.1f; - } - else if (npc.type == mod.NPCType("ArmoredDiggerHead") || npc.type == mod.NPCType("AstralProbe") || npc.type == mod.NPCType("Calamitas") || - npc.type == mod.NPCType("CalamitasRun") || npc.type == mod.NPCType("CalamitasRun2") || npc.type == mod.NPCType("CalamitasRun3") || - npc.type == mod.NPCType("SoulSlurper") || npc.type == mod.NPCType("ProvSpawnHealer") || npc.type == mod.NPCType("Gnasher") || - npc.type == mod.NPCType("ScavengerLegLeft") || npc.type == mod.NPCType("ScavengerLegRight") || npc.type == mod.NPCType("ShockstormShuttle") || - npc.type == mod.NPCType("Reaper") || npc.type == mod.NPCType("OverloadedSoldier") || npc.type == mod.NPCType("AquaticScourgeTail") || - npc.type == mod.NPCType("EidolonWyrmHead") || npc.type == mod.NPCType("Aries") || npc.type == mod.NPCType("AstralachneaGround") || - npc.type == mod.NPCType("AstralachneaWall") || npc.type == mod.NPCType("Astrageldon") || npc.type == mod.NPCType("Atlas") || - npc.type == mod.NPCType("BigSightseer") || npc.type == mod.NPCType("FusionFeeder") || npc.type == mod.NPCType("Hadarian") || - npc.type == mod.NPCType("Hive") || npc.type == mod.NPCType("Mantis") || npc.type == mod.NPCType("Nova") || npc.type == mod.NPCType("SmallSightseer") || - npc.type == mod.NPCType("StellarCulex")) - { - DR = 0.15f; - } - else if (npc.type == mod.NPCType("AstrumDeusProbe3") || npc.type == mod.NPCType("PlaguebringerShade") || npc.type == mod.NPCType("BlindedAngler")) - { - DR = 0.2f; - } - else if (npc.type == mod.NPCType("PlaguebringerGoliath") || npc.type == mod.NPCType("ProfanedGuardianBoss2") || npc.type == mod.NPCType("SandTortoise") || - npc.type == mod.NPCType("StasisProbe") || npc.type == mod.NPCType("BobbitWormHead") || npc.type == mod.NPCType("GreatSandShark") || - npc.type == mod.NPCType("Clam") || npc.type == mod.NPCType("PrismTurtle")) - { - DR = 0.25f; - } - else if (npc.type == mod.NPCType("ProvSpawnOffense") || npc.type == mod.NPCType("GiantClam")) - { - DR = 0.3f; - } - else if (npc.type == mod.NPCType("ArmoredDiggerBody") || npc.type == mod.NPCType("AstrumDeusTail") || npc.type == mod.NPCType("DespairStone") || - npc.type == mod.NPCType("SoulSeekerSupreme") || npc.type == mod.NPCType("Leviathan")) - { - DR = 0.35f; - } - else if (npc.type == mod.NPCType("CryogenIce") || npc.type == mod.NPCType("ProfanedGuardianBoss") || npc.type == mod.NPCType("ProvSpawnDefense") || - npc.type == mod.NPCType("ScavengerBody")) - { - DR = 0.4f; - } - else if (npc.type == mod.NPCType("ArmoredDiggerTail")) - { - DR = 0.45f; - } - else if (npc.type == mod.NPCType("SirenIce")) - { - DR = 0.5f; - } - } + /// + /// Sets the DR of this NPC only if Revengeance Mode is enabled. Otherwise sets DR to zero. + /// + /// The DR to set, assuming Rev+ difficulty. + /// Whether Revengeance Mode is currently enabled. + public bool RevPlusDR(float dr) + { + DR = CalamityWorld.revenge ? dr : 0f; + return CalamityWorld.revenge; + } #endregion #region Other Stat Changes diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index a72d9fb66c..a1c597aa13 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -31,6 +31,7 @@ namespace CalamityMod.NPCs.Cryogen npc.width = 80; npc.height = 80; npc.defense = 12; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = CalamityWorld.revenge ? 26300 : 17900; if (CalamityWorld.death) { diff --git a/NPCs/Cryogen/CryogenIce.cs b/NPCs/Cryogen/CryogenIce.cs index ebc42ef407..a471296b47 100644 --- a/NPCs/Cryogen/CryogenIce.cs +++ b/NPCs/Cryogen/CryogenIce.cs @@ -24,7 +24,8 @@ namespace CalamityMod.NPCs.Cryogen npc.width = 240; npc.height = 240; npc.defense = 0; - npc.lifeMax = 1400; + npc.GetCalamityNPC().RevPlusDR(0.4f); + npc.lifeMax = 1400; if (CalamityWorld.bossRushActive) { npc.lifeMax = 100000; diff --git a/NPCs/DesertScourge/DesertScourgeBody.cs b/NPCs/DesertScourge/DesertScourgeBody.cs index dec1dbabe9..df8a86d962 100644 --- a/NPCs/DesertScourge/DesertScourgeBody.cs +++ b/NPCs/DesertScourge/DesertScourgeBody.cs @@ -22,6 +22,7 @@ namespace CalamityMod.NPCs.DesertScourge npc.width = 32; npc.height = 36; npc.defense = 6; + npc.GetCalamityNPC().RevPlusDR(0.05f); npc.lifeMax = CalamityWorld.revenge ? 2650 : 2300; if (CalamityWorld.death) { diff --git a/NPCs/DesertScourge/DesertScourgeTail.cs b/NPCs/DesertScourge/DesertScourgeTail.cs index 9490fc3249..89a943eaa9 100644 --- a/NPCs/DesertScourge/DesertScourgeTail.cs +++ b/NPCs/DesertScourge/DesertScourgeTail.cs @@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.DesertScourge npc.width = 32; //324 npc.height = 48; //216 npc.defense = 9; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = CalamityWorld.revenge ? 2650 : 2300; if (CalamityWorld.death) { diff --git a/NPCs/GreatSandShark/GreatSandShark.cs b/NPCs/GreatSandShark/GreatSandShark.cs index 22122ae70f..40855f0aaf 100644 --- a/NPCs/GreatSandShark/GreatSandShark.cs +++ b/NPCs/GreatSandShark/GreatSandShark.cs @@ -29,7 +29,8 @@ namespace CalamityMod.NPCs.GreatSandShark npc.width = 300; npc.height = 120; npc.defense = 60; - npc.lifeMax = CalamityWorld.revenge ? 11000 : 8000; + npc.GetCalamityNPC().RevPlusDR(0.25f); + npc.lifeMax = CalamityWorld.revenge ? 11000 : 8000; if (CalamityWorld.death) { npc.lifeMax = 16000; diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index ba993a888b..946a221727 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -28,7 +28,8 @@ namespace CalamityMod.NPCs.Leviathan npc.width = 850; npc.height = 450; npc.defense = 40; - npc.lifeMax = CalamityWorld.revenge ? 90700 : 69000; + npc.GetCalamityNPC().RevPlusDR(0.35f); + npc.lifeMax = CalamityWorld.revenge ? 90700 : 69000; if (CalamityWorld.death) { npc.lifeMax = 189750; diff --git a/NPCs/Leviathan/Siren.cs b/NPCs/Leviathan/Siren.cs index 9df9e089ce..72090cface 100644 --- a/NPCs/Leviathan/Siren.cs +++ b/NPCs/Leviathan/Siren.cs @@ -30,6 +30,7 @@ namespace CalamityMod.NPCs.Leviathan npc.width = 100; npc.height = 100; npc.defense = 20; + npc.GetCalamityNPC().RevPlusDR(0.05f); npc.lifeMax = CalamityWorld.revenge ? 41600 : 27400; if (CalamityWorld.death) { diff --git a/NPCs/Leviathan/SirenIce.cs b/NPCs/Leviathan/SirenIce.cs index 7a45bd8827..7968bed16f 100644 --- a/NPCs/Leviathan/SirenIce.cs +++ b/NPCs/Leviathan/SirenIce.cs @@ -23,7 +23,8 @@ namespace CalamityMod.NPCs.Leviathan npc.width = 100; npc.height = 100; npc.defense = 10; - npc.lifeMax = 650; + npc.GetCalamityNPC().RevPlusDR(0.5f); + npc.lifeMax = 650; if (CalamityWorld.bossRushActive) { npc.lifeMax = 400000; diff --git a/NPCs/NormalNPCs/ArmoredDiggerBody.cs b/NPCs/NormalNPCs/ArmoredDiggerBody.cs index 9b546fe380..0fa81d4459 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerBody.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerBody.cs @@ -19,7 +19,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 38; npc.height = 38; npc.defense = 30; - npc.lifeMax = 20000; + npc.GetCalamityNPC().RevPlusDR(0.35f); + npc.lifeMax = 20000; npc.knockBackResist = 0f; npc.aiStyle = -1; aiType = -1; diff --git a/NPCs/NormalNPCs/ArmoredDiggerHead.cs b/NPCs/NormalNPCs/ArmoredDiggerHead.cs index 19b9023224..f76fe9fe21 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerHead.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerHead.cs @@ -22,6 +22,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 54; npc.height = 54; npc.defense = 15; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 20000; npc.knockBackResist = 0f; npc.aiStyle = -1; diff --git a/NPCs/NormalNPCs/ArmoredDiggerTail.cs b/NPCs/NormalNPCs/ArmoredDiggerTail.cs index 769eabe06d..7e460d6ddb 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerTail.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerTail.cs @@ -19,7 +19,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 34; npc.height = 34; npc.defense = 45; - npc.lifeMax = 20000; + npc.GetCalamityNPC().RevPlusDR(0.45f); + npc.lifeMax = 20000; npc.knockBackResist = 0f; npc.aiStyle = -1; aiType = -1; diff --git a/NPCs/NormalNPCs/Cnidrion.cs b/NPCs/NormalNPCs/Cnidrion.cs index 17bc279c9f..b6432f28f2 100644 --- a/NPCs/NormalNPCs/Cnidrion.cs +++ b/NPCs/NormalNPCs/Cnidrion.cs @@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 160; npc.height = 80; npc.defense = 6; + npc.GetCalamityNPC().RevPlusDR(0.05f); npc.lifeMax = 400; npc.knockBackResist = 0.05f; aiType = -1; diff --git a/NPCs/NormalNPCs/Cryon.cs b/NPCs/NormalNPCs/Cryon.cs index 837fb6e9c2..f73aca9838 100644 --- a/NPCs/NormalNPCs/Cryon.cs +++ b/NPCs/NormalNPCs/Cryon.cs @@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 50; npc.height = 64; npc.defense = 10; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = 300; npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 0, 5, 0); diff --git a/NPCs/NormalNPCs/Horse.cs b/NPCs/NormalNPCs/Horse.cs index b575600b3e..fb3038a998 100644 --- a/NPCs/NormalNPCs/Horse.cs +++ b/NPCs/NormalNPCs/Horse.cs @@ -26,6 +26,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 230; npc.height = 230; npc.defense = 20; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = 3800; npc.aiStyle = -1; aiType = -1; diff --git a/NPCs/NormalNPCs/OverloadedSoldier.cs b/NPCs/NormalNPCs/OverloadedSoldier.cs index 42aa4d80ae..1df44b6b1f 100644 --- a/NPCs/NormalNPCs/OverloadedSoldier.cs +++ b/NPCs/NormalNPCs/OverloadedSoldier.cs @@ -22,7 +22,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 18; npc.height = 40; npc.defense = 18; - npc.lifeMax = 90; + npc.GetCalamityNPC().RevPlusDR(0.15f); + npc.lifeMax = 90; npc.knockBackResist = 0.5f; animationType = 77; npc.value = Item.buyPrice(0, 0, 2, 0); diff --git a/NPCs/NormalNPCs/PhantomDebris.cs b/NPCs/NormalNPCs/PhantomDebris.cs index 92e7d34b37..78ad9b4cf8 100644 --- a/NPCs/NormalNPCs/PhantomDebris.cs +++ b/NPCs/NormalNPCs/PhantomDebris.cs @@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 44; npc.height = 22; npc.defense = 20; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = 80; npc.aiStyle = 3; aiType = 67; diff --git a/NPCs/NormalNPCs/ProfanedEnergyBody.cs b/NPCs/NormalNPCs/ProfanedEnergyBody.cs index ff7f7b36f3..c7b2fa21e8 100644 --- a/NPCs/NormalNPCs/ProfanedEnergyBody.cs +++ b/NPCs/NormalNPCs/ProfanedEnergyBody.cs @@ -20,6 +20,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 72; npc.height = 36; npc.defense = 50; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = 6000; npc.knockBackResist = 0f; aiType = -1; diff --git a/NPCs/NormalNPCs/SandTortoise.cs b/NPCs/NormalNPCs/SandTortoise.cs index 58650d16ff..4fc3a45698 100644 --- a/NPCs/NormalNPCs/SandTortoise.cs +++ b/NPCs/NormalNPCs/SandTortoise.cs @@ -22,7 +22,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 46; npc.height = 32; npc.defense = 30; - npc.scale = 1.5f; + npc.GetCalamityNPC().RevPlusDR(0.25f); + npc.scale = 1.5f; npc.lifeMax = 580; npc.knockBackResist = 0.2f; animationType = 153; diff --git a/NPCs/NormalNPCs/ScornEater.cs b/NPCs/NormalNPCs/ScornEater.cs index d2aac28a05..9a0da33455 100644 --- a/NPCs/NormalNPCs/ScornEater.cs +++ b/NPCs/NormalNPCs/ScornEater.cs @@ -22,6 +22,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 160; npc.height = 160; npc.defense = 38; + npc.GetCalamityNPC().RevPlusDR(0.05f); npc.lifeMax = 16000; npc.knockBackResist = 0f; aiType = -1; diff --git a/NPCs/NormalNPCs/ShockstormShuttle.cs b/NPCs/NormalNPCs/ShockstormShuttle.cs index 3ead0a260e..968569bd4f 100644 --- a/NPCs/NormalNPCs/ShockstormShuttle.cs +++ b/NPCs/NormalNPCs/ShockstormShuttle.cs @@ -20,6 +20,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 64; npc.height = 38; npc.defense = 15; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 150; npc.aiStyle = -1; aiType = -1; diff --git a/NPCs/NormalNPCs/ThiccWaifu.cs b/NPCs/NormalNPCs/ThiccWaifu.cs index 7efbfd3dde..b17eb7f57a 100644 --- a/NPCs/NormalNPCs/ThiccWaifu.cs +++ b/NPCs/NormalNPCs/ThiccWaifu.cs @@ -24,6 +24,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 80; npc.height = 140; npc.defense = 18; + npc.GetCalamityNPC().RevPlusDR(0.05f); npc.lifeMax = 6000; if (CalamityWorld.downedProvidence) { diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index c6c8a91bf5..0784fdfd09 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -37,7 +37,8 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.width = 198; npc.height = 198; npc.defense = 40; - npc.lifeMax = CalamityWorld.revenge ? 77275 : 58500; + npc.GetCalamityNPC().RevPlusDR(0.25f); + npc.lifeMax = CalamityWorld.revenge ? 77275 : 58500; if (CalamityWorld.death) { npc.lifeMax = 110000; diff --git a/NPCs/PlaguebringerShade/PlaguebringerShade.cs b/NPCs/PlaguebringerShade/PlaguebringerShade.cs index 12ffad62e2..1d240f2696 100644 --- a/NPCs/PlaguebringerShade/PlaguebringerShade.cs +++ b/NPCs/PlaguebringerShade/PlaguebringerShade.cs @@ -22,7 +22,8 @@ namespace CalamityMod.NPCs.PlaguebringerShade npc.width = 66; npc.height = 66; npc.defense = 30; - npc.lifeMax = CalamityWorld.death ? 4000 : 3000; + npc.GetCalamityNPC().RevPlusDR(0.2f); + npc.lifeMax = CalamityWorld.death ? 4000 : 3000; npc.value = Item.buyPrice(0, 1, 50, 0); if (CalamityWorld.bossRushActive) { diff --git a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs index 0c5b571359..18971dff12 100644 --- a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs +++ b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs @@ -30,7 +30,8 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss npc.width = 100; npc.height = 80; npc.defense = 50; - npc.lifeMax = 102500; + npc.GetCalamityNPC().RevPlusDR(0.4f); + npc.lifeMax = 102500; if (CalamityWorld.bossRushActive) { npc.lifeMax = CalamityWorld.death ? 600000 : 500000; diff --git a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs index d4879a913e..32f455c765 100644 --- a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs +++ b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs @@ -24,7 +24,8 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss npc.width = 100; npc.height = 80; npc.defense = 50; - npc.lifeMax = 40000; + npc.GetCalamityNPC().RevPlusDR(0.25f); + npc.lifeMax = 40000; if (CalamityWorld.bossRushActive) { npc.lifeMax = CalamityWorld.death ? 400000 : 300000; diff --git a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs index fb9995fb9f..c9c3b00af3 100644 --- a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs +++ b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs @@ -24,6 +24,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss npc.width = 100; npc.height = 80; npc.defense = 35; + npc.GetCalamityNPC().RevPlusDR(0.05f); npc.lifeMax = 25000; if (CalamityWorld.bossRushActive) { diff --git a/NPCs/Providence/ProvSpawnDefense.cs b/NPCs/Providence/ProvSpawnDefense.cs index c3d91d881b..3e60e92534 100644 --- a/NPCs/Providence/ProvSpawnDefense.cs +++ b/NPCs/Providence/ProvSpawnDefense.cs @@ -23,7 +23,8 @@ namespace CalamityMod.NPCs.Providence npc.width = 100; npc.height = 80; npc.defense = 50; - npc.lifeMax = 25000; + npc.GetCalamityNPC().RevPlusDR(0.4f); + npc.lifeMax = 25000; if (CalamityWorld.bossRushActive) { npc.lifeMax = CalamityWorld.death ? 360000 : 300000; diff --git a/NPCs/Providence/ProvSpawnHealer.cs b/NPCs/Providence/ProvSpawnHealer.cs index db1240e6ec..fb1aaff529 100644 --- a/NPCs/Providence/ProvSpawnHealer.cs +++ b/NPCs/Providence/ProvSpawnHealer.cs @@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.Providence npc.width = 100; npc.height = 80; npc.defense = 35; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 40000; if (CalamityWorld.bossRushActive) { diff --git a/NPCs/Providence/ProvSpawnOffense.cs b/NPCs/Providence/ProvSpawnOffense.cs index e99076f887..db2e12e669 100644 --- a/NPCs/Providence/ProvSpawnOffense.cs +++ b/NPCs/Providence/ProvSpawnOffense.cs @@ -26,7 +26,8 @@ namespace CalamityMod.NPCs.Providence npc.width = 100; npc.height = 80; npc.defense = 40; - npc.lifeMax = 42500; + npc.GetCalamityNPC().RevPlusDR(0.3f); + npc.lifeMax = 42500; if (CalamityWorld.bossRushActive) { npc.lifeMax = CalamityWorld.death ? 500000 : 400000; diff --git a/NPCs/Scavenger/ScavengerBody.cs b/NPCs/Scavenger/ScavengerBody.cs index 45e9e86143..397c69ad9d 100644 --- a/NPCs/Scavenger/ScavengerBody.cs +++ b/NPCs/Scavenger/ScavengerBody.cs @@ -28,7 +28,8 @@ namespace CalamityMod.NPCs.Scavenger npc.width = 332; npc.height = 214; npc.defense = 55; - npc.lifeMax = CalamityWorld.revenge ? 53500 : 42700; + npc.GetCalamityNPC().RevPlusDR(0.4f); + npc.lifeMax = CalamityWorld.revenge ? 53500 : 42700; if (CalamityWorld.death) { npc.lifeMax = 90000; diff --git a/NPCs/Scavenger/ScavengerClawLeft.cs b/NPCs/Scavenger/ScavengerClawLeft.cs index c00fac1daf..345dbd67d6 100644 --- a/NPCs/Scavenger/ScavengerClawLeft.cs +++ b/NPCs/Scavenger/ScavengerClawLeft.cs @@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.Scavenger npc.width = 80; npc.height = 40; npc.defense = 40; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = 11120; npc.knockBackResist = 0f; aiType = -1; diff --git a/NPCs/Scavenger/ScavengerClawRight.cs b/NPCs/Scavenger/ScavengerClawRight.cs index 44b7b2b550..46bca10b5b 100644 --- a/NPCs/Scavenger/ScavengerClawRight.cs +++ b/NPCs/Scavenger/ScavengerClawRight.cs @@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.Scavenger npc.width = 80; //324 npc.height = 40; //216 npc.defense = 50; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = 11120; npc.knockBackResist = 0f; aiType = -1; diff --git a/NPCs/Scavenger/ScavengerHead.cs b/NPCs/Scavenger/ScavengerHead.cs index 9df46f7954..564e73e9c3 100644 --- a/NPCs/Scavenger/ScavengerHead.cs +++ b/NPCs/Scavenger/ScavengerHead.cs @@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.Scavenger npc.width = 80; npc.height = 80; npc.defense = 50; + npc.GetCalamityNPC().RevPlusDR(0.1f); npc.lifeMax = 32705; npc.knockBackResist = 0f; aiType = -1; diff --git a/NPCs/Scavenger/ScavengerLegLeft.cs b/NPCs/Scavenger/ScavengerLegLeft.cs index e44a0e2e65..f7b68299ae 100644 --- a/NPCs/Scavenger/ScavengerLegLeft.cs +++ b/NPCs/Scavenger/ScavengerLegLeft.cs @@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.Scavenger npc.width = 60; npc.height = 60; npc.defense = 40; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 22010; npc.knockBackResist = 0f; aiType = -1; diff --git a/NPCs/Scavenger/ScavengerLegRight.cs b/NPCs/Scavenger/ScavengerLegRight.cs index 492a398fb0..964280f2eb 100644 --- a/NPCs/Scavenger/ScavengerLegRight.cs +++ b/NPCs/Scavenger/ScavengerLegRight.cs @@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.Scavenger npc.width = 60; npc.height = 60; npc.defense = 40; + npc.GetCalamityNPC().RevPlusDR(0.15f); npc.lifeMax = 21010; npc.knockBackResist = 0f; aiType = -1; diff --git a/NPCs/StormWeaver/StasisProbe.cs b/NPCs/StormWeaver/StasisProbe.cs index 377bdd04ab..48be9af7e3 100644 --- a/NPCs/StormWeaver/StasisProbe.cs +++ b/NPCs/StormWeaver/StasisProbe.cs @@ -22,7 +22,8 @@ namespace CalamityMod.NPCs.StormWeaver npc.width = 30; npc.height = 30; npc.defense = 60; - npc.lifeMax = 1200; + npc.GetCalamityNPC().RevPlusDR(0.25f); + npc.lifeMax = 1200; if (CalamityWorld.bossRushActive) { npc.lifeMax = 25000; diff --git a/NPCs/SunkenSeaNPCs/BlindedAngler.cs b/NPCs/SunkenSeaNPCs/BlindedAngler.cs index 25f10a5d66..668e5627ea 100644 --- a/NPCs/SunkenSeaNPCs/BlindedAngler.cs +++ b/NPCs/SunkenSeaNPCs/BlindedAngler.cs @@ -26,7 +26,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.width = 56; npc.height = 44; npc.defense = 30; - npc.lifeMax = 750; + npc.GetCalamityNPC().RevPlusDR(0.2f); + npc.lifeMax = 750; npc.aiStyle = -1; aiType = -1; npc.value = Item.buyPrice(0, 0, 40, 0); diff --git a/NPCs/SunkenSeaNPCs/Clam.cs b/NPCs/SunkenSeaNPCs/Clam.cs index ef006dc1e7..3ba5fb7dea 100644 --- a/NPCs/SunkenSeaNPCs/Clam.cs +++ b/NPCs/SunkenSeaNPCs/Clam.cs @@ -25,7 +25,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.width = 56; npc.height = 38; npc.defense = 9999; - npc.lifeMax = Main.hardMode ? 300 : 150; + npc.GetCalamityNPC().RevPlusDR(0.25f); + npc.lifeMax = Main.hardMode ? 300 : 150; if (Main.expertMode) { npc.lifeMax *= 2; diff --git a/NPCs/SunkenSeaNPCs/EutrophicRay.cs b/NPCs/SunkenSeaNPCs/EutrophicRay.cs index cecfc8f0b8..d66ba4a98a 100644 --- a/NPCs/SunkenSeaNPCs/EutrophicRay.cs +++ b/NPCs/SunkenSeaNPCs/EutrophicRay.cs @@ -24,6 +24,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.width = 116; npc.height = 36; npc.defense = Main.hardMode ? 15 : 5; + npc.GetCalamityNPC().RevPlusDR(0.05f); npc.lifeMax = Main.hardMode ? 500 : 150; npc.aiStyle = -1; aiType = -1; diff --git a/NPCs/SunkenSeaNPCs/GiantClam.cs b/NPCs/SunkenSeaNPCs/GiantClam.cs index 3a8b0ed677..5ca7eb3ba2 100644 --- a/NPCs/SunkenSeaNPCs/GiantClam.cs +++ b/NPCs/SunkenSeaNPCs/GiantClam.cs @@ -34,7 +34,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.width = 160; npc.height = 120; npc.defense = 9999; - npc.lifeMax = Main.hardMode ? 7500 : 1250; + npc.GetCalamityNPC().RevPlusDR(0.3f); + npc.lifeMax = Main.hardMode ? 7500 : 1250; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; diff --git a/NPCs/SunkenSeaNPCs/PrismTurtle.cs b/NPCs/SunkenSeaNPCs/PrismTurtle.cs index f947976e0a..595fb3ff92 100644 --- a/NPCs/SunkenSeaNPCs/PrismTurtle.cs +++ b/NPCs/SunkenSeaNPCs/PrismTurtle.cs @@ -27,7 +27,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs npc.width = 72; npc.height = 58; npc.defense = Main.hardMode ? 25 : 10; - npc.lifeMax = Main.hardMode ? 1000 : 350; + npc.GetCalamityNPC().RevPlusDR(0.25f); + npc.lifeMax = Main.hardMode ? 1000 : 350; npc.aiStyle = -1; aiType = -1; npc.value = Main.hardMode ? Item.buyPrice(0, 0, 50, 0) : Item.buyPrice(0, 0, 5, 0); diff --git a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs index 756f0b96fc..1a1d3b6f27 100644 --- a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs +++ b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs @@ -29,7 +29,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.canGhostHeal = false; npc.damage = 0; npc.defense = 80; - npc.lifeMax = Main.expertMode ? 90000 : 50000; + npc.GetCalamityNPC().RevPlusDR(0.35f); + npc.lifeMax = Main.expertMode ? 90000 : 50000; if (CalamityWorld.revenge) { npc.lifeMax = CalamityWorld.death ? 100000 : 170000;