Skip to content

Commit

Permalink
Small cleanup to \src\
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreML committed Feb 4, 2023
1 parent 7efa7c0 commit bf99a29
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions MusicAnnouncements.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="MusicAnnouncementsConfig.cs" />
<Compile Include="MusicAnnouncements_PauseMenu.cs" />
<Compile Include="MusicAnnouncementsMod.cs" />
<Compile Include="src\MusicAnnouncementsConfig.cs" />
<Compile Include="src\MusicAnnouncements_PauseMenu.cs" />
<Compile Include="src\MusicAnnouncementsMod.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion MusicAnnouncementsMod.cs → src/MusicAnnouncementsMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private void RainWorld_OnModsInitHK(On.RainWorld.orig_OnModsInit orig, RainWorld
}

// Called when a new song is instantiated.
// If it's the correct type of song (playing as a random event ingame), `songToAnnounce` and `announceAttempts` are set.
// If it's the correct type of song (playing as an event ingame), `songToAnnounce` and `announceAttempts` are set.
private void SongHK(On.Music.Song.orig_ctor orig, Song self, MusicPlayer musicPlayer, string name, MusicPlayer.MusicContext context)
{
orig(self, musicPlayer, name, context);
Expand All @@ -65,6 +65,7 @@ private void SongHK(On.Music.Song.orig_ctor orig, Song self, MusicPlayer musicPl
announceAttempts = 500; // 500 attempts
}

// Called when a song ends (or is otherwise deleted).
private void MusicPiece_StopAndDestroyHK(On.Music.MusicPiece.orig_StopAndDestroy orig, MusicPiece self)
{
orig(self);
Expand Down
File renamed without changes.

0 comments on commit bf99a29

Please sign in to comment.