mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fixes structure climbing
This commit is contained in:
@@ -78,8 +78,8 @@
|
|||||||
else
|
else
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
/obj/structure/proc/can_climb(var/mob/living/user)
|
/obj/structure/proc/can_climb(var/mob/living/user, post_climb_check=0)
|
||||||
if (!can_touch(user) || !climbable || (user in climbers))
|
if (!can_touch(user) || !climbable || (!post_climb_check && (user in climbers)))
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
if (!user.Adjacent(src))
|
if (!user.Adjacent(src))
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
climbers -= user
|
climbers -= user
|
||||||
return
|
return
|
||||||
|
|
||||||
if (!can_climb(user))
|
if (!can_climb(user, post_climb_check=1))
|
||||||
climbers -= user
|
climbers -= user
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user