Skip to content

Commit

Permalink
Makes the designation of a tunnel display in chat when entered (#5315)
Browse files Browse the repository at this point in the history
# About the pull request

Makes the designation of a tunnel display in chat when a player enters
it.

# Explain why it's good for the game

I've quite often gone through a tunnel to drop a capture off at the
hive, and then had no idea which tunnel to select in order to get back.
It is possible to examine a tunnel before you go through it to see its
name, but this just streamlines the whole process.

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

**Before:**

![before](https://github.com/cmss13-devs/cmss13/assets/57483089/de1a4a73-0d39-456a-a7fd-b0ddf401dc4f)

**After:**

![after](https://github.com/cmss13-devs/cmss13/assets/57483089/75d139eb-5ea2-41b1-a003-e42b52d08ecd)

</details>


# Changelog
:cl:
qol: Made the designation of a tunnel display in chat when a player
enters it.
/:cl:
  • Loading branch information
SabreML authored Dec 29, 2023
1 parent 7479788 commit 95b52c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/modules/cm_aliens/structures/tunnel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
return XENO_NO_DELAY_ACTION

if(!hive.tunnels.len)
to_chat(M, SPAN_WARNING("\The [src] doesn't seem to lead anywhere."))
to_chat(M, SPAN_WARNING("[src] doesn't seem to lead anywhere."))
return XENO_NO_DELAY_ACTION

if(contents.len > 2)
Expand All @@ -236,11 +236,11 @@
tunnel_time = TUNNEL_ENTER_LARVA_DELAY

if(M.mob_size >= MOB_SIZE_BIG)
M.visible_message(SPAN_XENONOTICE("[M] begins heaving their huge bulk down into \the [src]."), \
SPAN_XENONOTICE("We begin heaving our monstrous bulk into \the [src]</b>."))
M.visible_message(SPAN_XENONOTICE("[M] begins heaving their huge bulk down into [src]."),
SPAN_XENONOTICE("We begin heaving our monstrous bulk into [src] (<i>[tunnel_desc]</i>)."))
else
M.visible_message(SPAN_XENONOTICE("\The [M] begins crawling down into \the [src]."), \
SPAN_XENONOTICE("We begin crawling down into \the [src]</b>."))
M.visible_message(SPAN_XENONOTICE("[M] begins crawling down into [src]."),
SPAN_XENONOTICE("We begin crawling down into [src] (<i>[tunnel_desc]</i>)."))

xeno_attack_delay(M)
if(!do_after(M, tunnel_time, INTERRUPT_NO_NEEDHAND, BUSY_ICON_GENERIC))
Expand All @@ -252,7 +252,7 @@
to_chat(M, SPAN_HIGHDANGER("Alt + Click the tunnel to exit, Ctrl + Click to choose a destination."))
pick_tunnel(M)
else
to_chat(M, SPAN_WARNING("\The [src] ended unexpectedly, so we return back up."))
to_chat(M, SPAN_WARNING("[src] ended unexpectedly, so we return back up."))
return XENO_NO_DELAY_ACTION

/obj/structure/tunnel/maint_tunnel
Expand Down

0 comments on commit 95b52c8

Please sign in to comment.