mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 00:21:11 +01:00
Adds examine boxes. (#18370)
* Adds examine boxes. * lint * what kind of dreams did you dream? * unlimited * midgardsormr * sdsd * fixes --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -248,16 +248,16 @@
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/vehicle/train/cargo/engine/examine(mob/user, distance)
|
||||
/obj/vehicle/train/cargo/engine/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
if(distance > 1)
|
||||
return
|
||||
|
||||
if(!istype(usr, /mob/living/carbon/human))
|
||||
if(!ishuman(user))
|
||||
return
|
||||
|
||||
to_chat(user, "The power light is [on ? "on" : "off"].\nThere are[key ? "" : " no"] keys in the ignition.")
|
||||
to_chat(user, "The charge meter reads [cell? round(cell.percent(), 0.01) : 0]%")
|
||||
. += "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]%."
|
||||
|
||||
/obj/vehicle/train/cargo/engine/CtrlClick(mob/user)
|
||||
if(load && load != user)
|
||||
|
||||
@@ -28,12 +28,12 @@
|
||||
for(var/obj/vehicle/train/T in orange(1, src))
|
||||
latch(T)
|
||||
|
||||
/obj/vehicle/train/examine(mob/user)
|
||||
/obj/vehicle/train/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
if(lead)
|
||||
to_chat(user, SPAN_NOTICE("It is being towed by \the [lead] in the [dir2text(get_dir(src, lead))]."))
|
||||
. += SPAN_NOTICE("It is being towed by \the [lead] in the [dir2text(get_dir(src, lead))].")
|
||||
if(tow)
|
||||
to_chat(user, SPAN_NOTICE("It towing \the [tow] in the [dir2text(get_dir(src, tow))]."))
|
||||
. += SPAN_NOTICE("It towing \the [tow] in the [dir2text(get_dir(src, tow))].")
|
||||
|
||||
/obj/vehicle/train/Move()
|
||||
var/old_loc = get_turf(src)
|
||||
|
||||
Reference in New Issue
Block a user