From 34f81cbf435ef32f1d5eba981da7e243641b8651 Mon Sep 17 00:00:00 2001 From: Geeves Date: Wed, 28 Oct 2020 19:12:02 +0200 Subject: [PATCH] Trolley Examine (#10359) --- code/modules/vehicles/train.dm | 7 +++++++ html/changelogs/geeves-trolley_examine.yml | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 html/changelogs/geeves-trolley_examine.yml diff --git a/code/modules/vehicles/train.dm b/code/modules/vehicles/train.dm index 8ad2bcaa21d..63d1a30d202 100644 --- a/code/modules/vehicles/train.dm +++ b/code/modules/vehicles/train.dm @@ -28,6 +28,13 @@ for(var/obj/vehicle/train/T in orange(1, src)) latch(T) +/obj/vehicle/train/examine(mob/user) + . = ..() + if(lead) + to_chat(user, 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))].")) + /obj/vehicle/train/Move() var/old_loc = get_turf(src) if(..()) diff --git a/html/changelogs/geeves-trolley_examine.yml b/html/changelogs/geeves-trolley_examine.yml new file mode 100644 index 00000000000..fa9c301db20 --- /dev/null +++ b/html/changelogs/geeves-trolley_examine.yml @@ -0,0 +1,6 @@ +author: Geeves + +delete-after: True + +changes: + - rscadd: "Examining trolleys and engines will now tell you whether they're being towed, or towing something, and what exactly those are."