mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 10:34:10 +01:00
gripper shows information on examine for robots (#17898)
This commit is contained in:
+11
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user