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:
FalloutFalcon
2025-11-22 17:33:57 +01:00
committed by GitHub
parent c306b54452
commit 2f8e182546
4 changed files with 5 additions and 8 deletions
+2 -5
View File
@@ -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)
. = ..()