diff --git a/CalamityModMusic.cs b/CalamityModMusic.cs index a59c367..b80ea0a 100644 --- a/CalamityModMusic.cs +++ b/CalamityModMusic.cs @@ -60,367 +60,367 @@ using Yharon3Musicbox = CalamityModMusic.Items.Placeables.Yharon3Musicbox; namespace CalamityModMusic { - public class CalamityModMusic : Mod - { - public static CalamityModMusic Instance; - internal static CalamityMusicConfig Config => CalamityMusicConfig.Instance; + public class CalamityModMusic : Mod + { + public static CalamityModMusic Instance; + internal static CalamityMusicConfig Config => CalamityMusicConfig.Instance; - private bool stopTitleMusic; - private ManualResetEvent titleMusicStopped; + private bool stopTitleMusic; + private ManualResetEvent titleMusicStopped; - private int customTitleMusicSlot; + private int customTitleMusicSlot; - private void TitleMusicIL(ILContext il) - { - var c = new ILCursor(il); - c.GotoNext(MoveType.After, i => i.MatchLdfld
("newMusic")); - c.EmitDelegate>(newMusic => - newMusic == MusicID.Title ? customTitleMusicSlot : newMusic); - } + private void TitleMusicIL(ILContext il) + { + var c = new ILCursor(il); + c.GotoNext(MoveType.After, i => i.MatchLdfld
("newMusic")); + c.EmitDelegate>(newMusic => + newMusic == MusicID.Title ? customTitleMusicSlot : newMusic); + } - public CalamityModMusic() - { - Instance = this; - } + public CalamityModMusic() + { + Instance = this; + } - public override void Load() - { - if (!Main.dedServ) - { - // Boss Music - Alphabetised. - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AdultEidolonWyrm"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Anahita"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AnahitaPreboss"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AquaticScourge"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumAureus"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumDeus"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BrimstoneElemental"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Calamitas"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Void"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Crabulon"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Cryogen"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DesertScourge"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DevourerOfGodsP1"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DevourerOfGodsP2"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Dragonfolly"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/ExoMechs"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/HiveMind"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/LeviathanAndAnahita"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BoomerDuke"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Perforators"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/PlaguebringerGoliath"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Polterghast"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Guardians"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Providence"), ModContent.ItemType(), ModContent.TileType()); //Seamless - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Ravager"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas1"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas2"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas3"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas4"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Signus"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SlimeGod"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Weaver"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonLegacy"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonP1"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonP2"), ModContent.ItemType(), ModContent.TileType()); + public override void Load() + { + if (!Main.dedServ) + { + // Boss Music - Alphabetised. + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AdultEidolonWyrm"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Anahita"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AnahitaPreboss"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AquaticScourge"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumAureus"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumDeus"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BrimstoneElemental"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Calamitas"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Void"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Crabulon"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Cryogen"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DesertScourge"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DevourerOfGodsP1"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DevourerOfGodsP2"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Dragonfolly"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/ExoMechs"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/HiveMind"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/LeviathanAndAnahita"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BoomerDuke"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Perforators"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/PlaguebringerGoliath"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Polterghast"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Guardians"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Providence"), ModContent.ItemType(), ModContent.TileType()); //Seamless + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Ravager"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas1"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas2"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas3"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas4"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Signus"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SlimeGod"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Weaver"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonLegacy"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonP1"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonP2"), ModContent.ItemType(), ModContent.TileType()); - // Biome Music. - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss1"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss2"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss3"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Astral"), ModContent.ItemType(), ModContent.TileType()); //Seamless - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstralUnderground"), ModContent.ItemType(), ModContent.TileType()); //Seamless - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Crag"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity"), ModContent.ItemType(), ModContent.TileType()); //Seamless - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SulphurousSea"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SunkenSea"), ModContent.ItemType(), ModContent.TileType()); + // Biome Music. + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss1"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss2"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss3"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Astral"), ModContent.ItemType(), ModContent.TileType()); //Seamless + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstralUnderground"), ModContent.ItemType(), ModContent.TileType()); //Seamless + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Crag"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity"), ModContent.ItemType(), ModContent.TileType()); //Seamless + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SulphurousSea"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SunkenSea"), ModContent.ItemType(), ModContent.TileType()); - // Event Music. - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AcidRain1"), ModContent.ItemType(), ModContent.TileType()); //Seamless - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AcidRain2"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier1"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier2"), ModContent.ItemType(), ModContent.TileType()); - AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier3"), ModContent.ItemType(), ModContent.TileType()); - //AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier4"), ModContent.ItemType(), ModContent.TileType()); - //AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier5"), ModContent.ItemType(), ModContent.TileType()); + // Event Music. + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AcidRain1"), ModContent.ItemType(), ModContent.TileType()); //Seamless + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AcidRain2"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier1"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier2"), ModContent.ItemType(), ModContent.TileType()); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier3"), ModContent.ItemType(), ModContent.TileType()); + //AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier4"), ModContent.ItemType(), ModContent.TileType()); + //AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier5"), ModContent.ItemType(), ModContent.TileType()); - stopTitleMusic = false; - titleMusicStopped = new ManualResetEvent(false); - } - } + stopTitleMusic = false; + titleMusicStopped = new ManualResetEvent(false); + } + } - public override void Unload() - { - IL.Terraria.Main.UpdateAudio -= TitleMusicIL; - customTitleMusicSlot = MusicID.Title; - Close(); - titleMusicStopped?.Set(); - Instance = null; - titleMusicStopped = null; - } + public override void Unload() + { + IL.Terraria.Main.UpdateAudio -= TitleMusicIL; + customTitleMusicSlot = MusicID.Title; + Close(); + titleMusicStopped?.Set(); + Instance = null; + titleMusicStopped = null; + } - private void SetTitleMusic() - { - if (Config.ReplaceTitleMusic) - { - customTitleMusicSlot = GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity"); - IL.Terraria.Main.UpdateAudio += TitleMusicIL; - } - } + private void SetTitleMusic() + { + if (Config.ReplaceTitleMusic) + { + customTitleMusicSlot = GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity"); + IL.Terraria.Main.UpdateAudio += TitleMusicIL; + } + } - public override void PostSetupContent() - { - Mod calamity = ModLoader.GetMod("CalamityMod"); - Mod bossChecklist = ModLoader.GetMod("BossChecklist"); - Mod overhaul = ModLoader.GetMod("TerrariaOverhaul"); + public override void PostSetupContent() + { + Mod calamity = ModLoader.GetMod("CalamityMod"); + Mod bossChecklist = ModLoader.GetMod("BossChecklist"); + Mod overhaul = ModLoader.GetMod("TerrariaOverhaul"); - // Overhaul insists on IL editing Calamity Music Mod to disable our music regardless of player choice in the Calamity music config. - // Since it's not worth fighting over this, just don't register the IL hook if Overhaul is loaded. - // The config notifies players that they cannot hear Calamity title music if Overhaul is enabled. - if(overhaul is null) - SetTitleMusic(); + // Overhaul insists on IL editing Calamity Music Mod to disable our music regardless of player choice in the Calamity music config. + // Since it's not worth fighting over this, just don't register the IL hook if Overhaul is loaded. + // The config notifies players that they cannot hear Calamity title music if Overhaul is enabled. + if(overhaul is null) + SetTitleMusic(); - if (calamity != null && bossChecklist != null) - { - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Desert Scourge", - ModContent.ItemType()); + if (calamity != null && bossChecklist != null) + { + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Desert Scourge", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Giant Clam", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Giant Clam", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Crabulon", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Crabulon", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Hive Mind", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Hive Mind", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "The Perforators", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "The Perforators", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Slime God", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Slime God", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Cryogen", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Cryogen", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Brimstone Elemental", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Brimstone Elemental", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Aquatic Scourge", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Aquatic Scourge", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Calamitas", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Calamitas", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Leviathan", - new List() {ModContent.ItemType(), ModContent.ItemType()}); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Leviathan", + new List() {ModContent.ItemType(), ModContent.ItemType()}); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Astrum Aureus", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Astrum Aureus", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Plaguebringer Goliath", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Plaguebringer Goliath", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Ravager", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Ravager", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Astrum Deus", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Astrum Deus", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Profaned Guardians", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Profaned Guardians", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Dragonfolly", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Dragonfolly", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Providence", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Providence", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Ceaseless Void", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Ceaseless Void", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Storm Weaver", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Storm Weaver", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Signus", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Signus", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Polterghast", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Polterghast", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Devourer of Gods", - new List() {ModContent.ItemType(), ModContent.ItemType()}); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Devourer of Gods", + new List() {ModContent.ItemType(), ModContent.ItemType()}); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Yharon", - new List() {ModContent.ItemType(), ModContent.ItemType()}); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Yharon", + new List() {ModContent.ItemType(), ModContent.ItemType()}); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Exo Mechs", - new List() { ModContent.ItemType() }); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Exo Mechs", + new List() { ModContent.ItemType() }); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Supreme Calamitas", - new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Supreme Calamitas", + new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Adult Eidolon Wyrm", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Adult Eidolon Wyrm", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Acid Rain", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Acid Rain", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Acid Rain (Post-AS)", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Acid Rain (Post-AS)", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Acid Rain (Post-Polter)", - ModContent.ItemType()); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Acid Rain (Post-Polter)", + ModContent.ItemType()); - bossChecklist.Call( - "AddToBossCollection", - calamity.Name, - "Old Duke", - ModContent.ItemType()); - } - } + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Old Duke", + ModContent.ItemType()); + } + } - public override void Close() - { - var slot = GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity"); + public override void Close() + { + var slot = GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity"); - if (Main.music.IndexInRange(slot) && Main.music[slot]?.IsPlaying == true) - { - Main.music[slot].Stop(AudioStopOptions.Immediate); - } - base.Close(); - } + if (Main.music.IndexInRange(slot) && Main.music[slot]?.IsPlaying == true) + { + Main.music[slot].Stop(AudioStopOptions.Immediate); + } + base.Close(); + } - public override void UpdateMusic(ref int music, ref MusicPriority priority) - { - if (stopTitleMusic || (!Main.gameMenu && customTitleMusicSlot != MusicID.Title && Main.ActivePlayerFileData != null && Main.ActiveWorldFileData != null)) - { - if (!stopTitleMusic) - { - music = MusicID.Title; - } + public override void UpdateMusic(ref int music, ref MusicPriority priority) + { + if (stopTitleMusic || (!Main.gameMenu && customTitleMusicSlot != MusicID.Title && Main.ActivePlayerFileData != null && Main.ActiveWorldFileData != null)) + { + if (!stopTitleMusic) + { + music = MusicID.Title; + } - // prevent our IL hook trying to play the track anymore - // we could just remove our IL hook, but then we'd have to save it in a variable. tML removes it for us anyway - customTitleMusicSlot = MusicID.Title; + // prevent our IL hook trying to play the track anymore + // we could just remove our IL hook, but then we'd have to save it in a variable. tML removes it for us anyway + customTitleMusicSlot = MusicID.Title; - // stop the music if it's playing (which it probably is) - var m = GetMusic("Sounds/Music/Calamity"); - if (m.IsPlaying) - m.Stop(AudioStopOptions.Immediate); + // stop the music if it's playing (which it probably is) + var m = GetMusic("Sounds/Music/Calamity"); + if (m.IsPlaying) + m.Stop(AudioStopOptions.Immediate); - titleMusicStopped.Set(); - stopTitleMusic = false; - } - } + titleMusicStopped.Set(); + stopTitleMusic = false; + } + } - public override void PreSaveAndQuit() - { - Mod overhaul = ModLoader.GetMod("TerrariaOverhaul"); - if(overhaul is null) - SetTitleMusic(); - } + public override void PreSaveAndQuit() + { + Mod overhaul = ModLoader.GetMod("TerrariaOverhaul"); + if(overhaul is null) + SetTitleMusic(); + } - internal static void SaveConfig(CalamityMusicConfig CalamityMusicConfig) - { - // in-game ModConfig saving from mod code is not supported yet in tmodloader, and subject to change, so we need to be extra careful. - // This code only supports client configs, and doesn't call onchanged. It also doesn't support ReloadRequired or anything else. - MethodInfo saveMethodInfo = typeof(ConfigManager).GetMethod("Save", BindingFlags.Static | BindingFlags.NonPublic); - if (saveMethodInfo != null) - saveMethodInfo.Invoke(null, new object[] { CalamityMusicConfig }); - else - Instance.Logger.Warn("In-game SaveConfig failed, code update required"); - } - } + internal static void SaveConfig(CalamityMusicConfig CalamityMusicConfig) + { + // in-game ModConfig saving from mod code is not supported yet in tmodloader, and subject to change, so we need to be extra careful. + // This code only supports client configs, and doesn't call onchanged. It also doesn't support ReloadRequired or anything else. + MethodInfo saveMethodInfo = typeof(ConfigManager).GetMethod("Save", BindingFlags.Static | BindingFlags.NonPublic); + if (saveMethodInfo != null) + saveMethodInfo.Invoke(null, new object[] { CalamityMusicConfig }); + else + Instance.Logger.Warn("In-game SaveConfig failed, code update required"); + } + } } diff --git a/CalamityMusicConfig.cs b/CalamityMusicConfig.cs index 297d71c..9799964 100644 --- a/CalamityMusicConfig.cs +++ b/CalamityMusicConfig.cs @@ -3,22 +3,22 @@ using Terraria.ModLoader.Config; namespace CalamityModMusic { - [Label("Config")] - [BackgroundColor(49, 32, 36, 216)] - public class CalamityMusicConfig : ModConfig - { - public static CalamityMusicConfig Instance; - public override ConfigScope Mode => ConfigScope.ClientSide; + [Label("Config")] + [BackgroundColor(49, 32, 36, 216)] + public class CalamityMusicConfig : ModConfig + { + public static CalamityMusicConfig Instance; + public override ConfigScope Mode => ConfigScope.ClientSide; - [Header("Music Changes")] + [Header("Music Changes")] - [Label("Replace Title Music")] - [BackgroundColor(192, 54, 64, 192)] - [DefaultValue(true)] - [ReloadRequired] - [Tooltip("Replaces the vanilla Terraria title screen music with 'The Tale of a Cruel World'.\nThis option does nothing if Terraria Overhaul is enabled.\nThis option requires a reload to take effect.")] - public bool ReplaceTitleMusic { get; set; } + [Label("Replace Title Music")] + [BackgroundColor(192, 54, 64, 192)] + [DefaultValue(true)] + [ReloadRequired] + [Tooltip("Replaces the vanilla Terraria title screen music with 'The Tale of a Cruel World'.\nThis option does nothing if Terraria Overhaul is enabled.\nThis option requires a reload to take effect.")] + public bool ReplaceTitleMusic { get; set; } - public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref string message) => true; - } + public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref string message) => true; + } } diff --git a/Items/CalamityMusicGlobalItem.cs b/Items/CalamityMusicGlobalItem.cs index 574b252..3326758 100644 --- a/Items/CalamityMusicGlobalItem.cs +++ b/Items/CalamityMusicGlobalItem.cs @@ -4,10 +4,10 @@ using Terraria.Utilities; namespace CalamityModMusic.Items { - public class CalamityMusicGlobalItem : GlobalItem - { - // No items from this mod are capable of receiving reforges. - public override bool? PrefixChance(Item item, int pre, UnifiedRandom rand) => - item.modItem != null && item.modItem.mod == CalamityModMusic.Instance ? false : (bool?)null; - } + public class CalamityMusicGlobalItem : GlobalItem + { + // No items from this mod are capable of receiving reforges. + public override bool? PrefixChance(Item item, int pre, UnifiedRandom rand) => + item.modItem != null && item.modItem.mod == CalamityModMusic.Instance ? false : (bool?)null; + } } diff --git a/Items/Placeables/AbyssLowerMusicbox.cs b/Items/Placeables/AbyssLowerMusicbox.cs index 0e722c2..36e1574 100644 --- a/Items/Placeables/AbyssLowerMusicbox.cs +++ b/Items/Placeables/AbyssLowerMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class AbyssLowerMusicbox : ModItem + public class AbyssLowerMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/AcidRain2Musicbox.cs b/Items/Placeables/AcidRain2Musicbox.cs index 3dda137..ae735f3 100644 --- a/Items/Placeables/AcidRain2Musicbox.cs +++ b/Items/Placeables/AcidRain2Musicbox.cs @@ -3,7 +3,7 @@ using CalamityModMusic.Tiles; namespace CalamityModMusic.Items.Placeables { - public class AcidRain2Musicbox : ModItem + public class AcidRain2Musicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/AdultEidolonWyrmMusicbox.cs b/Items/Placeables/AdultEidolonWyrmMusicbox.cs index fc907e6..dd2f756 100644 --- a/Items/Placeables/AdultEidolonWyrmMusicbox.cs +++ b/Items/Placeables/AdultEidolonWyrmMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class AdultEidolonWyrmMusicbox : ModItem + public class AdultEidolonWyrmMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/AquaticScourgeMusicbox.cs b/Items/Placeables/AquaticScourgeMusicbox.cs index d5b6dd6..a765311 100644 --- a/Items/Placeables/AquaticScourgeMusicbox.cs +++ b/Items/Placeables/AquaticScourgeMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class AquaticScourgeMusicbox: ModItem + public class AquaticScourgeMusicbox: ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/AstrageldonMusicbox.cs b/Items/Placeables/AstrageldonMusicbox.cs index ecaddde..7e17a0e 100644 --- a/Items/Placeables/AstrageldonMusicbox.cs +++ b/Items/Placeables/AstrageldonMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class AstrageldonMusicbox : ModItem + public class AstrageldonMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/AstralMusicbox.cs b/Items/Placeables/AstralMusicbox.cs index 7e4307d..7424799 100644 --- a/Items/Placeables/AstralMusicbox.cs +++ b/Items/Placeables/AstralMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class AstralMusicbox : ModItem + public class AstralMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/AstrumDeusMusicbox.cs b/Items/Placeables/AstrumDeusMusicbox.cs index 1a983a2..e0fc591 100644 --- a/Items/Placeables/AstrumDeusMusicbox.cs +++ b/Items/Placeables/AstrumDeusMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class AstrumDeusMusicbox : ModItem + public class AstrumDeusMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/BrimmyMusicbox.cs b/Items/Placeables/BrimmyMusicbox.cs index ff6d8fa..38d13d7 100644 --- a/Items/Placeables/BrimmyMusicbox.cs +++ b/Items/Placeables/BrimmyMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class BrimmyMusicbox : ModItem + public class BrimmyMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/BumblebirbMusicbox.cs b/Items/Placeables/BumblebirbMusicbox.cs index fb12ca3..089ee91 100644 --- a/Items/Placeables/BumblebirbMusicbox.cs +++ b/Items/Placeables/BumblebirbMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class BumblebirbMusicbox : ModItem + public class BumblebirbMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/CalamitasMusicbox.cs b/Items/Placeables/CalamitasMusicbox.cs index 355ef29..2c2d648 100644 --- a/Items/Placeables/CalamitasMusicbox.cs +++ b/Items/Placeables/CalamitasMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class CalamitasMusicbox : ModItem + public class CalamitasMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/CalamityMusicbox.cs b/Items/Placeables/CalamityMusicbox.cs index 3a14cfb..5285187 100644 --- a/Items/Placeables/CalamityMusicbox.cs +++ b/Items/Placeables/CalamityMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class CalamityMusicbox : ModItem + public class CalamityMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/CeaselessVoidMusicbox.cs b/Items/Placeables/CeaselessVoidMusicbox.cs index 119117d..36972fc 100644 --- a/Items/Placeables/CeaselessVoidMusicbox.cs +++ b/Items/Placeables/CeaselessVoidMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class CeaselessVoidMusicbox : ModItem + public class CeaselessVoidMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/CrabulonMusicbox.cs b/Items/Placeables/CrabulonMusicbox.cs index 3bfb389..c4e8c9b 100644 --- a/Items/Placeables/CrabulonMusicbox.cs +++ b/Items/Placeables/CrabulonMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class CrabulonMusicbox : ModItem + public class CrabulonMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/CragMusicbox.cs b/Items/Placeables/CragMusicbox.cs index 17a5964..2f943f4 100644 --- a/Items/Placeables/CragMusicbox.cs +++ b/Items/Placeables/CragMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class CragMusicbox : ModItem + public class CragMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/CryogenMusicbox.cs b/Items/Placeables/CryogenMusicbox.cs index 56a3619..8be0fe9 100644 --- a/Items/Placeables/CryogenMusicbox.cs +++ b/Items/Placeables/CryogenMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class CryogenMusicbox : ModItem + public class CryogenMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/DesertScourgeMusicbox.cs b/Items/Placeables/DesertScourgeMusicbox.cs index 07bceb1..e7740e9 100644 --- a/Items/Placeables/DesertScourgeMusicbox.cs +++ b/Items/Placeables/DesertScourgeMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class DesertScourgeMusicbox : ModItem + public class DesertScourgeMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/DoGMusicbox.cs b/Items/Placeables/DoGMusicbox.cs index 6471cc2..ba1f34b 100644 --- a/Items/Placeables/DoGMusicbox.cs +++ b/Items/Placeables/DoGMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class DoGMusicbox : ModItem + public class DoGMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/DoGP2Musicbox.cs b/Items/Placeables/DoGP2Musicbox.cs index c910632..0dc41bf 100644 --- a/Items/Placeables/DoGP2Musicbox.cs +++ b/Items/Placeables/DoGP2Musicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class DoGP2Musicbox : ModItem + public class DoGP2Musicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/ExoMechsMusicboxItem.cs b/Items/Placeables/ExoMechsMusicboxItem.cs index ae79b7f..50c87dd 100644 --- a/Items/Placeables/ExoMechsMusicboxItem.cs +++ b/Items/Placeables/ExoMechsMusicboxItem.cs @@ -3,27 +3,27 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class ExoMechsMusicboxItem : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Music Box (Exo Mechs)"); - } + public class ExoMechsMusicboxItem : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Exo Mechs)"); + } - public override void SetDefaults() - { - item.useStyle = ItemUseStyleID.SwingThrow; - item.useTurn = true; - item.useAnimation = 15; - item.useTime = 10; - item.autoReuse = true; - item.consumable = true; - item.createTile = ModContent.TileType(); - item.width = 24; - item.height = 24; - item.rare = ItemRarityID.LightRed; - item.value = 100000; - item.accessory = true; - } - } + public override void SetDefaults() + { + item.useStyle = ItemUseStyleID.SwingThrow; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = ModContent.TileType(); + item.width = 24; + item.height = 24; + item.rare = ItemRarityID.LightRed; + item.value = 100000; + item.accessory = true; + } + } } \ No newline at end of file diff --git a/Items/Placeables/HigherAbyssMusicbox.cs b/Items/Placeables/HigherAbyssMusicbox.cs index ad55b11..dab7c55 100644 --- a/Items/Placeables/HigherAbyssMusicbox.cs +++ b/Items/Placeables/HigherAbyssMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class HigherAbyssMusicbox : ModItem + public class HigherAbyssMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/HiveMindMusicbox.cs b/Items/Placeables/HiveMindMusicbox.cs index c857700..59acb62 100644 --- a/Items/Placeables/HiveMindMusicbox.cs +++ b/Items/Placeables/HiveMindMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class HiveMindMusicbox : ModItem + public class HiveMindMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/LeviathanMusicbox.cs b/Items/Placeables/LeviathanMusicbox.cs index 5103ff3..c75ce32 100644 --- a/Items/Placeables/LeviathanMusicbox.cs +++ b/Items/Placeables/LeviathanMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class LeviathanMusicbox : ModItem + public class LeviathanMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/PerforatorMusicbox.cs b/Items/Placeables/PerforatorMusicbox.cs index f1f5a93..d11ab62 100644 --- a/Items/Placeables/PerforatorMusicbox.cs +++ b/Items/Placeables/PerforatorMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class PerforatorMusicbox : ModItem + public class PerforatorMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/PlaguebringerMusicbox.cs b/Items/Placeables/PlaguebringerMusicbox.cs index 520acd3..b4fbfca 100644 --- a/Items/Placeables/PlaguebringerMusicbox.cs +++ b/Items/Placeables/PlaguebringerMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class PlaguebringerMusicbox : ModItem + public class PlaguebringerMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/PolterghastMusicbox.cs b/Items/Placeables/PolterghastMusicbox.cs index c9ef9bd..014c9be 100644 --- a/Items/Placeables/PolterghastMusicbox.cs +++ b/Items/Placeables/PolterghastMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class PolterghastMusicbox : ModItem + public class PolterghastMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/ProfanedGuardianMusicbox.cs b/Items/Placeables/ProfanedGuardianMusicbox.cs index 03b9c2e..825f81e 100644 --- a/Items/Placeables/ProfanedGuardianMusicbox.cs +++ b/Items/Placeables/ProfanedGuardianMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class ProfanedGuardianMusicbox: ModItem + public class ProfanedGuardianMusicbox: ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/ProvidenceMusicbox.cs b/Items/Placeables/ProvidenceMusicbox.cs index 50ede78..aaee813 100644 --- a/Items/Placeables/ProvidenceMusicbox.cs +++ b/Items/Placeables/ProvidenceMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class ProvidenceMusicbox: ModItem + public class ProvidenceMusicbox: ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/RavagerMusicbox.cs b/Items/Placeables/RavagerMusicbox.cs index 6f68085..0c3bdd6 100644 --- a/Items/Placeables/RavagerMusicbox.cs +++ b/Items/Placeables/RavagerMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class RavagerMusicbox: ModItem + public class RavagerMusicbox: ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/SCalAMusicbox.cs b/Items/Placeables/SCalAMusicbox.cs index 3211c25..6f6088b 100644 --- a/Items/Placeables/SCalAMusicbox.cs +++ b/Items/Placeables/SCalAMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class SCalAMusicbox : ModItem + public class SCalAMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/SCalEMusicbox.cs b/Items/Placeables/SCalEMusicbox.cs index 4f02b1b..4aa6208 100644 --- a/Items/Placeables/SCalEMusicbox.cs +++ b/Items/Placeables/SCalEMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class SCalEMusicbox : ModItem + public class SCalEMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/SCalGMusicbox.cs b/Items/Placeables/SCalGMusicbox.cs index e34cac5..b04ab68 100644 --- a/Items/Placeables/SCalGMusicbox.cs +++ b/Items/Placeables/SCalGMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class SCalGMusicbox : ModItem + public class SCalGMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/SCalLMusicbox.cs b/Items/Placeables/SCalLMusicbox.cs index e237c5b..b062c25 100644 --- a/Items/Placeables/SCalLMusicbox.cs +++ b/Items/Placeables/SCalLMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class SCalLMusicbox : ModItem + public class SCalLMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/SignusMusicbox.cs b/Items/Placeables/SignusMusicbox.cs index b7a18d2..314852f 100644 --- a/Items/Placeables/SignusMusicbox.cs +++ b/Items/Placeables/SignusMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class SignusMusicbox : ModItem + public class SignusMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/SirenIdleMusicbox.cs b/Items/Placeables/SirenIdleMusicbox.cs index dba4c4e..1a3906d 100644 --- a/Items/Placeables/SirenIdleMusicbox.cs +++ b/Items/Placeables/SirenIdleMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class SirenIdleMusicbox : ModItem + public class SirenIdleMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/SirenMusicbox.cs b/Items/Placeables/SirenMusicbox.cs index 46bb1e2..c6dcb9b 100644 --- a/Items/Placeables/SirenMusicbox.cs +++ b/Items/Placeables/SirenMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class SirenMusicbox : ModItem + public class SirenMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/SlimeGodMusicbox.cs b/Items/Placeables/SlimeGodMusicbox.cs index 8d29bd9..add503b 100644 --- a/Items/Placeables/SlimeGodMusicbox.cs +++ b/Items/Placeables/SlimeGodMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class SlimeGodMusicbox : ModItem + public class SlimeGodMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/StormWeaverMusicbox.cs b/Items/Placeables/StormWeaverMusicbox.cs index 2c4cd92..4212302 100644 --- a/Items/Placeables/StormWeaverMusicbox.cs +++ b/Items/Placeables/StormWeaverMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class StormWeaverMusicbox : ModItem + public class StormWeaverMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/SulphurousMusicbox.cs b/Items/Placeables/SulphurousMusicbox.cs index 4bd3d89..9822d50 100644 --- a/Items/Placeables/SulphurousMusicbox.cs +++ b/Items/Placeables/SulphurousMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class SulphurousMusicbox : ModItem + public class SulphurousMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/SunkenSeaMusicbox.cs b/Items/Placeables/SunkenSeaMusicbox.cs index 103e34c..aa21ffa 100644 --- a/Items/Placeables/SunkenSeaMusicbox.cs +++ b/Items/Placeables/SunkenSeaMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class SunkenSeaMusicbox : ModItem + public class SunkenSeaMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/VoidMusicbox.cs b/Items/Placeables/VoidMusicbox.cs index 039e03d..3179144 100644 --- a/Items/Placeables/VoidMusicbox.cs +++ b/Items/Placeables/VoidMusicbox.cs @@ -2,7 +2,7 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class VoidMusicbox : ModItem + public class VoidMusicbox : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Placeables/Yharon1Musicbox.cs b/Items/Placeables/Yharon1Musicbox.cs index 92f4d3d..3f689bc 100644 --- a/Items/Placeables/Yharon1Musicbox.cs +++ b/Items/Placeables/Yharon1Musicbox.cs @@ -3,42 +3,42 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class Yharon1Musicbox : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Music Box (Infernal Catharsis)"); - } + public class Yharon1Musicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Infernal Catharsis)"); + } - public override void SetDefaults() - { - item.useStyle = 1; - item.useTurn = true; - item.useAnimation = 15; - item.useTime = 10; - item.autoReuse = true; - item.consumable = true; - item.createTile = ModContent.TileType(); - item.width = 24; - item.height = 24; - item.rare = 4; - item.value = 100000; - item.accessory = true; - } + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = ModContent.TileType(); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } - public override void AddRecipes() - { - Mod calamityMod = ModLoader.GetMod("CalamityMod"); - if (calamityMod != null) - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.MusicBox); - recipe.AddIngredient(calamityMod.ItemType("DarksunFragment"), 5); - recipe.AddIngredient(calamityMod.ItemType("CosmiliteBar"), 3); - recipe.SetResult(this); - recipe.AddTile(calamityMod.TileType("CosmicAnvil")); - recipe.AddRecipe(); - } - } - } + public override void AddRecipes() + { + Mod calamityMod = ModLoader.GetMod("CalamityMod"); + if (calamityMod != null) + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.MusicBox); + recipe.AddIngredient(calamityMod.ItemType("DarksunFragment"), 5); + recipe.AddIngredient(calamityMod.ItemType("CosmiliteBar"), 3); + recipe.SetResult(this); + recipe.AddTile(calamityMod.TileType("CosmicAnvil")); + recipe.AddRecipe(); + } + } + } } \ No newline at end of file diff --git a/Items/Placeables/Yharon2Musicbox.cs b/Items/Placeables/Yharon2Musicbox.cs index e825395..9ca1a2a 100644 --- a/Items/Placeables/Yharon2Musicbox.cs +++ b/Items/Placeables/Yharon2Musicbox.cs @@ -2,27 +2,27 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class Yharon2Musicbox : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Music Box (Yharon)"); - } + public class Yharon2Musicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Yharon)"); + } - public override void SetDefaults() - { - item.useStyle = 1; - item.useTurn = true; - item.useAnimation = 15; - item.useTime = 10; - item.autoReuse = true; - item.consumable = true; - item.createTile = ModContent.TileType(); - item.width = 24; - item.height = 24; - item.rare = 4; - item.value = 100000; - item.accessory = true; - } - } + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = ModContent.TileType(); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } } \ No newline at end of file diff --git a/Items/Placeables/Yharon3Musicbox.cs b/Items/Placeables/Yharon3Musicbox.cs index f443f80..2c97723 100644 --- a/Items/Placeables/Yharon3Musicbox.cs +++ b/Items/Placeables/Yharon3Musicbox.cs @@ -2,27 +2,27 @@ using Terraria.ModLoader; namespace CalamityModMusic.Items.Placeables { - public class Yharon3Musicbox : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Music Box (Yharon Phase 2)"); - } + public class Yharon3Musicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Yharon Phase 2)"); + } - public override void SetDefaults() - { - item.useStyle = 1; - item.useTurn = true; - item.useAnimation = 15; - item.useTime = 10; - item.autoReuse = true; - item.consumable = true; - item.createTile = ModContent.TileType(); - item.width = 24; - item.height = 24; - item.rare = 4; - item.value = 100000; - item.accessory = true; - } - } + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = ModContent.TileType(); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } } \ No newline at end of file diff --git a/Tiles/AbyssLowerMusicbox.cs b/Tiles/AbyssLowerMusicbox.cs index 5edec07..379e371 100644 --- a/Tiles/AbyssLowerMusicbox.cs +++ b/Tiles/AbyssLowerMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class AbyssLowerMusicbox : ModTile - { - public override void SetDefaults() - { + public class AbyssLowerMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/AcidRain1MusicboxTile.cs b/Tiles/AcidRain1MusicboxTile.cs index ac98d97..78b695b 100644 --- a/Tiles/AcidRain1MusicboxTile.cs +++ b/Tiles/AcidRain1MusicboxTile.cs @@ -7,10 +7,10 @@ using CalamityModMusic.Items.Placeables; namespace CalamityModMusic.Tiles { - public class AcidRain1MusicboxTile : ModTile - { - public override void SetDefaults() - { + public class AcidRain1MusicboxTile : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/AcidRain2MusicboxTile.cs b/Tiles/AcidRain2MusicboxTile.cs index 6452914..a801c00 100644 --- a/Tiles/AcidRain2MusicboxTile.cs +++ b/Tiles/AcidRain2MusicboxTile.cs @@ -7,10 +7,10 @@ using CalamityModMusic.Items.Placeables; namespace CalamityModMusic.Tiles { - public class AcidRain2MusicboxTile : ModTile - { - public override void SetDefaults() - { + public class AcidRain2MusicboxTile : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/AdultEidolonWyrmMusicbox.cs b/Tiles/AdultEidolonWyrmMusicbox.cs index 472f6a6..9dcb119 100644 --- a/Tiles/AdultEidolonWyrmMusicbox.cs +++ b/Tiles/AdultEidolonWyrmMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class AdultEidolonWyrmMusicbox : ModTile - { - public override void SetDefaults() - { + public class AdultEidolonWyrmMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/AquaticScourgeMusicbox.cs b/Tiles/AquaticScourgeMusicbox.cs index 2fa0d9e..2a28459 100644 --- a/Tiles/AquaticScourgeMusicbox.cs +++ b/Tiles/AquaticScourgeMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class AquaticScourgeMusicbox : ModTile - { - public override void SetDefaults() - { + public class AquaticScourgeMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/AstrageldonMusicbox.cs b/Tiles/AstrageldonMusicbox.cs index 0e1e061..e2ca85a 100644 --- a/Tiles/AstrageldonMusicbox.cs +++ b/Tiles/AstrageldonMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class AstrageldonMusicbox : ModTile - { - public override void SetDefaults() - { + public class AstrageldonMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/AstralMusicbox.cs b/Tiles/AstralMusicbox.cs index 8361c53..ce2b426 100644 --- a/Tiles/AstralMusicbox.cs +++ b/Tiles/AstralMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class AstralMusicbox : ModTile - { - public override void SetDefaults() - { + public class AstralMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/AstralUndergroundMusicboxTile.cs b/Tiles/AstralUndergroundMusicboxTile.cs index ea5b3aa..1557ea8 100644 --- a/Tiles/AstralUndergroundMusicboxTile.cs +++ b/Tiles/AstralUndergroundMusicboxTile.cs @@ -7,10 +7,10 @@ using CalamityModMusic.Items.Placeables; namespace CalamityModMusic.Tiles { - public class AstralUndergroundMusicboxTile : ModTile - { - public override void SetDefaults() - { + public class AstralUndergroundMusicboxTile : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/AstrumDeusMusicbox.cs b/Tiles/AstrumDeusMusicbox.cs index 95abd9b..1c1025d 100644 --- a/Tiles/AstrumDeusMusicbox.cs +++ b/Tiles/AstrumDeusMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class AstrumDeusMusicbox : ModTile - { - public override void SetDefaults() - { + public class AstrumDeusMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/BossRushTier1Musicbox.cs b/Tiles/BossRushTier1Musicbox.cs index a80f7de..a40a306 100644 --- a/Tiles/BossRushTier1Musicbox.cs +++ b/Tiles/BossRushTier1Musicbox.cs @@ -7,10 +7,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class BossRushTier1Musicbox : ModTile - { - public override void SetDefaults() - { + public class BossRushTier1Musicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/BossRushTier2Musicbox.cs b/Tiles/BossRushTier2Musicbox.cs index d905794..416bbf3 100644 --- a/Tiles/BossRushTier2Musicbox.cs +++ b/Tiles/BossRushTier2Musicbox.cs @@ -7,10 +7,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class BossRushTier2Musicbox : ModTile - { - public override void SetDefaults() - { + public class BossRushTier2Musicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/BossRushTier3Musicbox.cs b/Tiles/BossRushTier3Musicbox.cs index 2d4de8e..2dff75c 100644 --- a/Tiles/BossRushTier3Musicbox.cs +++ b/Tiles/BossRushTier3Musicbox.cs @@ -7,10 +7,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class BossRushTier3Musicbox : ModTile - { - public override void SetDefaults() - { + public class BossRushTier3Musicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/BossRushTier4Musicbox.cs b/Tiles/BossRushTier4Musicbox.cs index 500396e..fdf1db0 100644 --- a/Tiles/BossRushTier4Musicbox.cs +++ b/Tiles/BossRushTier4Musicbox.cs @@ -7,10 +7,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class BossRushTier4Musicbox : ModTile - { - public override void SetDefaults() - { + public class BossRushTier4Musicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/BossRushTier5Musicbox.cs b/Tiles/BossRushTier5Musicbox.cs index dc6cefb..d539c33 100644 --- a/Tiles/BossRushTier5Musicbox.cs +++ b/Tiles/BossRushTier5Musicbox.cs @@ -7,10 +7,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class BossRushTier5Musicbox : ModTile - { - public override void SetDefaults() - { + public class BossRushTier5Musicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/BrimmyMusicbox.cs b/Tiles/BrimmyMusicbox.cs index 5e75e1f..7117caa 100644 --- a/Tiles/BrimmyMusicbox.cs +++ b/Tiles/BrimmyMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class BrimmyMusicbox : ModTile - { - public override void SetDefaults() - { + public class BrimmyMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/BumblebirbMusicbox.cs b/Tiles/BumblebirbMusicbox.cs index a7d59ce..e41a3d4 100644 --- a/Tiles/BumblebirbMusicbox.cs +++ b/Tiles/BumblebirbMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class BumblebirbMusicbox : ModTile - { - public override void SetDefaults() - { + public class BumblebirbMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/CalamitasMusicbox.cs b/Tiles/CalamitasMusicbox.cs index c88ea31..5e547ab 100644 --- a/Tiles/CalamitasMusicbox.cs +++ b/Tiles/CalamitasMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class CalamitasMusicbox : ModTile - { - public override void SetDefaults() - { + public class CalamitasMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("CalamitasMusicbox")); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("CalamitasMusicbox")); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/CalamityMusicbox.cs b/Tiles/CalamityMusicbox.cs index d4a3712..f83552e 100644 --- a/Tiles/CalamityMusicbox.cs +++ b/Tiles/CalamityMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class CalamityMusicbox : ModTile - { - public override void SetDefaults() - { + public class CalamityMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/CeaselessVoidMusicbox.cs b/Tiles/CeaselessVoidMusicbox.cs index 971b213..fcb1ebb 100644 --- a/Tiles/CeaselessVoidMusicbox.cs +++ b/Tiles/CeaselessVoidMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class CeaselessVoidMusicbox : ModTile - { - public override void SetDefaults() - { + public class CeaselessVoidMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/CrabulonMusicbox.cs b/Tiles/CrabulonMusicbox.cs index 3f90280..7ccc121 100644 --- a/Tiles/CrabulonMusicbox.cs +++ b/Tiles/CrabulonMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class CrabulonMusicbox : ModTile - { - public override void SetDefaults() - { + public class CrabulonMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/CragMusicbox.cs b/Tiles/CragMusicbox.cs index ff25dba..2394320 100644 --- a/Tiles/CragMusicbox.cs +++ b/Tiles/CragMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class CragMusicbox : ModTile - { - public override void SetDefaults() - { + public class CragMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/CryogenMusicbox.cs b/Tiles/CryogenMusicbox.cs index ede923d..6840cb5 100644 --- a/Tiles/CryogenMusicbox.cs +++ b/Tiles/CryogenMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class CryogenMusicbox : ModTile - { - public override void SetDefaults() - { + public class CryogenMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/DesertScourgeMusicbox.cs b/Tiles/DesertScourgeMusicbox.cs index 4796bf9..b282bc0 100644 --- a/Tiles/DesertScourgeMusicbox.cs +++ b/Tiles/DesertScourgeMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class DesertScourgeMusicbox : ModTile - { - public override void SetDefaults() - { + public class DesertScourgeMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/DoGMusicbox.cs b/Tiles/DoGMusicbox.cs index e0f887e..97cecbc 100644 --- a/Tiles/DoGMusicbox.cs +++ b/Tiles/DoGMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class DoGMusicbox : ModTile - { - public override void SetDefaults() - { + public class DoGMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/DoGP2Musicbox.cs b/Tiles/DoGP2Musicbox.cs index 642c428..9176617 100644 --- a/Tiles/DoGP2Musicbox.cs +++ b/Tiles/DoGP2Musicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class DoGP2Musicbox : ModTile - { - public override void SetDefaults() - { + public class DoGP2Musicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/ExoMechsMusicbox.cs b/Tiles/ExoMechsMusicbox.cs index 26f9173..29d7525 100644 --- a/Tiles/ExoMechsMusicbox.cs +++ b/Tiles/ExoMechsMusicbox.cs @@ -7,34 +7,34 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class ExoMechsMusicbox : ModTile - { - public override void SetDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileObsidianKill[Type] = true; - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); - TileObjectData.newTile.Origin = new Point16(0, 1); - TileObjectData.newTile.LavaDeath = false; - TileObjectData.newTile.DrawYOffset = 2; - TileObjectData.addTile(Type); - disableSmartCursor = true; - ModTranslation name = CreateMapEntryName(); - name.SetDefault("Music Box"); - AddMapEntry(new Color(200, 200, 200), name); - } + public class ExoMechsMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } - public override void MouseOver(int i, int j) - { - Player player = Main.LocalPlayer; - player.noThrow = 2; - player.showItemIcon = true; - player.showItemIcon2 = ModContent.ItemType(); - } - } + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = ModContent.ItemType(); + } + } } diff --git a/Tiles/HigherAbyssMusicbox.cs b/Tiles/HigherAbyssMusicbox.cs index 42c3956..c329c89 100644 --- a/Tiles/HigherAbyssMusicbox.cs +++ b/Tiles/HigherAbyssMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class HigherAbyssMusicbox : ModTile - { - public override void SetDefaults() - { + public class HigherAbyssMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/HiveMindMusicbox.cs b/Tiles/HiveMindMusicbox.cs index dce1f68..5d38f3c 100644 --- a/Tiles/HiveMindMusicbox.cs +++ b/Tiles/HiveMindMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class HiveMindMusicbox : ModTile - { - public override void SetDefaults() - { + public class HiveMindMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/LeviathanMusicbox.cs b/Tiles/LeviathanMusicbox.cs index e57d87e..e92c150 100644 --- a/Tiles/LeviathanMusicbox.cs +++ b/Tiles/LeviathanMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class LeviathanMusicbox : ModTile - { - public override void SetDefaults() - { + public class LeviathanMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/PerforatorMusicbox.cs b/Tiles/PerforatorMusicbox.cs index 743ae7d..5e5c27e 100644 --- a/Tiles/PerforatorMusicbox.cs +++ b/Tiles/PerforatorMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class PerforatorMusicbox : ModTile - { - public override void SetDefaults() - { + public class PerforatorMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/PlaguebringerMusicbox.cs b/Tiles/PlaguebringerMusicbox.cs index 33fc852..a4f62fa 100644 --- a/Tiles/PlaguebringerMusicbox.cs +++ b/Tiles/PlaguebringerMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class PlaguebringerMusicbox : ModTile - { - public override void SetDefaults() - { + public class PlaguebringerMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/PolterghastMusicbox.cs b/Tiles/PolterghastMusicbox.cs index 80bba3f..c6beffb 100644 --- a/Tiles/PolterghastMusicbox.cs +++ b/Tiles/PolterghastMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class PolterghastMusicbox : ModTile - { - public override void SetDefaults() - { + public class PolterghastMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/ProfanedGuardianMusicbox.cs b/Tiles/ProfanedGuardianMusicbox.cs index 93318d8..c164d70 100644 --- a/Tiles/ProfanedGuardianMusicbox.cs +++ b/Tiles/ProfanedGuardianMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class ProfanedGuardianMusicbox : ModTile - { - public override void SetDefaults() - { + public class ProfanedGuardianMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/ProvidenceMusicbox.cs b/Tiles/ProvidenceMusicbox.cs index 90ce575..68f33eb 100644 --- a/Tiles/ProvidenceMusicbox.cs +++ b/Tiles/ProvidenceMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class ProvidenceMusicbox : ModTile - { - public override void SetDefaults() - { + public class ProvidenceMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/RavagerMusicbox.cs b/Tiles/RavagerMusicbox.cs index f055969..4db8a3b 100644 --- a/Tiles/RavagerMusicbox.cs +++ b/Tiles/RavagerMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class RavagerMusicbox : ModTile - { - public override void SetDefaults() - { + public class RavagerMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/SCalAMusicbox.cs b/Tiles/SCalAMusicbox.cs index 3b2c689..81e1e4c 100644 --- a/Tiles/SCalAMusicbox.cs +++ b/Tiles/SCalAMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class SCalAMusicbox : ModTile - { - public override void SetDefaults() - { + public class SCalAMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/SCalEMusicbox.cs b/Tiles/SCalEMusicbox.cs index 1b48687..93d55bc 100644 --- a/Tiles/SCalEMusicbox.cs +++ b/Tiles/SCalEMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class SCalEMusicbox : ModTile - { - public override void SetDefaults() - { + public class SCalEMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/SCalGMusicbox.cs b/Tiles/SCalGMusicbox.cs index 56123e8..66e7ec1 100644 --- a/Tiles/SCalGMusicbox.cs +++ b/Tiles/SCalGMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class SCalGMusicbox : ModTile - { - public override void SetDefaults() - { + public class SCalGMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/SCalLMusicbox.cs b/Tiles/SCalLMusicbox.cs index 3f46bb7..d1cc125 100644 --- a/Tiles/SCalLMusicbox.cs +++ b/Tiles/SCalLMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class SCalLMusicbox : ModTile - { - public override void SetDefaults() - { + public class SCalLMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/SignusMusicbox.cs b/Tiles/SignusMusicbox.cs index f9f4a4a..ce83cdc 100644 --- a/Tiles/SignusMusicbox.cs +++ b/Tiles/SignusMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class SignusMusicbox : ModTile - { - public override void SetDefaults() - { + public class SignusMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/SirenIdleMusicbox.cs b/Tiles/SirenIdleMusicbox.cs index 59bbbf0..9bf723f 100644 --- a/Tiles/SirenIdleMusicbox.cs +++ b/Tiles/SirenIdleMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class SirenIdleMusicbox : ModTile - { - public override void SetDefaults() - { + public class SirenIdleMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/SirenMusicbox.cs b/Tiles/SirenMusicbox.cs index d3ca4cd..633ad2e 100644 --- a/Tiles/SirenMusicbox.cs +++ b/Tiles/SirenMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class SirenMusicbox : ModTile - { - public override void SetDefaults() - { + public class SirenMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/SlimeGodMusicbox.cs b/Tiles/SlimeGodMusicbox.cs index 66f1196..d175945 100644 --- a/Tiles/SlimeGodMusicbox.cs +++ b/Tiles/SlimeGodMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class SlimeGodMusicbox : ModTile - { - public override void SetDefaults() - { + public class SlimeGodMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/StormWeaverMusicbox.cs b/Tiles/StormWeaverMusicbox.cs index d8c4cda..0a80501 100644 --- a/Tiles/StormWeaverMusicbox.cs +++ b/Tiles/StormWeaverMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class StormWeaverMusicbox : ModTile - { - public override void SetDefaults() - { + public class StormWeaverMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/SulphurousMusicbox.cs b/Tiles/SulphurousMusicbox.cs index aa57fa2..266cf4f 100644 --- a/Tiles/SulphurousMusicbox.cs +++ b/Tiles/SulphurousMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class SulphurousMusicbox : ModTile - { - public override void SetDefaults() - { + public class SulphurousMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/SunkenSeaMusicbox.cs b/Tiles/SunkenSeaMusicbox.cs index 032d049..fa051f0 100644 --- a/Tiles/SunkenSeaMusicbox.cs +++ b/Tiles/SunkenSeaMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class SunkenSeaMusicbox : ModTile - { - public override void SetDefaults() - { + public class SunkenSeaMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/VoidMusicbox.cs b/Tiles/VoidMusicbox.cs index 0f0642a..4de0c12 100644 --- a/Tiles/VoidMusicbox.cs +++ b/Tiles/VoidMusicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class VoidMusicbox : ModTile - { - public override void SetDefaults() - { + public class VoidMusicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/Yharon1Musicbox.cs b/Tiles/Yharon1Musicbox.cs index 4a970ee..d5603d3 100644 --- a/Tiles/Yharon1Musicbox.cs +++ b/Tiles/Yharon1Musicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class Yharon1Musicbox : ModTile - { - public override void SetDefaults() - { + public class Yharon1Musicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/Yharon2Musicbox.cs b/Tiles/Yharon2Musicbox.cs index 8eedd17..e5da2df 100644 --- a/Tiles/Yharon2Musicbox.cs +++ b/Tiles/Yharon2Musicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class Yharon2Musicbox : ModTile - { - public override void SetDefaults() - { + public class Yharon2Musicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) { diff --git a/Tiles/Yharon3Musicbox.cs b/Tiles/Yharon3Musicbox.cs index 032acc2..e513bf8 100644 --- a/Tiles/Yharon3Musicbox.cs +++ b/Tiles/Yharon3Musicbox.cs @@ -6,10 +6,10 @@ using Terraria.DataStructures; namespace CalamityModMusic.Tiles { - public class Yharon3Musicbox : ModTile - { - public override void SetDefaults() - { + public class Yharon3Musicbox : ModTile + { + public override void SetDefaults() + { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); @@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles AddMapEntry(new Color(200, 200, 200), name); } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); - } + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType()); + } public override void MouseOver(int i, int j) {