More Circuit Ports by Psi

Adds ability to have pins initialize with data.
Adds helper for reagent moving.
Other fixes.
This commit is contained in:
Neerti
2016-09-29 23:49:34 -04:00
parent 922e1b7105
commit 2ddaf04226
5 changed files with 40 additions and 39 deletions
@@ -0,0 +1,14 @@
/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))