From 1b429099c07f115d12f07b06104f2748c790022a Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 30 May 2020 21:16:14 -0400 Subject: [PATCH] fixed one visual studio automerge failure --- NPCs/CalamityGlobalNPC.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 83fb4f8217..33c32f3a82 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -1517,14 +1517,14 @@ namespace CalamityMod.NPCs // Calculate extra DR based on kill time, similar to the Hush boss from The Binding of Isaac if (KillTime > 0 && AITimer < KillTime && !CalamityWorld.bossRushActive) { - float DRScalar = !GetDownedBossVariable(npc.type) || CalamityMod.CalamityConfig.ExtraBossDR ? 1.5f : 1f; + float DRScalar = !GetDownedBossVariable(npc.type) || CalamityConfig.Instance.ReactiveBossDR ? 1.5f : 1f; // Boost Providence timed DR during the night if (npc.type == NPCType() && !Main.dayTime) DRScalar = 10f; // The limit for how much extra DR the boss can have - float extraDRLimit = (1f - DR) * (!GetDownedBossVariable(npc.type) || CalamityConfig.Instance.ExtraBossDR ? 1.5f : 1f); + float extraDRLimit = (1f - DR) * DRScalar; // Ranges from 1 to 0 float currentHPRatio = npc.life / (float)npc.lifeMax;