[+] CustomLogo

This commit is contained in:
Clansty
2024-10-04 22:45:48 +08:00
parent 7e5467935b
commit d84b2f3870
4 changed files with 60 additions and 2 deletions

View File

@@ -12,7 +12,6 @@ namespace AquaMai.UX
public class RandomBgm
{
private static List<string> _acbs = new List<string>();
private static Random _rng = new Random();
[HarmonyPostfix]
[HarmonyPatch(typeof(SoundManager), "Initialize")]
@@ -43,7 +42,7 @@ namespace AquaMai.UX
case Cue.BGM_COLLECTION:
case Cue.BGM_RESULT_CLEAR:
case Cue.BGM_RESULT:
var acb = _acbs[_rng.Next(_acbs.Count)];
var acb = _acbs[UnityEngine.Random.Range(0, _acbs.Count)];
acbID = SoundManager.AcbID.Max;
var result = Singleton<SoundCtrl>.Instance.LoadCueSheet((int)acbID, acb);
MelonLogger.Msg($"Picked {acb} for {cueIndex}, result: {result}");