gripper shows information on examine for robots (#17898)

This commit is contained in:
Will
2025-06-21 21:47:14 -04:00
committed by GitHub
parent 2033cdfd9a
commit e2fd72dbdb
+11 -1
View File
@@ -196,8 +196,18 @@
else
f_name += "oil-stained [name][infix]."
var/borg = "" // Borg grippers say if the item can be gripped
if(isrobot(user) && isitem(src))
borg = "None of your grippers can hold this."
var/mob/living/silicon/robot/R = user
if(R.module?.modules)
for(var/obj/item/gripper/G in R.module.modules)
if(is_type_in_list(src,G.can_hold))
borg = span_boldnotice("\The [G]") + span_notice(" can hold this.")
break
var/examine_text = replacetext(get_examine_desc(), "||", "")
var/list/output = list("[icon2html(src,user.client)] That's [f_name] [suffix]", examine_text)
var/list/output = list("[icon2html(src,user.client)] That's [f_name] [suffix] [borg]", examine_text)
SEND_SIGNAL(src, COMSIG_PARENT_EXAMINE, user, output)
return output