mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Fixes OM sounds and allows GPS to track OM planets. (#8380)
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user