examine signature changed to include distance

- distance is INFINITE, 0, or a positive integer based on get_dist() between
the examiner and examinee's turfs when they are on the same Z. When the
examiner is dead or a ghost, distance is always 0.
- also updates /examine( implementations to use it!
- adds w_class_to_name proc for reusing "It is a X item." examine behavior.
This commit is contained in:
Spookerton
2024-01-31 13:49:52 +00:00
parent e3393dc87b
commit 978f4511a5
240 changed files with 524 additions and 551 deletions
+2 -2
View File
@@ -62,9 +62,9 @@ var/global/list/obj/item/pda/PDAs = list()
var/list/notifying_programs = list()
var/retro_mode = 0
/obj/item/pda/examine(mob/user)
/obj/item/pda/examine(mob/user, distance, infix, suffix)
. = ..()
if(Adjacent(user))
if(distance < 2)
. += "The time [stationtime2text()] is displayed in the corner of the screen."
/obj/item/pda/CtrlClick()