Merge: Nycro's Interludes and Music Events
This merge obviates the "Calamity Interludes In-Game" mod, by Nycro.
No files matched your search
@@ -28,11 +28,7 @@ namespace CalamityModMusic
|
||||
ModLoader.TryGetMod("MusicDisplay", out musicDisplay);
|
||||
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
if (wikithis is not null)
|
||||
wikithis.Call("AddModURL", this, CalamityWikiURL);
|
||||
}
|
||||
|
||||
wikithis?.Call("AddModURL", this, CalamityWikiURL);
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
|
||||
@@ -91,6 +91,7 @@ namespace CalamityModMusic
|
||||
AddMusic("BrimstoneElemental", "DMDOKURO");
|
||||
AddMusic("CalamitasClone", "DMDOKURO");
|
||||
AddMusic("CalamitasDefeat", "DMDOKURO");
|
||||
AddMusic("CalamitasDefeat_LongFade", "DMDOKURO");
|
||||
AddMusic("CalamitasPhase1", "DMDOKURO");
|
||||
AddMusic("CalamitasPhase2", "DMDOKURO");
|
||||
AddMusic("CalamitasPhase3", "DMDOKURO");
|
||||
@@ -99,11 +100,15 @@ namespace CalamityModMusic
|
||||
AddMusic("Crabulon", "DMDOKURO");
|
||||
AddMusic("Cryogen", "DMDOKURO");
|
||||
AddMusic("DesertScourge", "DMDOKURO");
|
||||
AddMusic("DevourerofGodsEulogy", "DMDOKURO");
|
||||
AddMusic("DevourerofGodsPhase1", "DMDOKURO");
|
||||
AddMusic("DevourerofGodsPhase2", "DMDOKURO");
|
||||
AddMusic("Dragonfolly", "DMDOKURO");
|
||||
AddMusic("ExoMechs", "PinpinNeon");
|
||||
AddMusic("HiveMind", "DMDOKUROFeature");
|
||||
AddMusic("Interlude1", "DMDOKURO");
|
||||
AddMusic("Interlude2", "DMDOKURO");
|
||||
AddMusic("Interlude3", "DMDOKURO");
|
||||
AddMusic("Leviathan", "DMDOKURO");
|
||||
AddMusic("OldDuke", "DMDOKURO");
|
||||
AddMusic("Perforators", "DMDOKUROFeature");
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class DevourerofGodsEulogyMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.DevourerofGodsEulogyMusicBox>();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 455 B |
@@ -0,0 +1,9 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class Interlude1MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.Interlude1MusicBox>();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 443 B |
@@ -0,0 +1,9 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class Interlude2MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.Interlude2MusicBox>();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 424 B |
@@ -0,0 +1,9 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class Interlude3MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.Interlude3MusicBox>();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 431 B |
@@ -164,6 +164,11 @@ Mods: {
|
||||
Tooltip: Plays 'Guardian of the Former Seas' by DM DOKURO
|
||||
}
|
||||
|
||||
DevourerofGodsEulogyMusicBox: {
|
||||
DisplayName: Music Box (Devourer of Gods - Eulogy)
|
||||
Tooltip: Plays 'Scourge of the Universe (Eulogy for the Ego)' by DM DOKURO
|
||||
}
|
||||
|
||||
DevourerofGodsPhase1MusicBox: {
|
||||
DisplayName: Music Box (Devourer of Gods - Phase 1)
|
||||
Tooltip: Plays 'Scourge of the Universe' by DM DOKURO
|
||||
@@ -193,6 +198,21 @@ Mods: {
|
||||
Tooltip: Plays 'The Filthy Mind' by DM DOKURO and SixteenInMono
|
||||
}
|
||||
|
||||
Interlude1MusicBox: {
|
||||
DisplayName: Music Box (Interlude 1)
|
||||
Tooltip: Plays 'Silence before the storms' by DM DOKURO
|
||||
}
|
||||
|
||||
Interlude2MusicBox: {
|
||||
DisplayName: Music Box (Interlude 2)
|
||||
Tooltip: Plays 'Storms before the catastrophes' by DM DOKURO
|
||||
}
|
||||
|
||||
Interlude3MusicBox: {
|
||||
DisplayName: Music Box (Interlude 3)
|
||||
Tooltip: Plays 'Catastrophes before the calamity' by DM DOKURO
|
||||
}
|
||||
|
||||
LeviathanMusicBox: {
|
||||
DisplayName: Music Box (Leviathan)
|
||||
Tooltip: Plays 'Forbidden Lullaby' by DM DOKURO
|
||||
@@ -309,6 +329,7 @@ Mods: {
|
||||
BrimstoneElemental: Left Alone
|
||||
CalamitasClone: Raw, Unfiltered Calamity
|
||||
CalamitasDefeat: Stained, Brutal Calamity (Acceptance)
|
||||
CalamitasDefeat_LongFade: Stained, Brutal Calamity (Acceptance)
|
||||
CalamitasPhase1: Stained, Brutal Calamity (Grief)
|
||||
CalamitasPhase2: Stained, Brutal Calamity (Lament)
|
||||
CalamitasPhase3: Stained, Brutal Calamity (Epiphany)
|
||||
@@ -317,11 +338,15 @@ Mods: {
|
||||
Crabulon: Infestation
|
||||
Cryogen: Antarctic Reinforcement
|
||||
DesertScourge: Guardian of the Former Seas
|
||||
DevourerofGodsEulogy: Eulogy for the Ego
|
||||
DevourerofGodsPhase1: Scourge of the Universe
|
||||
DevourerofGodsPhase2: Universal Collapse
|
||||
Dragonfolly: Murderswarm
|
||||
ExoMechs: Inferior Fabrications
|
||||
HiveMind: The Filthy Mind
|
||||
Interlude1: Silence Before the Storms
|
||||
Interlude2: Storms Before the Catastrophes
|
||||
Interlude3: Catastrophes Before the Calamity
|
||||
Leviathan: Forbidden Lullaby
|
||||
OldDuke: Toxic Wisdom
|
||||
Perforators: Blood Coagulant
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
using Terraria;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using AbyssLayer1MusicBox = CalamityModMusic.Items.Placeables.AbyssLayer1MusicBox;
|
||||
using AbyssLayer2MusicBox = CalamityModMusic.Items.Placeables.AbyssLayer2MusicBox;
|
||||
@@ -32,11 +35,15 @@ using CeaselessVoidMusicBox = CalamityModMusic.Items.Placeables.CeaselessVoidMus
|
||||
using CrabulonMusicBox = CalamityModMusic.Items.Placeables.CrabulonMusicBox;
|
||||
using CryogenMusicBox = CalamityModMusic.Items.Placeables.CryogenMusicBox;
|
||||
using DesertScourgeMusicBox = CalamityModMusic.Items.Placeables.DesertScourgeMusicBox;
|
||||
using DevourerofGodsEulogyMusicBox = CalamityModMusic.Items.Placeables.DevourerofGodsEulogyMusicBox;
|
||||
using DevourerofGodsPhase1MusicBox = CalamityModMusic.Items.Placeables.DevourerofGodsPhase1MusicBox;
|
||||
using DevourerofGodsPhase2MusicBox = CalamityModMusic.Items.Placeables.DevourerofGodsPhase2MusicBox;
|
||||
using DragonfollyMusicBox = CalamityModMusic.Items.Placeables.DragonfollyMusicBox;
|
||||
using ExoMechsMusicBox = CalamityModMusic.Items.Placeables.ExoMechsMusicBox;
|
||||
using HiveMindMusicBox = CalamityModMusic.Items.Placeables.HiveMindMusicBox;
|
||||
using Interlude1MusicBox = CalamityModMusic.Items.Placeables.Interlude1MusicBox;
|
||||
using Interlude2MusicBox = CalamityModMusic.Items.Placeables.Interlude2MusicBox;
|
||||
using Interlude3MusicBox = CalamityModMusic.Items.Placeables.Interlude3MusicBox;
|
||||
using LeviathanMusicBox = CalamityModMusic.Items.Placeables.LeviathanMusicBox;
|
||||
using OldDukeMusicBox = CalamityModMusic.Items.Placeables.OldDukeMusicBox;
|
||||
using PerforatorsMusicBox = CalamityModMusic.Items.Placeables.PerforatorsMusicBox;
|
||||
@@ -133,6 +140,30 @@ namespace CalamityModMusic
|
||||
|
||||
// Other Music.
|
||||
AddMusicBox("Sounds/Music/CalamityTitle", ModContent.ItemType<CalamityTitleMusicBox>(), ModContent.TileType<Tiles.CalamityTitleMusicBox>()); //Seamless
|
||||
AddMusicBox("Sounds/Music/Interlude1", ModContent.ItemType<Interlude1MusicBox>(), ModContent.TileType<Tiles.Interlude1MusicBox>());
|
||||
AddMusicBox("Sounds/Music/Interlude2", ModContent.ItemType<Interlude2MusicBox>(), ModContent.TileType<Tiles.Interlude2MusicBox>());
|
||||
AddMusicBox("Sounds/Music/Interlude3", ModContent.ItemType<Interlude3MusicBox>(), ModContent.TileType<Tiles.Interlude3MusicBox>());
|
||||
AddMusicBox("Sounds/Music/DevourerofGodsEulogy", ModContent.ItemType<DevourerofGodsEulogyMusicBox>(), ModContent.TileType<Tiles.DevourerofGodsEulogyMusicBox>());
|
||||
|
||||
// This makes it so that the SCal "Acceptance" event records a regular acceptance music box, despite them
|
||||
// technically being 2 separate tracks
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// `musicToItem` is a Dictionary of music slots to item types that is used to
|
||||
// convert music boxes while music is playing
|
||||
//
|
||||
// It is marked as internal, so we need to use reflection to modify it directly, but
|
||||
// by doing so we can make it so that 2 different tracks point to the same music box
|
||||
FieldInfo info = typeof(MusicLoader).GetField("musicToItem", BindingFlags.NonPublic | BindingFlags.Static);
|
||||
var musicToItem = (Dictionary<int, int>)info.GetValue(null);
|
||||
|
||||
int musicSlot = MusicLoader.GetMusicSlot(CalamityModMusic.Instance, "Sounds/Music/CalamitasDefeat_LongFade");
|
||||
int itemType = ModContent.ItemType<CalamitasDefeatMusicBox>();
|
||||
|
||||
// The FieldInfo returns the same Dictionary instance as the one in the music loader,
|
||||
// so the field does not need to have its value re-set so long as the Dictionary is modified
|
||||
musicToItem[musicSlot] = itemType;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
using CalamityModMusic.Items.Placeables;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic
|
||||
{
|
||||
public class NPCShops : GlobalNPC
|
||||
{
|
||||
public override void ModifyShop(NPCShop shop)
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
Condition DownedCalamitasClone = new("", () => (bool)calamity.Call("GetBossDowned", "calamitasclone"));
|
||||
Condition DownedYharon = new("", () => (bool)calamity.Call("GetBossDowned", "yharon"));
|
||||
Condition DownedDevourerofGods = new("", () => (bool)calamity.Call("GetBossDowned", "devourerofgods"));
|
||||
|
||||
if (calamityMod && shop.NpcType == calamity.Find<ModNPC>("FAP").Type)
|
||||
{
|
||||
shop.Add(ModContent.ItemType<Interlude1MusicBox>(), DownedCalamitasClone);
|
||||
shop.Add(ModContent.ItemType<Interlude2MusicBox>(), Condition.DownedMoonLord);
|
||||
shop.Add(ModContent.ItemType<Interlude3MusicBox>(), DownedYharon);
|
||||
shop.Add(ModContent.ItemType<DevourerofGodsEulogyMusicBox>(), DownedDevourerofGods);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class DevourerofGodsEulogyMusicBox : MusicBoxTile
|
||||
{
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 712 B |
@@ -0,0 +1,6 @@
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class Interlude1MusicBox : MusicBoxTile
|
||||
{
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 724 B |
@@ -0,0 +1,6 @@
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class Interlude2MusicBox : MusicBoxTile
|
||||
{
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 693 B |
@@ -0,0 +1,6 @@
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class Interlude3MusicBox : MusicBoxTile
|
||||
{
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 707 B |
@@ -29,12 +29,14 @@ Full list of tracks:
|
||||
[*] DM DOKURO - Outcast of the Sulphurous Seas
|
||||
[*] DM DOKURO - Left Alone
|
||||
[*] DM DOKURO - Raw, Unfiltered Calamity
|
||||
[*] DM DOKURO - Silence Before the Storms
|
||||
[*] RoverdriveX - R'LYEH
|
||||
[*] DM DOKURO - The Leviathan Trilogy (split into three songs)
|
||||
[*] DM DOKURO - Interstellar Stomper
|
||||
[*] DM DOKURO - Fly of Beelzebub
|
||||
[*] DM DOKURO - Open Frenzy
|
||||
[*] DM DOKURO - Pest of the Cosmos
|
||||
[*] DM DOKURO - Storms Before the Catastrophes
|
||||
[*] DM DOKURO - Unholy Ambush
|
||||
[*] DM DOKURO - Murderswarm
|
||||
[*] DM DOKURO - Unholy Insurgency
|
||||
@@ -45,9 +47,11 @@ Full list of tracks:
|
||||
[*] DM DOKURO - Toxic Wisdom
|
||||
[*] DM DOKURO - Scourge of the Universe
|
||||
[*] DM DOKURO - Universal Collapse
|
||||
[*] DM DOKURO - Eulogy for the Ego
|
||||
[*] DM DOKURO - Infernal Catharsis
|
||||
[*] DM DOKURO - Infernal Catharsis (Rebirth)
|
||||
[*] DM DOKURO - Roar of the Jungle Dragon
|
||||
[*] DM DOKURO - Catastrophes Before the Calamity
|
||||
[*] PinpinNeon - Inferior Fabrications
|
||||
[*] DM DOKURO - Stained, Brutal Calamity (split into four songs)
|
||||
[*] DM DOKURO - Threats of the Ocean Floor
|
||||
|
||||