mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 17:42:26 +00:00
Area-based Jukebox
A jukebox which alters the ambient sound in the current area and plays it with 100% probability. Leaving the area stops the ambient sound. Entering the area resumes playing the ambient sound.
This commit is contained in:
@@ -426,3 +426,10 @@ var/list/intents = list("help","disarm","grab","hurt")
|
||||
var/turf/targetturf = get_turf(M)
|
||||
if((targetturf.z == sourceturf.z))
|
||||
M.show_message("<span class='info'>\icon[icon] [message]</span>", 1)
|
||||
|
||||
/proc/mobs_in_area(var/area/A)
|
||||
var/list/mobs = new
|
||||
for(var/mob/living/M in mob_list)
|
||||
if(get_area(M) == A)
|
||||
mobs += M
|
||||
return mobs
|
||||
|
||||
Reference in New Issue
Block a user