mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-17 13:42:44 +00:00
Adds ability to have pins initialize with data. Adds helper for reagent moving. Other fixes.
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)) |