2 spring stool fixes

This commit is contained in:
Nathanael Overton committed 2026-06-05 14:00:37 -04:00
1 parent 038c7ee4a8
commit c219cea2d4
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
private Asset<Texture2D> springTexture;
private Asset<Texture2D> topTexture;
public override Position GetDefaultPosition() => new BeforeParent(PlayerDrawLayers.Leggings);
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.PortableStool);
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
{
+2 -1
View File
@@ -96,8 +96,9 @@ namespace CalamityMod.Items.Accessories
{
bool holdingUp = Player.controlUp;
bool standingStill = Player.velocity.Y == 0 && Math.Abs(Player.velocity.X) < 0.1f;
bool highEnoughCeiling = !Collision.SolidCollision(new Vector2(Player.position.X, Player.position.Y - 64), Player.width, 64);
if (holdingUp && standingStill && !Player.mount.Active)
if (holdingUp && standingStill && highEnoughCeiling && !Player.mount.Active)
{
int boost = 61;
if (IsVanillaStoolEquipped(Player))