diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 6900a2e030..63c309bb0b 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -201,6 +201,7 @@ its easier to just keep the beam vertical. f_name += "oil-stained [name][infix]." user << "\icon[src] That's [f_name] [suffix]" + user << desc return distance == -1 || (get_dist(src, user) <= distance) diff --git a/code/modules/examine/examine.dm b/code/modules/examine/examine.dm index 6f797f5cb9..3f15fa22d4 100644 --- a/code/modules/examine/examine.dm +++ b/code/modules/examine/examine.dm @@ -40,18 +40,17 @@ /client/var/description_holders[0] -/client/proc/update_description_holders(atom/A) +/client/proc/update_description_holders(atom/A, update_antag_info=0) description_holders["info"] = A.get_description_info() description_holders["fluff"] = A.get_description_fluff() - if(mob.mind && mob.mind.special_role || isobserver(src)) //ghosts don't have minds. - description_holders["antag"] = A.get_description_antag() + description_holders["antag"] = (update_antag_info)? A.get_description_antag() : "" description_holders["name"] = "[A.name]" description_holders["icon"] = "\icon[A]" description_holders["desc"] = A.desc /client/Stat() - ..() + . = ..() if(statpanel("Examine")) stat(null,"[description_holders["icon"]] [description_holders["name"]]") //The name, written in big letters. stat(null,"[description_holders["desc"]]") //the default examine text. @@ -60,4 +59,13 @@ if(description_holders["fluff"]) stat(null,"[description_holders["fluff"]]") //Yellow, fluff-related text. if(description_holders["antag"]) - stat(null,"[description_holders["antag"]]") //Red, malicious antag-related text \ No newline at end of file + stat(null,"[description_holders["antag"]]") //Red, malicious antag-related text + +//override examinate verb to update description holders when things are examined +/mob/examinate(atom/A as mob|obj|turf in view()) + if(..()) + return 1 + + var/is_antag = ((mind && mind.special_role) || isobserver(src)) //ghosts don't have minds + if(client) + client.update_description_holders(A, is_antag) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index c3e5fbf90b..16ff11ea9b 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -228,13 +228,10 @@ var/list/slot_equipment_priority = list( \ if((is_blind(src) || usr.stat) && !isobserver(src)) src << "Something is there but you can't see it." - return + return 1 face_atom(A) A.examine(src) - - if(client) - client.update_description_holders(A) /mob/verb/pointed(atom/A as mob|obj|turf in view()) set name = "Point To"