upload files
This commit is contained in:
@@ -378,7 +378,7 @@ a creative player the means to solve many problems. Circuits are held inside an
|
||||
|
||||
|
||||
// Checks if the target object is reachable. Useful for various manipulators and manipulator-like objects.
|
||||
/obj/item/integrated_circuit/proc/check_target(atom/target, exclude_contents = FALSE, exclude_components = FALSE, exclude_self = FALSE)
|
||||
/obj/item/integrated_circuit/proc/check_target(atom/target, exclude_contents = FALSE, exclude_components = FALSE, exclude_self = FALSE, exclude_outside = FALSE)
|
||||
if(!target)
|
||||
return FALSE
|
||||
|
||||
@@ -394,7 +394,7 @@ a creative player the means to solve many problems. Circuits are held inside an
|
||||
if(target == assembly.battery)
|
||||
return FALSE
|
||||
|
||||
if(target.Adjacent(acting_object) && isturf(target.loc))
|
||||
if(!exclude_outside && target.Adjacent(acting_object) && isturf(target.loc))
|
||||
return TRUE
|
||||
|
||||
if(!exclude_contents && (target in acting_object.GetAllContents()))
|
||||
|
||||
Reference in New Issue
Block a user