From dbca545d11f442e5f8f814d696fe1810ea28a91c Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 4 Feb 2023 16:41:33 -0500 Subject: [PATCH] 1 - Renamed base stat boost configs to be more clear. 2 - Renamed the Fast Falling config and moved it to the General Gameplay section because it's not a base stat boost. 3 - Improved the config descriptions on all the above settings. All but build speed now indicate that Calamity is balanced around them being turned on. 4 - Fixed a mistake where jump height config was giving jump speed, and vice versa. --- CalPlayer/CalamityPlayer.cs | 5 ++--- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- CalamityConfig.cs | 13 ++++++------- ILEditing/BalancingILChanges.cs | 2 +- Localization/en-US.hjson | 20 ++++++++++---------- 5 files changed, 20 insertions(+), 22 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 41cf14ddd1..82f47d5732 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3195,12 +3195,11 @@ namespace CalamityMod.CalPlayer // TODO -- why is boss health bar code in Player.UpdateEquips and not a ModSystem CalamityConfig.Instance.BossHealthBarExtraInfo = shouldDrawSmallText; + // If the config is enabled, vastly increase the player's base tile and wall placement speeds + // This stacks with the Brick Layer and Portable Cement Mixer if (CalamityConfig.Instance.FasterTilePlacement) { - // Increase tile placement speed to speed up early game a bit and make building more fun Player.tileSpeed += 0.5f; - - // Increase wall placement speed to speed up early game a bit and make building more fun Player.wallSpeed += 0.5f; } diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 37975fad34..25b01033b9 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -76,7 +76,7 @@ namespace CalamityMod.CalPlayer // Give the player a 24% jump speed boost while wings are equipped, otherwise grant 4% more jump speed so that players can jump 7 tiles high if (Player.wingsLogic > 0) Player.jumpSpeedBoost += 1.2f; - else if (CalamityConfig.Instance.HigherJumpHeight) + else if (CalamityConfig.Instance.FasterJumpSpeed) Player.jumpSpeedBoost += 0.2f; // Decrease the counter on Fearmonger set turbo regeneration diff --git a/CalamityConfig.cs b/CalamityConfig.cs index f55f147b12..29b86111bc 100644 --- a/CalamityConfig.cs +++ b/CalamityConfig.cs @@ -205,6 +205,12 @@ namespace CalamityMod #region General Gameplay Changes [Header("$Mods.CalamityMod.Config.SectionTitle.Gameplay")] + [Label("$Mods.CalamityMod.Config.EntryTitle.FasterFallHotkey")] + [BackgroundColor(192, 54, 64, 192)] + [DefaultValue(true)] + [Tooltip("$Mods.CalamityMod.Config.EntryTooltip.FasterFallHotkey")] + public bool FasterFallHotkey { get; set; } + [Label("$Mods.CalamityMod.Config.EntryTitle.RemoveReforgeRNG")] [BackgroundColor(192, 54, 64, 192)] [DefaultValue(true)] @@ -282,13 +288,6 @@ namespace CalamityMod [Tooltip("$Mods.CalamityMod.Config.EntryTooltip.FasterJumpSpeed")] public bool FasterJumpSpeed { get; set; } - - [Label("$Mods.CalamityMod.Config.EntryTitle.FasterFallHotkey")] - [BackgroundColor(192, 54, 64, 192)] - [DefaultValue(true)] - [Tooltip("$Mods.CalamityMod.Config.EntryTooltip.FasterFallHotkey")] - public bool FasterFallHotkey { get; set; } - [Label("$Mods.CalamityMod.Config.EntryTitle.FasterTilePlacement")] [BackgroundColor(192, 54, 64, 192)] [DefaultValue(true)] diff --git a/ILEditing/BalancingILChanges.cs b/ILEditing/BalancingILChanges.cs index 917b73755b..ed6e96b26a 100644 --- a/ILEditing/BalancingILChanges.cs +++ b/ILEditing/BalancingILChanges.cs @@ -166,7 +166,7 @@ namespace CalamityMod.ILEditing cursor.Remove(); // Increase by 10% if the higher jump speed is enabled. - cursor.EmitDelegate>(() => CalamityConfig.Instance.FasterJumpSpeed ? BalancingConstants.ConfigBoostedBaseJumpHeight : VanillaBaseJumpHeight); + cursor.EmitDelegate>(() => CalamityConfig.Instance.HigherJumpHeight ? BalancingConstants.ConfigBoostedBaseJumpHeight : VanillaBaseJumpHeight); } #endregion diff --git a/Localization/en-US.hjson b/Localization/en-US.hjson index 38b656ffae..4b50c08b85 100644 --- a/Localization/en-US.hjson +++ b/Localization/en-US.hjson @@ -30,12 +30,12 @@ Config: "CooldownDisplay": "Cooldown Rack Display Mode", "DebuffDisplay": "Display Enemy Debuffs", "EarlyHardmodeProgressionRework": "Early Hardmode Progression Rework", - "FasterBaseSpeed": "Higher Base Speed", - "FasterFallHotkey": "Faster Fall Acceleration Hotkey", - "FasterJumpSpeed": "Higher Jump Speed", - "FasterTilePlacement": "Faster Base Tile Placement Speed", + "FasterBaseSpeed": "Increase Base Movement Speed", + "FasterFallHotkey": "Enable Fast Falling", + "FasterJumpSpeed": "Increase Base Jump Speed", + "FasterTilePlacement": "Increase Base Building Speed", "ForceTownSafety": "Force Town Safety", - "HigherJumpHeight": "Higher Jump Height", + "HigherJumpHeight": "Increase Base Jump Height", "MeterPosLock": "Lock Meter Positions", "NerfExpertDebuffs": "Remove Increased Debuff Duration", "ParticleLimit": "Max Particle Limit", @@ -76,12 +76,12 @@ Config: "CooldownDisplay": "Adds the Cooldown Rack which displays all important cooldowns right underneath buffs and debuffs.\nSet this to 1 to display the Cooldown Rack in compact mode, and to 0 to hide it entirely.", "DebuffDisplay": "Adds an array of debuff icons above all bosses and minibosses.", "EarlyHardmodeProgressionRework": "Demon Altars no longer spawn ores and crimson/corruption blocks when broken.\nWall of Flesh spawns Cobalt and Palladium ore on first kill.\nThe first mech boss you fight has 20% less HP and damage and spawns Mythril and Orichalcum ore on first kill.\nThe second mech boss you fight has 10% less HP and damage and spawns Adamantite and Titanium ore on first kill.\nThe third mech boss spawns Hallowed Ore on first kill", - "FasterBaseSpeed": "Increases the player's base movement speed", - "FasterFallHotkey": "Pressing down increases the speed at which the player reaches their maximum fall velocity", - "FasterJumpSpeed": "Increases the player's base jump speed", - "FasterTilePlacement": "Increases the player's base tile placement speed", + "FasterBaseSpeed": "Increases the player's base movement speed substantially by always giving them +50% movement speed.\nThis setting does nothing if the mod Terraria Overhaul is loaded.\nCalamity is balanced around this setting being enabled.", + "FasterFallHotkey": "When enabled, you can hold the DOWN key while in the air to accelerate downwards faster.\nThis config does not increase your maximum falling speed, just how quickly you accelerate to it.\nCalamity is balanced around this setting being enabled.", + "FasterJumpSpeed": "Slightly increases the player's base jump speed.\nCalamity is balanced around this setting being enabled.", + "FasterTilePlacement": "Substantially increases how rapidly the player can place tiles and walls.\nThis config stacks with the Brick Layer, Portable Cement Mixer and other accessories.", "ForceTownSafety": "Counteracts Expert and Master Mode allowing enemies to spawn near towns by vastly decreasing spawn rates.\nThis can have unintended side effects such as making critters difficult to find.", - "HigherJumpHeight": "Increases the player's base jump height", + "HigherJumpHeight": "Increases the player's base jump height by 10% so that they can jump 7 tiles.\nCalamity is balanced around this setting being enabled.", "MeterPosLock": "Prevents clicking on the Stealth, Charge, Rage, and Adrenaline Meters.\nThis stops them from being dragged around with the mouse.", "NerfExpertDebuffs": "Disables Expert Mode doubling (and Master Mode tripling) the duration of debuffs on the player.\nCalamity is balanced around this setting being enabled.", "ParticleLimit": "Sets the maximum of particle effects that can exist at once.\nParticles are separate from dust and gores.\nTurn down to improve performance.",