GPSes now show the general direction of crosslinked z-levels (#87437)

## About The Pull Request

This makes the GPS UI give the general direction of a GPS on a different
linked z-level.


https://github.com/user-attachments/assets/98c6dfd8-5ced-4145-b14a-3813821ef30c


## Why It's Good For The Game

Makes navigating through space less of a chore, as previously, I believe
the only way was to manually write down or memorize what direction was
linked to what z-level.

## Changelog
🆑
add: GPSes now show the general direction of cross-linked z-levels.
/🆑
This commit is contained in:
Lucy
2024-10-26 09:41:34 -04:00
committed by GitHub
parent ec9dfd5980
commit 57cc38c789
4 changed files with 50 additions and 9 deletions
@@ -37,7 +37,9 @@
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_NEW_Z, S)
return S
/datum/controller/subsystem/mapping/proc/get_level(z)
if (z_list && z >= 1 && z <= z_list.len)
/// Returns the /datum/space_level associated with the given z level.
/datum/controller/subsystem/mapping/proc/get_level(z) as /datum/space_level
RETURN_TYPE(/datum/space_level)
if(ISINRANGE(z, 1, length(z_list)))
return z_list[z]
CRASH("Unmanaged z-level [z]! maxz = [world.maxz], z_list.len = [z_list ? z_list.len : "null"]")