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:
Matt Atlas
2024-02-11 21:58:20 +00:00
committed by GitHub
co-authored by Matt Atlas
parent d57c5e7c43
commit 4423d03f2f
296 changed files with 1317 additions and 1257 deletions
+4 -4
View File
@@ -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)
+3 -3
View File
@@ -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)