Allow the cyborgs to place objects on tables and in closets using the gripper (#29893)

* Add exception if item is in gripper

* Add transformation from list to params, for corret work of melee_attack_chain function
This commit is contained in:
Aleksandr Sakrukin
2025-08-10 14:55:35 +00:00
committed by GitHub
parent 5a8606a0fd
commit ace1fa8c24
3 changed files with 4 additions and 4 deletions
@@ -301,7 +301,7 @@
return FALSE
if(user.a_intent != INTENT_HELP) // Stops you from putting your baton in the closet on accident
return
if(isrobot(user))
if(isrobot(user) && !istype(W.loc, /obj/item/gripper))
return
if(!user.drop_item()) //couldn't drop the item
to_chat(user, "<span class='notice'>\The [W] is stuck to your hand, you cannot put it in \the [src]!</span>")
+2 -2
View File
@@ -232,7 +232,7 @@
tablepush(I, user)
return
if(isrobot(user))
if(isrobot(user) && !istype(I.loc, /obj/item/gripper))
return
if(user.a_intent == INTENT_HELP && !(I.flags & ABSTRACT))
@@ -945,7 +945,7 @@
return TRUE
/obj/structure/rack/attackby__legacy__attackchain(obj/item/W, mob/user, params)
if(isrobot(user))
if(isrobot(user) && !istype(W.loc, /obj/item/gripper))
return
if(user.a_intent == INTENT_HARM)
return ..()