Added Cement Shoes
This commit is contained in:
1 parent
4078650631
commit
96fcb28ffb
3 files changed
+52
-2
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 314 B |
Reference in new issue
Block a user