From 5f5fa954b883ef4f22727e7d0f3786c15ea7922e Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 13 Jun 2022 13:02:02 -0500 Subject: [PATCH] Fix the ExpertDebuffReduction config --- CalPlayer/CalamityPlayerMiscEffects.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 63c8a5eb78..aafedc8681 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -89,6 +89,10 @@ namespace CalamityMod.CalPlayer copy = Main.RegisteredGameModes[GameModeID.Master]; copy.DebuffTimeMultiplier = 1f; Main.RegisteredGameModes[GameModeID.Master] = copy; + + // NOTE -- While this may seem at a glance to be redundant and nonsensical, the underlying setter for this property is what causes the game mode properties to + // be refreshed and copied from RegisteredGameModes. Without this, the above behavior is not reflected ingame, as GameModeData is a value type, not a reference type. + Main.GameMode = Main.GameMode; } // Go through the old positions for the player.