Added link to examine shown item.

Removed grab handler because it's an abstract item.
This commit is contained in:
Chinsky
2013-12-25 02:44:42 +04:00
parent ddcc5386eb
commit ab727aef11
2 changed files with 12 additions and 6 deletions
+4 -6
View File
@@ -592,16 +592,14 @@
A.blood_overlay = I
/obj/item/proc/showoff(mob/user)
user.custom_emote(message = "[user] holds up [src]")
/obj/item/weapon/grab/showoff(mob/user)
user.custom_emote(message = "[user] nods at [affecting]")
for (var/mob/M in view(user))
M.show_message("[user] holds up [src]. <a HREF=?src=\ref[M];lookitem=\ref[src]>Take a closer look.</a>",1)
/mob/living/carbon/verb/showoff()
set name = "Show item"
set name = "Show Held Item"
set category = "Object"
var/obj/item/I = get_active_hand()
if(I && I.abstract)
if(I && !I.abstract)
I.showoff(src)
@@ -776,6 +776,14 @@
if(istype(usr,/mob/living/silicon/robot))
var/mob/living/silicon/robot/U = usr
R.fields[text("com_[counter]")] = text("Made by [U.name] ([U.modtype] [U.braintype]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], [game_year]<BR>[t1]")
if (href_list["lookitem"])
var/obj/item/I = locate(href_list["lookitem"])
I.examine()
if (href_list["lookmob"])
var/mob/M = locate(href_list["lookmob"])
M.examine()
..()
return