mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-05 23:21:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user