mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 21:10:30 +01:00
15 lines
413 B
Plaintext
15 lines
413 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_FREE_SPACE(reagents))
|
|
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, BP_CHEST) || can_inject(null, 0, BP_GROIN))
|