diff --git a/CalamityModMusic.cs b/CalamityModMusic.cs index 98e4df1..d08a9c3 100644 --- a/CalamityModMusic.cs +++ b/CalamityModMusic.cs @@ -16,12 +16,12 @@ using AquaticScourgeMusicbox = CalamityModMusic.Items.Placeables.AquaticScourgeM using AstrageldonMusicbox = CalamityModMusic.Items.Placeables.AstrageldonMusicbox; using AstralMusicbox = CalamityModMusic.Items.Placeables.AstralMusicbox; using AstrumDeusMusicbox = CalamityModMusic.Items.Placeables.AstrumDeusMusicbox; -using BrimmyMusicbox = CalamityModMusic.Items.Placeables.BrimmyMusicbox; using BossRush1Musicbox = CalamityModMusic.Items.Placeables.BossRushTier1MusicboxItem; using BossRush2Musicbox = CalamityModMusic.Items.Placeables.BossRushTier2MusicboxItem; using BossRush3Musicbox = CalamityModMusic.Items.Placeables.BossRushTier3MusicboxItem; using BossRush4Musicbox = CalamityModMusic.Items.Placeables.BossRushTier4MusicboxItem; using BossRush5Musicbox = CalamityModMusic.Items.Placeables.BossRushTier5MusicboxItem; +using BrimmyMusicbox = CalamityModMusic.Items.Placeables.BrimmyMusicbox; using BumblebirbMusicbox = CalamityModMusic.Items.Placeables.BumblebirbMusicbox; using CalamitasMusicbox = CalamityModMusic.Items.Placeables.CalamitasMusicbox; using CalamityMusicbox = CalamityModMusic.Items.Placeables.CalamityMusicbox; @@ -32,6 +32,7 @@ using CryogenMusicbox = CalamityModMusic.Items.Placeables.CryogenMusicbox; using DesertScourgeMusicbox = CalamityModMusic.Items.Placeables.DesertScourgeMusicbox; using DoGMusicbox = CalamityModMusic.Items.Placeables.DoGMusicbox; using DoGP2Musicbox = CalamityModMusic.Items.Placeables.DoGP2Musicbox; +using ExoMechsMusicbox = CalamityModMusic.Items.Placeables.ExoMechsMusicboxItem; using HigherAbyssMusicbox = CalamityModMusic.Items.Placeables.HigherAbyssMusicbox; using HiveMindMusicbox = CalamityModMusic.Items.Placeables.HiveMindMusicbox; using LeviathanMusicbox = CalamityModMusic.Items.Placeables.LeviathanMusicbox; @@ -100,6 +101,7 @@ namespace CalamityModMusic AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DesertScourge"), ModContent.ItemType(), ModContent.TileType()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/ScourgeofTheUniverse"), ModContent.ItemType(), ModContent.TileType()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/UniversalCollapse"), 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/LeviathanAndSiren"), ModContent.ItemType(), ModContent.TileType()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BoomerDuke"), ModContent.ItemType(), ModContent.TileType()); @@ -325,6 +327,12 @@ namespace CalamityModMusic "Yharon", new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}); + bossChecklist.Call( + "AddToBossCollection", + calamity.Name, + "Exo Mechs", + new List() { ModContent.ItemType() }); + bossChecklist.Call( "AddToBossCollection", calamity.Name, diff --git a/Items/Placeables/ExoMechsMusicboxItem.cs b/Items/Placeables/ExoMechsMusicboxItem.cs new file mode 100644 index 0000000..ae79b7f --- /dev/null +++ b/Items/Placeables/ExoMechsMusicboxItem.cs @@ -0,0 +1,29 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + 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; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/ExoMechsMusicboxItem.png b/Items/Placeables/ExoMechsMusicboxItem.png new file mode 100644 index 0000000..8e696a8 Binary files /dev/null and b/Items/Placeables/ExoMechsMusicboxItem.png differ diff --git a/Sounds/Music/ExoMechs.ogg b/Sounds/Music/ExoMechs.ogg new file mode 100644 index 0000000..88e3816 Binary files /dev/null and b/Sounds/Music/ExoMechs.ogg differ diff --git a/Tiles/ExoMechsMusicbox.cs b/Tiles/ExoMechsMusicbox.cs new file mode 100644 index 0000000..26f9173 --- /dev/null +++ b/Tiles/ExoMechsMusicbox.cs @@ -0,0 +1,40 @@ +using CalamityModMusic.Items.Placeables; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +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 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(); + } + } +} diff --git a/Tiles/ExoMechsMusicbox.png b/Tiles/ExoMechsMusicbox.png new file mode 100644 index 0000000..1a06e21 Binary files /dev/null and b/Tiles/ExoMechsMusicbox.png differ