diff --git a/Items/Placeables/SulphurousMusicbox.cs b/Items/Placeables/SulphurousMusicbox.cs index ef1c585..54adc36 100644 --- a/Items/Placeables/SulphurousMusicbox.cs +++ b/Items/Placeables/SulphurousMusicbox.cs @@ -8,7 +8,7 @@ namespace CalamityModMusic.Items.Placeables public override void SetStaticDefaults() { SacrificeTotal = 1; - DisplayName.SetDefault("Music Box (Sulphurous Sea)"); + DisplayName.SetDefault("Music Box (Sulphurous Sea Day)"); } public override void SetDefaults() diff --git a/Items/Placeables/SulphurousSeaNightMusicbox.cs b/Items/Placeables/SulphurousSeaNightMusicbox.cs new file mode 100644 index 0000000..e2be4f0 --- /dev/null +++ b/Items/Placeables/SulphurousSeaNightMusicbox.cs @@ -0,0 +1,30 @@ +using Terraria.ModLoader; +using Terraria.ID; + +namespace CalamityModMusic.Items.Placeables +{ + public class SulphurousSeaNightMusicbox : ModItem + { + public override void SetStaticDefaults() + { + SacrificeTotal = 1; + DisplayName.SetDefault("Music Box (Sulphurous Sea Night)"); + } + + public override void SetDefaults() + { + Item.useStyle = ItemUseStyleID.Swing; + 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; + } + } +} diff --git a/Items/Placeables/SulphurousSeaNightMusicbox.png b/Items/Placeables/SulphurousSeaNightMusicbox.png new file mode 100644 index 0000000..f1d20c6 Binary files /dev/null and b/Items/Placeables/SulphurousSeaNightMusicbox.png differ diff --git a/MusicBoxRegistry.cs b/MusicBoxRegistry.cs index 5d77cae..063aa68 100644 --- a/MusicBoxRegistry.cs +++ b/MusicBoxRegistry.cs @@ -46,6 +46,7 @@ using SirenMusicbox = CalamityModMusic.Items.Placeables.SirenMusicbox; using SlimeGodMusicbox = CalamityModMusic.Items.Placeables.SlimeGodMusicbox; using StormWeaverMusicbox = CalamityModMusic.Items.Placeables.StormWeaverMusicbox; using SulphurousMusicbox = CalamityModMusic.Items.Placeables.SulphurousMusicbox; +using SulphurousSeaNightMusicbox = CalamityModMusic.Items.Placeables.SulphurousSeaNightMusicbox; using SunkenSeaMusicbox = CalamityModMusic.Items.Placeables.SunkenSeaMusicbox; using VoidMusicbox = CalamityModMusic.Items.Placeables.VoidMusicbox; using Yharon1Musicbox = CalamityModMusic.Items.Placeables.Yharon1Musicbox; @@ -113,7 +114,8 @@ namespace CalamityModMusic AddMusicBox("Sounds/Music/BioLab", ModContent.ItemType(), ModContent.TileType()); AddMusicBox("Sounds/Music/Crag", ModContent.ItemType(), ModContent.TileType()); AddMusicBox("Sounds/Music/Calamity", ModContent.ItemType(), ModContent.TileType()); //Seamless - AddMusicBox("Sounds/Music/SulphurousSea", ModContent.ItemType(), ModContent.TileType()); + AddMusicBox("Sounds/Music/SulphurousSeaDay", ModContent.ItemType(), ModContent.TileType()); + AddMusicBox("Sounds/Music/SulphurousSeaNight", ModContent.ItemType(), ModContent.TileType()); AddMusicBox("Sounds/Music/SunkenSea", ModContent.ItemType(), ModContent.TileType()); // Event Music. diff --git a/Sounds/Music/SulphurousSea.ogg b/Sounds/Music/SulphurousSeaDay.ogg similarity index 100% rename from Sounds/Music/SulphurousSea.ogg rename to Sounds/Music/SulphurousSeaDay.ogg diff --git a/Sounds/Music/SulphurousSeaNight.ogg b/Sounds/Music/SulphurousSeaNight.ogg new file mode 100644 index 0000000..cd9b299 Binary files /dev/null and b/Sounds/Music/SulphurousSeaNight.ogg differ diff --git a/Tiles/SulphurousSeaNightMusicbox.cs b/Tiles/SulphurousSeaNightMusicbox.cs new file mode 100644 index 0000000..677c36b --- /dev/null +++ b/Tiles/SulphurousSeaNightMusicbox.cs @@ -0,0 +1,45 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class SulphurousSeaNightMusicbox : ModTile + { + public override void SetStaticDefaults() + { + 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); + TileID.Sets.DisableSmartCursor[Type] = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(191, 142, 111), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(new EntitySource_TileBreak(i * 16, j * 16), i * 16, j * 16, 16, 48, ModContent.ItemType()); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.cursorItemIconEnabled = true; + player.cursorItemIconID = ModContent.ItemType(); + } + + public override bool CreateDust(int i, int j, ref int type) + { + return false; + } + } +} diff --git a/Tiles/SulphurousSeaNightMusicbox.png b/Tiles/SulphurousSeaNightMusicbox.png new file mode 100644 index 0000000..020a035 Binary files /dev/null and b/Tiles/SulphurousSeaNightMusicbox.png differ diff --git a/description_workshop.txt b/description_workshop.txt index 80722c7..67ec934 100644 --- a/description_workshop.txt +++ b/description_workshop.txt @@ -12,7 +12,9 @@ Full list of tracks: [olist] [*] DM Dokuro - The Tale of a Cruel World [*] DM Dokuro - sanctuary +[*] Heart Plus Up! - Engineer's Sanctum [*] DM Dokuro - wasteland +[*] Heart Plus Up! - caustic tides [*] DM Dokuro - The Step Below Hell [*] DM Dokuro - Guardian of the Former Seas [*] RoverdriveX - corrosion!