This commit is contained in:
kevinz000
2020-02-25 14:06:12 -07:00
parent bfb8139225
commit 40c2bdf5ee
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -36,8 +36,7 @@
//procs that handle the actual buckling and unbuckling
/atom/movable/proc/buckle_mob(mob/living/M, force = FALSE, check_loc = TRUE)
if(!buckled_mobs)
buckled_mobs = list()
LAZYINITLIST(buckled_mobs)
if(!istype(M))
return FALSE
+2 -2
View File
@@ -760,7 +760,7 @@ GLOBAL_VAR_INIT(exploit_warn_spam_prevention, 0)
//You can buckle on mobs if you're next to them since most are dense
/mob/buckle_mob(mob/living/M, force = FALSE, check_loc = TRUE)
if(M.buckled)
return 0
return FALSE
var/turf/T = get_turf(src)
if(M.loc != T)
var/old_density = density
@@ -768,7 +768,7 @@ GLOBAL_VAR_INIT(exploit_warn_spam_prevention, 0)
var/can_step = step_towards(M, T)
density = old_density
if(!can_step)
return 0
return FALSE
return ..()
//Default buckling shift visual for mobs