This commit is contained in:
SandPoot
2023-07-26 17:28:29 -03:00
parent 6f675fbf7d
commit ebd9cedbfb
+3 -6
View File
@@ -588,17 +588,14 @@ GLOBAL_VAR_INIT(embedpocalypse, FALSE) // if true, all items will be able to emb
set category = "Object"
set name = "Pick up"
if(usr.incapacitated() || !Adjacent(usr) || usr.lying)
return
if(iscyborg(usr))
var/obj/item/gripper/gripper = usr.get_active_held_item(TRUE)
if(istype(gripper))
gripper.pre_attack(src, usr, get_dist(src, usr))
if(istype(gripper) && !gripper.wrapped)
usr.ClickOn(src)
return
if(usr.get_active_held_item() == null) // Let me know if this has any problems -Yota
usr.UnarmedAttack(src)
usr.ClickOn(src)
//This proc is executed when someone clicks the on-screen UI button.
//The default action is attack_self().