From 78c967e97300991f4beed5003162232ae94de5f4 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Wed, 12 Apr 2023 13:15:44 -0500 Subject: [PATCH] Rev+ Legendary Slime God. --- NPCs/SlimeGod/CorruptSlimeSpawn.cs | 9 ++++----- NPCs/SlimeGod/CorruptSlimeSpawn2.cs | 9 ++++----- NPCs/SlimeGod/CrimsonSlimeSpawn.cs | 9 ++++----- NPCs/SlimeGod/CrimsonSlimeSpawn2.cs | 9 ++++----- NPCs/SlimeGod/CrimulanSlimeGod.cs | 2 +- NPCs/SlimeGod/EbonianSlimeGod.cs | 2 +- NPCs/SlimeGod/SlimeGodCore.cs | 5 +++++ NPCs/SlimeGod/SplitCrimulanSlimeGod.cs | 2 +- NPCs/SlimeGod/SplitEbonianSlimeGod.cs | 2 +- 9 files changed, 25 insertions(+), 24 deletions(-) diff --git a/NPCs/SlimeGod/CorruptSlimeSpawn.cs b/NPCs/SlimeGod/CorruptSlimeSpawn.cs index a44c8cc42d..f974b13d6a 100644 --- a/NPCs/SlimeGod/CorruptSlimeSpawn.cs +++ b/NPCs/SlimeGod/CorruptSlimeSpawn.cs @@ -27,12 +27,11 @@ namespace CalamityMod.NPCs.SlimeGod NPC.GetNPCDamage(); NPC.width = 40; NPC.height = 30; + if (CalamityWorld.LegendaryMode && CalamityWorld.revenge) + NPC.scale = 2f; + NPC.defense = 6; - NPC.lifeMax = 180; - if (BossRushEvent.BossRushActive) - { - NPC.lifeMax = 10000; - } + NPC.lifeMax = BossRushEvent.BossRushActive ? 10000 : (CalamityWorld.LegendaryMode && CalamityWorld.revenge) ? 360 : 180; NPC.knockBackResist = 0f; AnimationType = 121; NPC.Opacity = 0.8f; diff --git a/NPCs/SlimeGod/CorruptSlimeSpawn2.cs b/NPCs/SlimeGod/CorruptSlimeSpawn2.cs index 66c6482336..c44f4a3d17 100644 --- a/NPCs/SlimeGod/CorruptSlimeSpawn2.cs +++ b/NPCs/SlimeGod/CorruptSlimeSpawn2.cs @@ -24,12 +24,11 @@ namespace CalamityMod.NPCs.SlimeGod NPC.GetNPCDamage(); NPC.width = 40; NPC.height = 30; + if (CalamityWorld.LegendaryMode && CalamityWorld.revenge) + NPC.scale = 2f; + NPC.defense = 4; - NPC.lifeMax = 90; - if (BossRushEvent.BossRushActive) - { - NPC.lifeMax = 5000; - } + NPC.lifeMax = BossRushEvent.BossRushActive ? 5000 : (CalamityWorld.LegendaryMode && CalamityWorld.revenge) ? 180 : 90; NPC.knockBackResist = 0f; AnimationType = NPCID.CorruptSlime; NPC.Opacity = 0.8f; diff --git a/NPCs/SlimeGod/CrimsonSlimeSpawn.cs b/NPCs/SlimeGod/CrimsonSlimeSpawn.cs index 5e422e2bd6..ddc548fc06 100644 --- a/NPCs/SlimeGod/CrimsonSlimeSpawn.cs +++ b/NPCs/SlimeGod/CrimsonSlimeSpawn.cs @@ -25,12 +25,11 @@ namespace CalamityMod.NPCs.SlimeGod NPC.GetNPCDamage(); NPC.width = 40; NPC.height = 30; + if (CalamityWorld.LegendaryMode && CalamityWorld.revenge) + NPC.scale = 2f; + NPC.defense = 4; - NPC.lifeMax = 110; - if (BossRushEvent.BossRushActive) - { - NPC.lifeMax = 10000; - } + NPC.lifeMax = BossRushEvent.BossRushActive ? 10000 : (CalamityWorld.LegendaryMode && CalamityWorld.revenge) ? 220 : 110; NPC.knockBackResist = 0f; AnimationType = NPCID.CorruptSlime; NPC.Opacity = 0.8f; diff --git a/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs b/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs index 3acd642f59..506648da1b 100644 --- a/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs +++ b/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs @@ -29,12 +29,11 @@ namespace CalamityMod.NPCs.SlimeGod NPC.GetNPCDamage(); NPC.width = 40; NPC.height = 30; + if (CalamityWorld.LegendaryMode && CalamityWorld.revenge) + NPC.scale = 2f; + NPC.defense = 6; - NPC.lifeMax = 130; - if (BossRushEvent.BossRushActive) - { - NPC.lifeMax = 12000; - } + NPC.lifeMax = BossRushEvent.BossRushActive ? 12000 : (CalamityWorld.LegendaryMode && CalamityWorld.revenge) ? 260 : 130; NPC.knockBackResist = 0f; NPC.Opacity = 0.8f; NPC.lavaImmune = false; diff --git a/NPCs/SlimeGod/CrimulanSlimeGod.cs b/NPCs/SlimeGod/CrimulanSlimeGod.cs index f5aae6ef5f..f9a332dea1 100644 --- a/NPCs/SlimeGod/CrimulanSlimeGod.cs +++ b/NPCs/SlimeGod/CrimulanSlimeGod.cs @@ -91,7 +91,7 @@ namespace CalamityMod.NPCs.SlimeGod NPC.damage = NPC.defDamage + 25; } - float scale = Main.getGoodWorld ? 0.8f : 1f; + float scale = (CalamityWorld.LegendaryMode && CalamityWorld.revenge) ? 0.6f : Main.getGoodWorld ? 0.8f : 1f; NPC.aiAction = 0; NPC.noTileCollide = false; NPC.noGravity = false; diff --git a/NPCs/SlimeGod/EbonianSlimeGod.cs b/NPCs/SlimeGod/EbonianSlimeGod.cs index b39057fe45..51dca013d8 100644 --- a/NPCs/SlimeGod/EbonianSlimeGod.cs +++ b/NPCs/SlimeGod/EbonianSlimeGod.cs @@ -88,7 +88,7 @@ namespace CalamityMod.NPCs.SlimeGod NPC.damage = NPC.defDamage + 22; } - float scale = Main.getGoodWorld ? 0.8f : 1f; + float scale = (CalamityWorld.LegendaryMode && CalamityWorld.revenge) ? 0.6f : Main.getGoodWorld ? 0.8f : 1f; NPC.aiAction = 0; NPC.noTileCollide = false; NPC.noGravity = false; diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index f2bd30d4ef..b1fefc3ff0 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -57,6 +57,9 @@ namespace CalamityMod.NPCs.SlimeGod NPC.npcSlots = 10f; NPC.width = 44; NPC.height = 44; + if (CalamityWorld.LegendaryMode && CalamityWorld.revenge) + NPC.scale = 2f; + NPC.defense = 6; NPC.LifeMaxNERB(420); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; @@ -456,6 +459,8 @@ namespace CalamityMod.NPCs.SlimeGod float inertia = 50f; if (Main.getGoodWorld) inertia *= 0.8f; + if (CalamityWorld.LegendaryMode && CalamityWorld.revenge) + inertia -= Main.rand.Next(31); NPC.velocity = (NPC.velocity * inertia + idealVelocity) / (inertia + 1f); if (distanceFromFlyDestination < 350f) diff --git a/NPCs/SlimeGod/SplitCrimulanSlimeGod.cs b/NPCs/SlimeGod/SplitCrimulanSlimeGod.cs index a7d6d5d60d..a7b941bdc2 100644 --- a/NPCs/SlimeGod/SplitCrimulanSlimeGod.cs +++ b/NPCs/SlimeGod/SplitCrimulanSlimeGod.cs @@ -107,7 +107,7 @@ namespace CalamityMod.NPCs.SlimeGod NPC.damage = NPC.defDamage + 22; } - float scale = Main.getGoodWorld ? 0.8f : 1f; + float scale = (CalamityWorld.LegendaryMode && CalamityWorld.revenge) ? 0.6f : Main.getGoodWorld ? 0.8f : 1f; NPC.aiAction = 0; NPC.noTileCollide = false; NPC.noGravity = false; diff --git a/NPCs/SlimeGod/SplitEbonianSlimeGod.cs b/NPCs/SlimeGod/SplitEbonianSlimeGod.cs index 7fa36e582d..5c1c05500b 100644 --- a/NPCs/SlimeGod/SplitEbonianSlimeGod.cs +++ b/NPCs/SlimeGod/SplitEbonianSlimeGod.cs @@ -107,7 +107,7 @@ namespace CalamityMod.NPCs.SlimeGod NPC.damage = NPC.defDamage + 20; } - float scale = Main.getGoodWorld ? 0.8f : 1f; + float scale = (CalamityWorld.LegendaryMode && CalamityWorld.revenge) ? 0.6f : Main.getGoodWorld ? 0.8f : 1f; NPC.aiAction = 0; NPC.noTileCollide = false; NPC.noGravity = false;