From 87f66f7a716fb7cb0be87b8fe3d2e876967fbf7f Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 31 Jul 2021 12:41:31 -0400 Subject: [PATCH] I'm fucking tired of this loading shit --- CalPlayer/CalamityPlayer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 620d843d2f..134eb7fa32 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1238,10 +1238,10 @@ namespace CalamityMod.CalPlayer newCalamitasInventory = boost.Contains("newCalamitasInventory"); GivenBrimstoneLocus = boost.Contains("GivenBrimstoneLocus"); - // Load rage from "stress" if this is an older save. Otherwise load it from "rage", its new name. - if (tag.ContainsKey("stress")) - rage = tag.GetInt("stress"); - else + // Load rage if it's there, which it will be for any players saved with 1.5. + // Older players have "stress" instead, which will be ignored. This is intentional. + // Stress ranged from 0 to 10,000. Rage ranges from 0.0 to 1.0. + if (tag.ContainsKey("rage")) rage = tag.GetFloat("rage"); adrenaline = tag.GetFloat("adrenaline");