Added Pinkie's placeholder Exo Mechs theme and the Exo Mechs music box.

This commit is contained in:
Ozzatron committed 2021-11-12 11:15:35 -05:00
1 parent 139a1ee531
commit 8d65dcb8c8
6 files changed
+78 -1

No files matched your search

+9 -1
View File
@@ -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<DesertScourgeMusicbox>(), ModContent.TileType<Tiles.DesertScourgeMusicbox>());
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/ScourgeofTheUniverse"), ModContent.ItemType<DoGMusicbox>(), ModContent.TileType<Tiles.DoGMusicbox>());
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/UniversalCollapse"), ModContent.ItemType<DoGP2Musicbox>(), ModContent.TileType<Tiles.DoGP2Musicbox>());
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/ExoMechs"), ModContent.ItemType<ExoMechsMusicboxItem>(), ModContent.TileType<Tiles.ExoMechsMusicbox>());
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/HiveMind"), ModContent.ItemType<HiveMindMusicbox>(), ModContent.TileType<Tiles.HiveMindMusicbox>());
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/LeviathanAndSiren"), ModContent.ItemType<LeviathanMusicbox>(), ModContent.TileType<Tiles.LeviathanMusicbox>());
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BoomerDuke"), ModContent.ItemType<BoomerDukeMusicbox>(), ModContent.TileType<Tiles.BoomerDukeMusicboxTile>());
@@ -325,6 +327,12 @@ namespace CalamityModMusic
"Yharon",
new List<int>() {ModContent.ItemType<Yharon2Musicbox>(), ModContent.ItemType<Yharon1Musicbox>(), ModContent.ItemType<Yharon3Musicbox>()});
bossChecklist.Call(
"AddToBossCollection",
calamity.Name,
"Exo Mechs",
new List<int>() { ModContent.ItemType<ExoMechsMusicbox>() });
bossChecklist.Call(
"AddToBossCollection",
calamity.Name,
+29
View File
@@ -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<Tiles.ExoMechsMusicbox>();
item.width = 24;
item.height = 24;
item.rare = ItemRarityID.LightRed;
item.value = 100000;
item.accessory = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

Binary file not shown.
+40
View File
@@ -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<ExoMechsMusicboxItem>());
}
public override void MouseOver(int i, int j)
{
Player player = Main.LocalPlayer;
player.noThrow = 2;
player.showItemIcon = true;
player.showItemIcon2 = ModContent.ItemType<ExoMechsMusicboxItem>();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 997 B