Makes stairs function as before

Video: https://i.imgur.com/EvqCQux.gifv
This commit is contained in:
killer653
2017-11-12 01:15:33 -05:00
parent b1ce51c2b3
commit 3e2cf7c9b7

View File

@@ -1,6 +1,14 @@
/mob/living/handle_fall(var/turf/landing)
var/mob/drop_mob= locate(/mob, loc)
if(locate(/obj/structure/stairs) in landing)
for(var/atom/A in landing)
if(!A.CanPass(src, src.loc, 1, 0))
return FALSE
Move(landing)
return 1
if(drop_mob && drop_mob != src && ismob(drop_mob)) //Shitload of checks. This is because the game finds various ways to screw me over.
drop_mob.fall_impact(src)