mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
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:
@@ -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>")
|
||||
|
||||
@@ -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 ..()
|
||||
|
||||
Reference in New Issue
Block a user