mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-04 14:33:10 +00:00
Ports Polaris' integrated electronics system, whichallows for Roboticists & Electricians/Engineers to build custom devices and machines for a variety of purposes.
15 lines
407 B
Plaintext
15 lines
407 B
Plaintext
/atom/movable/proc/can_be_injected_by(var/atom/injector)
|
|
if(!Adjacent(get_turf(injector)))
|
|
return FALSE
|
|
if(!reagents)
|
|
return FALSE
|
|
if(!reagents.get_free_space())
|
|
return FALSE
|
|
return TRUE
|
|
|
|
/obj/can_be_injected_by(var/atom/injector)
|
|
return is_open_container() && ..()
|
|
|
|
/mob/living/can_be_injected_by(var/atom/injector)
|
|
return ..() && (can_inject(null, 0, "chest") || can_inject(null, 0, "groin"))
|