Fixes OM sounds and allows GPS to track OM planets. (#8380)

This commit is contained in:
tacoguy7765093
2024-05-12 09:27:58 -05:00
committed by GitHub
parent e68991724c
commit c21ee2ddb4
3 changed files with 50 additions and 33 deletions

View File

@@ -4,3 +4,10 @@
for(var/mob/potential_mob as anything in player_list)
if(potential_mob.z in enterer.map_z)
SEND_SOUND(potential_mob, 'sound/ambience/approaching_planet.ogg')
/obj/effect/overmap/visitable/planet/Crossed(var/obj/effect/overmap/visitable/ship/enterer) //CHOMPedit, lazy copy-paste
. = ..()
if(istype(enterer))
for(var/mob/potential_mob as anything in player_list)
if(potential_mob.z in enterer.map_z)
SEND_SOUND(potential_mob, 'sound/ambience/approaching_planet.ogg')

View File

@@ -44,7 +44,9 @@ GLOBAL_LIST_EMPTY(all_waypoints)
/obj/machinery/computer/ship/helm/proc/get_known_sectors()
var/area/overmap/map = locate() in world
for(var/obj/effect/overmap/visitable/sector/S in map)
for(var/obj/effect/overmap/visitable/S in map)
if(!istype(S,/obj/effect/overmap/visitable/sector) && !istype(S,/obj/effect/overmap/visitable/planet)) //CHOMPedit, let planets also be favorited via GPS
continue //chompedit end
if(S.known)
var/datum/computer_file/data/waypoint/R = new()
R.fields["name"] = S.name