mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-15 02:03:05 +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:
@@ -164,7 +164,7 @@
|
||||
icon_state = "sensors_off"
|
||||
..()
|
||||
|
||||
/obj/machinery/shipsensors/examine(mob/user)
|
||||
/obj/machinery/shipsensors/examine(mob/user, distance, infix, suffix)
|
||||
. = ..()
|
||||
if(health <= 0)
|
||||
. += "<span class='danger'>It is wrecked.</span>"
|
||||
@@ -226,4 +226,4 @@
|
||||
|
||||
/obj/machinery/shipsensors/weak
|
||||
heat_reduction = 0.2
|
||||
desc = "Miniaturized gravity scanner with various other sensors, used to detect irregularities in surrounding space. Can only run in vacuum to protect delicate quantum bluespace elements."
|
||||
desc = "Miniaturized gravity scanner with various other sensors, used to detect irregularities in surrounding space. Can only run in vacuum to protect delicate quantum bluespace elements."
|
||||
|
||||
Reference in New Issue
Block a user