Boss music for non-wave guardians (#9964)

* why do I hear guardian music

* Update contributors

* format

* switch up

* switch up

* why

* no traces left behind
This commit is contained in:
Cubical box 2024-06-20 22:50:01 +08:00 committed by GitHub
parent 5376ea1f17
commit 93d2f60b56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -167,3 +167,4 @@ Redstonneur1256
ApsZoldat
hexagon-recursion
JasonP01
BlueTheCube

View File

@ -213,7 +213,9 @@ public class SoundControl{
/** Plays a random track.*/
public void playRandom(){
if(isDark()){
if(state.boss() != null){
playOnce(bossMusic.random(lastRandomPlayed));
}else if(isDark()){
playOnce(darkMusic.random(lastRandomPlayed));
}else{
playOnce(ambientMusic.random(lastRandomPlayed));