mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
14 lines
408 B
Plaintext
14 lines
408 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, BP_TORSO) || can_inject(null, 0, BP_GROIN)) |