Skip to content

Commit

Permalink
Boss music for non-wave guardians (#9964)
Browse files Browse the repository at this point in the history
* why do I hear guardian music

* Update contributors

* format

* switch up

* switch up

* why

* no traces left behind
  • Loading branch information
BlueTheCube committed Jun 20, 2024
1 parent 5376ea1 commit 93d2f60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/assets/contributors
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,4 @@ Redstonneur1256
ApsZoldat
hexagon-recursion
JasonP01
BlueTheCube
4 changes: 3 additions & 1 deletion core/src/mindustry/audio/SoundControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ protected void updateLoops(){

/** 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));
Expand Down

0 comments on commit 93d2f60

Please sign in to comment.