From cf34e8bb44f9a980487bf0e5f3a6fef19e72a9fb Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Tue, 14 Jul 2020 17:24:59 -0400 Subject: [PATCH] added a hardmode clam downed bool --- Items/Fishing/SunkenSeaCatches/SunkenCrate.cs | 2 +- NPCs/SunkenSea/GiantClam.cs | 1 + World/CalamityWorld.cs | 11 ++++++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs b/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs index ca9397f4e0..e9125f2355 100644 --- a/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs +++ b/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs @@ -55,7 +55,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches } // Weapons - DropHelper.DropItemFromSetCondition(player, CalamityWorld.downedCLAM && Main.hardMode, 0.2f, + DropHelper.DropItemFromSetCondition(player, CalamityWorld.downedCLAMHardmode, 0.2f, ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), diff --git a/NPCs/SunkenSea/GiantClam.cs b/NPCs/SunkenSea/GiantClam.cs index c2d3aa4716..06e046783c 100644 --- a/NPCs/SunkenSea/GiantClam.cs +++ b/NPCs/SunkenSea/GiantClam.cs @@ -427,6 +427,7 @@ namespace CalamityMod.NPCs.SunkenSea // Mark Giant Clam as dead CalamityWorld.downedCLAM = true; + CalamityWorld.downedCLAMHardmode = Main.hardMode; CalamityMod.UpdateServerBoolean(); } } diff --git a/World/CalamityWorld.cs b/World/CalamityWorld.cs index c3d1f6af6b..e5475fa30b 100644 --- a/World/CalamityWorld.cs +++ b/World/CalamityWorld.cs @@ -174,6 +174,7 @@ namespace CalamityMod.World public static bool downedSCal = false; public static bool downedGSS = false; public static bool downedCLAM = false; + public static bool downedCLAMHardMode = false; public static bool downedBetsy = false; //Betsy public static bool downedEoCAcidRain = false; @@ -242,6 +243,7 @@ namespace CalamityMod.World buffedEclipse = false; downedSCal = false; downedCLAM = false; + downedCLAMHardMode = false; downedBumble = false; downedCrabulon = false; downedBetsy = false; @@ -357,6 +359,8 @@ namespace CalamityMod.World downed.Add("bossRushActive"); if (downedCLAM) downed.Add("clam"); + if (downedCLAMHardMode) + downed.Add("clamHardmode"); if (dragonScalesBought) downed.Add("scales"); if (rainingAcid) @@ -447,6 +451,7 @@ namespace CalamityMod.World abyssSide = downed.Contains("abyssSide"); bossRushActive = downed.Contains("bossRushActive"); downedCLAM = downed.Contains("clam"); + downedCLAMHardMode = downed.Contains("clamHardmode"); dragonScalesBought = downed.Contains("scales"); rainingAcid = downed.Contains("acidRain"); spawnedBandit = downed.Contains("bandit"); @@ -553,7 +558,7 @@ namespace CalamityMod.World forcedDownpourWithTear = flags8[1]; downedSecondSentinels = flags8[2]; foundHomePermafrost = flags8[3]; - _ = flags8[4]; + downedCLAMHardMode = flags8[4]; _ = flags8[5]; _ = flags8[6]; _ = flags8[7]; @@ -644,7 +649,7 @@ namespace CalamityMod.World flags8[1] = forcedDownpourWithTear; flags8[2] = downedSecondSentinels; flags8[3] = foundHomePermafrost; - flags8[4] = false; + flags8[4] = downedCLAMHardMode; flags8[5] = false; flags8[6] = false; flags8[7] = false; @@ -743,7 +748,7 @@ namespace CalamityMod.World forcedDownpourWithTear = flags8[1]; downedSecondSentinels = flags8[2]; foundHomePermafrost = flags8[3]; - _ = flags8[4]; + downedCLAMHardMode = flags8[4]; _ = flags8[5]; _ = flags8[6]; _ = flags8[7];