Tables behave better for flipping purposes

This commit is contained in:
Aronai Sieyes
2021-07-27 19:59:29 -04:00
parent 9ee28de20e
commit 8e4f05baed
4 changed files with 25 additions and 14 deletions
+7 -2
View File
@@ -89,7 +89,9 @@
/obj/structure/proc/turf_is_crowded()
var/turf/T = get_turf(src)
if(!T || !istype(T))
return 0
return "empty void"
if(T.density)
return T
for(var/obj/O in T.contents)
if(istype(O,/obj/structure))
var/obj/structure/S = O
@@ -113,12 +115,15 @@
LAZYREMOVE(climbers, user)
return
usr.forceMove(get_turf(src))
usr.forceMove(climb_to(user))
if (get_turf(user) == get_turf(src))
usr.visible_message("<span class='warning'>[user] climbs onto \the [src]!</span>")
LAZYREMOVE(climbers, user)
/obj/structure/proc/climb_to(var/mob/living/user)
return get_turf(src)
/obj/structure/proc/structure_shaken()
for(var/mob/living/M in climbers)
M.Weaken(1)