mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Makes stairs function as before
Video: https://i.imgur.com/EvqCQux.gifv
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user