forked from akanyan/mu3-mods
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			617 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			617 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using MU3.Data;
 | |
| using MU3.Game;
 | |
| using MU3.Util;
 | |
| 
 | |
| namespace MU3.Sequence;
 | |
| 
 | |
| class patch_PlayMusic: PlayMusic {
 | |
|     private SessionInfo _sessionInfo;
 | |
| 
 | |
|     private extern void orig_Enter_ShowBonusStart();
 | |
|     private void Enter_ShowBonusStart() {
 | |
|         orig_Enter_ShowBonusStart();
 | |
| 
 | |
|         int selectorID = SingletonStateMachine<DataManager, DataManager.EState>.instance.getMemoryChapterData(
 | |
|             _sessionInfo.chapterSelection.memoryChapterId
 | |
|         )?.getMemoryChapterSelectorID() ?? Singleton<Mod.State>.instance.RecentBGM;
 | |
|         Singleton<GameSound>.instance.gameBGM.playBGM(236, selectorID);
 | |
|     }
 | |
| }
 |