mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-29 16:18:35 +01:00
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:
@@ -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))
|
||||
Reference in New Issue
Block a user