diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 7921596c37..d2d94c24f6 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -123,6 +123,7 @@ namespace CalamityMod.CalPlayer public bool brimlashBusterBoost = false; public float animusBoost = 1f; public int potionTimer = 0; + public bool cementShoes = false; #endregion public int CurrentlyViewedFactoryX = -1; @@ -1470,6 +1471,8 @@ namespace CalamityMod.CalPlayer dsSetBonus = false; wearingRogueArmor = false; + cementShoes = false; + kingSlimeLore = false; desertScourgeLore = false; crabulonLore = false; @@ -3679,7 +3682,7 @@ namespace CalamityMod.CalPlayer if (weakPetrification) WeakPetrification(); - if (player.mount.Active || player.mount.Cart || (CalamityConfig.Instance.BossRushDashCurse && CalamityWorld.bossRushActive)) + if (player.mount.Active || player.mount.Cart || cementShoes || (CalamityConfig.Instance.BossRushDashCurse && CalamityWorld.bossRushActive)) DashExploitFix(true); if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) @@ -3705,7 +3708,7 @@ namespace CalamityMod.CalPlayer if (weakPetrification) WeakPetrification(); - if (player.mount.Active || player.mount.Cart || (CalamityConfig.Instance.BossRushDashCurse && CalamityWorld.bossRushActive)) + if (player.mount.Active || player.mount.Cart || cementShoes || (CalamityConfig.Instance.BossRushDashCurse && CalamityWorld.bossRushActive)) DashExploitFix(true); if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) diff --git a/Items/Tools/CementShoes.cs b/Items/Tools/CementShoes.cs new file mode 100644 index 0000000000..137473f4af --- /dev/null +++ b/Items/Tools/CementShoes.cs @@ -0,0 +1,47 @@ +using CalamityMod.CalPlayer; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Tools +{ + public class CementShoes : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Cement Shoes"); + Tooltip.SetDefault("So heavy...\n" + + "Favorite this item to disable all dashing."); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.rare = 1; + item.consumable = false; + } + + public override bool CanUseItem(Player player) + { + return false; + } + + public override void UpdateInventory(Player player) + { + CalamityPlayer modPlayer = player.Calamity(); + if (item.favorited) + modPlayer.cementShoes = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddRecipeGroup("SiltGroup", 20); + recipe.AddIngredient(ItemID.Stone, 20); + recipe.AddTile(TileID.Furnaces); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Tools/CementShoes.png b/Items/Tools/CementShoes.png new file mode 100644 index 0000000000..677772c60e Binary files /dev/null and b/Items/Tools/CementShoes.png differ