Slightly optimise micro bumping

This commit is contained in:
Elizabeth Lavenza
2024-04-01 11:33:31 -04:00
parent d65232554d
commit f3df171cb0
+4 -8
View File
@@ -7,10 +7,8 @@
return FALSE
//Micro is on a table.
var/turf/steppyspot = target.loc
for(var/thing in steppyspot.contents)
if(istype(thing, /obj/structure/table))
return TRUE
if(locate(/obj/structure/table) in target.loc)
return TRUE
//Both small.
if(get_size(user) <= RESIZE_A_TINYMICRO && get_size(target) <= RESIZE_A_TINYMICRO)
@@ -48,10 +46,8 @@
return FALSE
//If on a table, don't
var/turf/steppyspot = target.loc
for(var/thing in steppyspot.contents)
if(istype(thing, /obj/structure/table))
return TRUE
if(locate(/obj/structure/table) in target.loc)
return TRUE
//Both small
if(get_size(user) <= RESIZE_A_TINYMICRO && get_size(target) <= RESIZE_A_TINYMICRO)