Skip to content

Commit

Permalink
Climbable range fix (tgstation#84763)
Browse files Browse the repository at this point in the history
## About The Pull Request
Closes tgstation#84751

## Changelog
:cl:
fix: Fixed tables and racks being climbable from half a mile away
/:cl:
  • Loading branch information
SmArtKar authored Jul 12, 2024
1 parent e57aebe commit 03fd65c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/datums/elements/climbable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
examine_texts += span_notice("[source] looks climbable.")

/datum/element/climbable/proc/can_climb(atom/source, mob/user)
if (!user.CanReach(source))
return FALSE
var/dir_step = get_dir(user, source.loc)
//To jump over a railing you have to be standing next to it, not far behind it.
if(source.flags_1 & ON_BORDER_1 && user.loc != source.loc && (dir_step & source.dir) == source.dir)
Expand Down

0 comments on commit 03fd65c

Please sign in to comment.