mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-07-19 19:12:31 +01:00
Added link to examine shown item.
Removed grab handler because it's an abstract item.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user