Skip to content

Commit

Permalink
fix#2 for SongHK
Browse files Browse the repository at this point in the history
  • Loading branch information
SFBdragon authored Feb 16, 2023
1 parent b065c03 commit 5e5c537
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/MusicAnnouncementsMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@ private void SongHK(On.Music.Song.orig_ctor orig, Song self, MusicPlayer musicPl

// The full `name` will be something like "RW_24 - Kayava". We only want to announce the part after the dash.
songToAnnounce = Regex.Split(name, " - ")[1];
announceAttempts = 500; // 500 attempts

if (MusicAnnouncementsConfig.inGameText.Value) // Gameplay announcements are enabled.
{
announceAttempts = 500; // 500 attempts
}
else
{
Debug.Log("(MusicAnnouncements) Skipping gameplay announcement due to config");
}
}

// Called when a song ends (or is otherwise deleted).
Expand Down

0 comments on commit 5e5c537

Please sign in to comment.