mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
boss music fetching length programitcly (#94054)
## About The Pull Request Sound len for boss music is fetched with rustg so we dont have to hardcode length ## Why It's Good For The Game I love code
This commit is contained in:
@@ -12,15 +12,12 @@
|
||||
///List of callback timers, used to clear out mobs listening to boss music after `track_duration`.
|
||||
var/list/music_callbacks = list()
|
||||
|
||||
/datum/component/boss_music/Initialize(
|
||||
boss_track,
|
||||
track_duration,
|
||||
)
|
||||
/datum/component/boss_music/Initialize(boss_track)
|
||||
. = ..()
|
||||
if(!ishostile(parent))
|
||||
return COMPONENT_INCOMPATIBLE
|
||||
src.boss_track = boss_track
|
||||
src.track_duration = track_duration
|
||||
track_duration = SSsounds.get_sound_length(boss_track)
|
||||
|
||||
/datum/component/boss_music/Destroy(force)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user