From 09f41b5fe5654e1a577b69b837ab0c7641f41ebc Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Wed, 19 Oct 2022 14:52:09 -0400 Subject: [PATCH] 1. Removed Exo Box go fast button. 2. Fixed Exo Chair Slowdown keybind not unloading --- CalPlayer/CalamityPlayer.cs | 2 -- CalamityKeybinds.cs | 3 +-- Items/Mounts/ExoThrone.cs | 10 ++-------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 61c3691905..51d14969fc 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3312,8 +3312,6 @@ namespace CalamityMod.CalPlayer if (ExoChair) { float speed = DraedonGamerChairMount.MovementSpeed; - if (CalamityKeybinds.ExoChairSpeedupHotkey.Current) - speed *= 2f; if (Player.controlLeft) { diff --git a/CalamityKeybinds.cs b/CalamityKeybinds.cs index f5379ce670..5f7fd17506 100644 --- a/CalamityKeybinds.cs +++ b/CalamityKeybinds.cs @@ -17,7 +17,6 @@ namespace CalamityMod public static ModKeybind PlaguePackHotKey { get; private set; } public static ModKeybind AngelicAllianceHotKey { get; private set; } public static ModKeybind GodSlayerDashHotKey { get; private set; } - public static ModKeybind ExoChairSpeedupHotkey { get; private set; } public static ModKeybind ExoChairSlowdownHotkey { get; private set; } public override void Load() @@ -35,7 +34,6 @@ namespace CalamityMod PlaguePackHotKey = KeybindLoader.RegisterKeybind(Mod, "Booster Dash", "Q"); AngelicAllianceHotKey = KeybindLoader.RegisterKeybind(Mod, "Angelic Alliance Blessing", "G"); GodSlayerDashHotKey = KeybindLoader.RegisterKeybind(Mod, "God Slayer Dash", "H"); - ExoChairSpeedupHotkey = KeybindLoader.RegisterKeybind(Mod, "Exo Chair Speed Up", "LeftShift"); ExoChairSlowdownHotkey = KeybindLoader.RegisterKeybind(Mod, "Exo Chair Slow Down", "RightShift"); } @@ -53,6 +51,7 @@ namespace CalamityMod PlaguePackHotKey = null; AngelicAllianceHotKey = null; GodSlayerDashHotKey = null; + ExoChairSlowdownHotkey = null; } } } diff --git a/Items/Mounts/ExoThrone.cs b/Items/Mounts/ExoThrone.cs index 6815d7a0d0..82f07c2965 100644 --- a/Items/Mounts/ExoThrone.cs +++ b/Items/Mounts/ExoThrone.cs @@ -13,7 +13,6 @@ namespace CalamityMod.Items.Mounts DisplayName.SetDefault("Exo Box"); Tooltip.SetDefault("Materializes a quite cozy and extremely nimble flying Exo throne\n" + "Replaced\n" + - "Also replaced\n" + "A comfortable gamer is a dangerous gamer"); SacrificeTotal = 1; } @@ -34,17 +33,12 @@ namespace CalamityMod.Items.Mounts public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.ExoChairSpeedupHotkey.TooltipHotkeyString(); - string hotkey2 = CalamityKeybinds.ExoChairSlowdownHotkey.TooltipHotkeyString(); + string hotkey = CalamityKeybinds.ExoChairSlowdownHotkey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1"); - TooltipLine line2 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2"); if (line != null) - line.Text = $"Hold {hotkey} while sitting in the throne to move much faster"; - - if (line2 != null) - line2.Text = $"And hold {hotkey2} to move much slower"; + line.Text = $"Hold {hotkey} while sitting in the throne to move slower for more precision"; } } }