buffs jukeboxes - makes jukebox sounds have double the falloff (#7458)

This commit is contained in:
deathride58
2018-08-15 02:07:22 -04:00
committed by kevinz000
parent 845838d2b2
commit faa2b39ca2
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -18,14 +18,14 @@ SUBSYSTEM_DEF(jukeboxes)
song_beat = beat
song_associated_id = assocID
/datum/controller/subsystem/jukeboxes/proc/addjukebox(obj/jukebox, datum/track/T)
/datum/controller/subsystem/jukeboxes/proc/addjukebox(obj/jukebox, datum/track/T, jukefalloff = 1)
if(!istype(T))
CRASH("[src] tried to play a song with a nonexistant track")
var/channeltoreserve = CHANNEL_JUKEBOX_START + activejukeboxes.len - 1
if(channeltoreserve > CHANNEL_JUKEBOX)
return FALSE
activejukeboxes.len++
activejukeboxes[activejukeboxes.len] = list(T, channeltoreserve, jukebox)
activejukeboxes[activejukeboxes.len] = list(T, channeltoreserve, jukebox, jukefalloff)
return activejukeboxes.len
/datum/controller/subsystem/jukeboxes/proc/removejukebox(IDtoremove)
@@ -78,6 +78,8 @@ SUBSYSTEM_DEF(jukeboxes)
var/turf/currentturf = get_turf(jukebox)
var/list/hearerscache = hearers(7, jukebox)
song_played.falloff = jukeinfo[4]
for(var/mob/M in GLOB.player_list)
if(!M.client)
continue
+1 -1
View File
@@ -121,7 +121,7 @@
updateUsrDialog()
/obj/machinery/jukebox/proc/activate_music()
var/jukeboxslottotake = SSjukeboxes.addjukebox(src, selection)
var/jukeboxslottotake = SSjukeboxes.addjukebox(src, selection, 2)
if(jukeboxslottotake)
active = TRUE
update_icon()