mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-29 07:36:58 +01:00
Slightly optimise micro bumping
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user