Borgs can now dispense stuff from the tank storage unit, as well as open/close morgue trays (#23531)

* Cyborg Morgue

* Cyborg TSU
This commit is contained in:
Daylight
2024-01-09 14:49:37 +02:00
committed by GitHub
parent bcceb23560
commit b120ca156e
2 changed files with 8 additions and 16 deletions
+4 -16
View File
@@ -152,6 +152,10 @@
update_state()
return
/obj/structure/morgue/attack_ai(mob/user)
if(isrobot(user) && Adjacent(user)) //Robots can open/close it, but not the AI
attack_hand(user)
/obj/structure/morgue/attack_animal(mob/living/user)
if(user.a_intent == INTENT_HARM)
return ..()
@@ -266,22 +270,6 @@
qdel(src)
return
/obj/structure/m_tray/attack_animal(mob/living/user)
if(user.a_intent == INTENT_HARM)
return ..()
if(user.mob_size < MOB_SIZE_HUMAN)
return ..()
if(!user.mind) //Stops mindless mobs from doing weird stuff with them
return ..()
attack_hand(user)
/obj/structure/m_tray/attack_alien(mob/user)
if(user.a_intent == INTENT_HARM)
return ..()
if(!user.mind)
return ..()
attack_hand(user)
/obj/structure/m_tray/MouseDrop_T(atom/movable/O, mob/living/user)
if((!(istype(O, /atom/movable)) || O.anchored || get_dist(user, src) > 1 || get_dist(user, O) > 1 || user.contents.Find(src) || user.contents.Find(O)))
return
@@ -59,6 +59,10 @@
add_fingerprint(user)
ui_interact(user)
/obj/structure/dispenser/attack_ai(mob/user)
if(isrobot(user) && Adjacent(user)) //Robots can use it, but not the AI
attack_hand(user)
/obj/structure/dispenser/attack_ghost(mob/user)
ui_interact(user)