Fixes AIs removing beakers from IV Drips

Thanks to Krausus for the general idea on how to do this without adding
an exception just for the AI.

- AIs can no longer interact with IV Drips (unless their core is
literally adjacent to it);
- Human mobs and Robotics can still interact with IV Drips (robots can
no longer interact with them at a distance

🆑
tweak: AI can no longer interact with IV Drips at a distance
tweak: Robots can no longer interact with IV Drips at a distance
/🆑
This commit is contained in:
TullyBurnalot
2016-07-06 19:40:56 +01:00
parent 1bdc353dff
commit c335840cfd

View File

@@ -132,6 +132,8 @@
update_icon()
/obj/machinery/iv_drip/attack_hand(mob/user as mob)
if((get_dist(src, user) > 1))
return //stops the AI from removing beakers, still allows borgs
if(src.beaker)
src.beaker.loc = get_turf(src)
src.beaker = null