Files
CalamityModPublic/Systems/MusicBoxRegistry.cs
T
Ozzatron db676bdf2b 1. Replaces the previous Draedon Ambience by PinpinNeon with Signal Received by CDMusic
2. Current theme for Draedon Talk is an intentionally subdued mix of Signal Received, also done by CDMusic
3. Both audio tracks are boosted +4 dB because they were much quieter than vanilla music. They are still quieter, but since they're ambient that should be fine
2024-04-24 17:20:20 -04:00

26 lines
1.0 KiB
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod
{
public class MusicBoxRegistry : ModSystem
{
private static void AddMusicBox(string musicFile, int itemID, int tileID)
{
Mod calamity = CalamityMod.Instance;
int musicID = MusicLoader.GetMusicSlot(calamity, musicFile);
MusicLoader.AddMusicBox(calamity, musicID, itemID, tileID);
}
public override void PostSetupContent()
{
if (!Main.dedServ)
{
// 24APR2024: Ozzatron: unclear why these two songs are even in main mod, but I don't want to break precedent
AddMusicBox("Sounds/Music/DraedonExoSelect", ModContent.ItemType<Items.Placeables.MusicBoxes.DraedonExoSelectMusicBox>(), ModContent.TileType<Tiles.MusicBoxes.DraedonExoSelectMusicBox>());
AddMusicBox("Sounds/Music/DraedonTalk", ModContent.ItemType<Items.Placeables.MusicBoxes.DraedonTalkMusicBox>(), ModContent.TileType<Tiles.MusicBoxes.DraedonTalkMusicBox>());
}
}
}
}