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:
PsiOmega
2014-10-29 00:14:20 +01:00
parent fd0ab349bd
commit 9adb94ff55
7 changed files with 251 additions and 7 deletions

View File

@@ -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