mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-29 08:09:34 +01:00
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:
@@ -195,9 +195,9 @@
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/vehicle/train/engine/examine(mob/user)
|
||||
/obj/vehicle/train/engine/examine(mob/user, distance, infix, suffix)
|
||||
. = ..()
|
||||
if(ishuman(user) && Adjacent(user))
|
||||
if(distance < 2 && ishuman(user))
|
||||
. += "The power light is [on ? "on" : "off"].\nThere are[key ? "" : " no"] keys in the ignition."
|
||||
. += "The charge meter reads [cell? round(cell.percent(), 0.01) : 0]%"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user