Merge pull request #15103 from SandPoot/cyborg-grippers

Does some nice stuff on cyborg grippers
This commit is contained in:
silicons
2021-09-09 17:59:47 -07:00
committed by GitHub
5 changed files with 133 additions and 34 deletions
+6
View File
@@ -568,6 +568,12 @@ GLOBAL_VAR_INIT(embedpocalypse, FALSE) // if true, all items will be able to emb
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))
return
if(usr.get_active_held_item() == null) // Let me know if this has any problems -Yota
usr.UnarmedAttack(src)