v2.1
No files matched your search
@@ -0,0 +1,57 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace UnCalamityModMusic.Common
|
||||
{
|
||||
public class BossDetection : ModSystem
|
||||
{
|
||||
public static bool AreThereAnyBosses = false;
|
||||
|
||||
public static bool IsABoss(NPC npc)
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
if (npc is null || !npc.active)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Add Slime God Paladins to the count
|
||||
if (calamityMod)
|
||||
{
|
||||
if (npc.type == calamity.Find<ModNPC>("EbonianPaladin").Type ||
|
||||
npc.type == calamity.Find<ModNPC>("CrimulanPaladin").Type ||
|
||||
npc.type == calamity.Find<ModNPC>("SplitEbonianPaladin").Type ||
|
||||
npc.type == calamity.Find<ModNPC>("SplitCrimulanPaladin").Type)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Any boss, minus Martian Saucer, plus Eater of Worlds
|
||||
return (npc.boss &&
|
||||
npc.type != NPCID.MartianSaucerCore) ||
|
||||
npc.type == NPCID.EaterofWorldsBody ||
|
||||
npc.type == NPCID.EaterofWorldsHead ||
|
||||
npc.type == NPCID.EaterofWorldsTail;
|
||||
}
|
||||
|
||||
public static bool AnyBossNPCS()
|
||||
{
|
||||
foreach (NPC npc in Main.ActiveNPCs)
|
||||
{
|
||||
if (IsABoss(npc))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void PreUpdateEntities()
|
||||
{
|
||||
AreThereAnyBosses = AnyBossNPCS();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,10 +25,6 @@ namespace UnCalamityModMusic.Common.Configs
|
||||
[DefaultValue(true)]
|
||||
public bool HardmodeInterlude { get; set; }
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool AbyssLayer3Alt { get; set; }
|
||||
|
||||
[Header("$Mods.UnCalamityModMusic.Configs.MusicConfig.ConditionChangesHeader")]
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
|
||||
@@ -27,11 +27,6 @@ namespace UnCalamityModMusic.Common.Configs
|
||||
|
||||
[Header("$Mods.UnCalamityModMusic.Configs.OtherConfig.OtherChangesHeader")]
|
||||
|
||||
[ReloadRequired]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
public bool MusicBoxRecipes { get; set; }
|
||||
|
||||
[ReloadRequired]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
{ "Terraria MoonLord", ModContent.ItemType<Content.Items.MoonLordMusicBox>() },
|
||||
//{ "Terraria CultistBoss", ModContent.ItemType<Content.Items.LunaticCultistMusicBox>() },
|
||||
//{ "Terraria HallowBoss", ModContent.ItemType<Content.Items.EmpressofLightMusicBox>() },
|
||||
//{ "Terraria DukeFishron", ModContent.ItemType<Content.Items.DukeFishronMusicBox>() },
|
||||
{ "Terraria DukeFishron", ModContent.ItemType<Content.Items.DukeFishronMusicBox>() },
|
||||
//{ "Terraria Golem", ModContent.ItemType<Content.Items.GolemMusicBox>() },
|
||||
//{ "Terraria Plantera", ModContent.ItemType<Content.Items.PlanteraMusicBox>() },
|
||||
//{ "Terraria SkeletronPrime", ModContent.ItemType<Content.Items.SkeletronPrimeMusicBox>() },
|
||||
@@ -33,6 +33,7 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
//{ "Terraria QueenSlimeBoss", ModContent.ItemType<Content.Items.QueenSlimeMusicBox>() },
|
||||
{ "Terraria WallofFlesh", ModContent.ItemType<Content.Items.WallofFleshMusicBox>() },
|
||||
{ "Terraria Skeletron", ModContent.ItemType<Content.Items.SkeletronMusicBox>() },
|
||||
//{ "Terraria Deerclops", ModContent.ItemType<Content.Items.DeerclopsMusicBox>() },
|
||||
//{ "Terraria QueenBee", ModContent.ItemType<Content.Items.QueenBeeMusicBox>() },
|
||||
{ "Terraria BrainofCthulhu", ModContent.ItemType<Content.Items.BrainofCthulhuMusicBox>() },
|
||||
{ "Terraria EaterofWorlds", ModContent.ItemType<Content.Items.EaterofWorldsMusicBox>() },
|
||||
@@ -46,7 +47,8 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
//{ "Terraria LunarEvent", new List<int> { ModContent.ItemType<Content.Items.CelestialPillarVortexMusicBox>(), ModContent.ItemType<Content.Items.CelestialPillarNebulaMusicBox>(), ModContent.ItemType<Content.Items.CelestialPillarStardustMusicBox>(), ModContent.ItemType<Content.Items.CelestialPillarSolarMusicBox>() } },
|
||||
//{ "Terraria MartianMadness", ModContent.ItemType<Content.Items.MartianMadnessMusicBox>() },
|
||||
//{ "Terraria FrostMoon", ModContent.ItemType<Content.Items.FrostMoonMusicBox>() },
|
||||
//{ "Terraria PumpkinMoon", ModContent.ItemType<Content.Items.PumpkinMoonMusicBox>() },
|
||||
{ "Terraria PumpkinMoon", ModContent.ItemType<Content.Items.PumpkinMoonMusicBox>() },
|
||||
//{ "Terraria OldOnesArmy ", new List<int> { ModContent.ItemType<Content.Items.OldOnesArmyTier1MusicBox>(), ModContent.ItemType<Content.Items.OldOnesArmyTier2MusicBox>(), ModContent.ItemType<Content.Items.OldOnesArmyTier3MusicBox>() } },
|
||||
//{ "Terraria PirateInvasion", ModContent.ItemType<Content.Items.PirateInvasionMusicBox>() },
|
||||
//{ "Terraria GoblinArmy", ModContent.ItemType<Content.Items.GoblinArmyMusicBox>() },
|
||||
//{ "Terraria Eclipse", ModContent.ItemType<Content.Items.SolarEclipseMusicBox>() },
|
||||
|
||||
@@ -147,11 +147,8 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
}
|
||||
}
|
||||
//Makes the VCMM Desert theme play in the Lost Colosseum after Argus is defeated, instead of vanilla music
|
||||
[JITWhenModsEnabled("InfernumMode")]
|
||||
public class LostColosseum_Aftermath : ModSceneEffect
|
||||
{
|
||||
public static bool downedArgus => InfernumMode.Content.Subworlds.LostColosseum.HasBereftVassalBeenDefeated;
|
||||
|
||||
public override int Music => MusicPathing.GetMusicSlot("Desert");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
@@ -164,7 +161,11 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
|
||||
if (infernumMod)
|
||||
{
|
||||
if (downedArgus)
|
||||
NPC fakeNPC = new();
|
||||
int npcType = infernum.Find<ModNPC>("BereftVassal").Type;
|
||||
fakeNPC.SetDefaults(npcType);
|
||||
|
||||
if (!NPC.AnyNPCs(npcType) && Main.BestiaryTracker.Kills.GetKillCount(fakeNPC) > 0)
|
||||
{
|
||||
return PlayerFlags.ZoneLostColosseum;
|
||||
}
|
||||
|
||||
@@ -25,10 +25,9 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
display.Call("AddMusic", slot, Language.GetTextValue("Mods.UnCalamityModMusic.ModSupport.MusicDisplay.SongNames." + songKey), Language.GetTextValue("Mods.UnCalamityModMusic.ModSupport.MusicDisplay.Authors." + authorKey), Mod.DisplayName);
|
||||
}
|
||||
|
||||
AddMusic("AbyssLayer3Alt", "HeartPlusUp", "Alternates");
|
||||
AddMusic("Space", "HeartPlusUp", "Biomes");
|
||||
AddMusic("Underworld", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("Aether", "", "Biomes");
|
||||
AddMusic("Aether", "Forge", "Biomes");
|
||||
//AddMusic("Graveyard", "", "Biomes");
|
||||
AddMusic("Meteorite", "HeartPlusUp", "Biomes");
|
||||
AddMusic("WorkshopTier6", "HeartPlusUp", "Biomes");
|
||||
@@ -70,7 +69,7 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
AddMusic("MoonLord", "psykomatic", "Bosses");
|
||||
//AddMusic("LunaticCultist", "", "Bosses");
|
||||
//AddMusic("EmpressofLight", "", "Bosses");
|
||||
//AddMusic("DukeFishron", "", "Bosses");
|
||||
AddMusic("DukeFishron", "TYESKI", "Bosses");
|
||||
//AddMusic("Golem", "", "Bosses");
|
||||
//AddMusic("Plantera", "", "Bosses");
|
||||
//AddMusic("Mechs", "", "Bosses");
|
||||
@@ -78,8 +77,10 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
//AddMusic("Twins", "", "Bosses");
|
||||
//AddMusic("Destroyer", "", "Bosses");
|
||||
//AddMusic("QueenSlime", "", "Bosses");
|
||||
//AddMusic("Dreadnautilus", "", "Bosses");
|
||||
AddMusic("WallofFlesh", "HeartPlusUp", "Bosses");
|
||||
AddMusic("Skeletron", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("Deerclops", "", "Bosses");
|
||||
//AddMusic("QueenBee", "", "Bosses");
|
||||
AddMusic("BrainofCthulhu", "HeartPlusUpFeature2", "Bosses");
|
||||
AddMusic("EaterofWorlds", "HeartPlusUp", "Bosses");
|
||||
@@ -93,9 +94,11 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
//AddMusic("CelestialPillarVortex", "", "Events");
|
||||
//AddMusic("MartianMadness", "", "Events");
|
||||
//AddMusic("FrostMoon", "", "Events");
|
||||
//AddMusic("PumpkinMoon", "", "Events");
|
||||
AddMusic("PumpkinMoon", "TYRANT", "Events");
|
||||
//AddMusic("OldOnesArmyTier3", "", "Events");
|
||||
//AddMusic("OldOnesArmyTier2", "", "Events");
|
||||
//AddMusic("OldOnesArmyTier1", "", "Events");
|
||||
//AddMusic("PirateInvasion", "", "Events");
|
||||
//AddMusic("FrostLegion", "", "Events");
|
||||
//AddMusic("GoblinArmy", "", "Events");
|
||||
//AddMusic("SolarEclipse", "", "Events");
|
||||
AddMusic("BloodMoon", "Thriplerex", "Events");
|
||||
@@ -106,17 +109,18 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
AddMusic("OceanRain", "HeartPlusUp", "Events");
|
||||
//AddMusic("Thunderstorm", "", "Events");
|
||||
AddMusic("TownRain", "HeartPlusUp", "Events");
|
||||
AddMusic("Rain", "HeartPlusUp", "Events");
|
||||
AddMusic("RainNight", "HeartPlusUp", "Events");
|
||||
AddMusic("RainDay", "HeartPlusUp", "Events");
|
||||
AddMusic("TownParty", "HeartPlusUp", "Events");
|
||||
//AddMusic("WindyDay", "", "Events");
|
||||
AddMusic("LanternFestival", "HeartPlusUp", "Events");
|
||||
AddMusic("HardmodeInterlude", "Salvati", "Misc");
|
||||
AddMusic("FalseEpilogue", "HeartPlusUp", "Misc");
|
||||
//AddMusic("DragonsLull", "", "Misc");
|
||||
AddMusic("RainLegacy", "HeartPlusUp", "Misc");
|
||||
AddMusic("FalseEpilogue", "TYRANT", "Misc");
|
||||
//AddMusic("ImpendingDoom", "", "Misc");
|
||||
//AddMusic("CultistRitual", "", "Misc");
|
||||
//AddMusic("MechEngaging", "", "Misc");
|
||||
AddMusic("HardmodeInterlude", "Salvati", "Misc");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common.Configs;
|
||||
|
||||
namespace UnCalamityModMusic.Common.Music
|
||||
{
|
||||
//Ambience Scenes
|
||||
public class BeeHive_Ambience_Remnants : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "BeeHive";
|
||||
|
||||
public override SceneEffectPriority ScenePriority => SceneEffectPriority.BiomeHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return PlayerFlags.ZoneHive && !ModContent.GetInstance<OtherConfig>().DisableBeeHiveAmbience && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class Geodes_Ambience_Remnants : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "Caverns";
|
||||
|
||||
public override SceneEffectPriority ScenePriority => ModContent.GetInstance<Geodes_Remnants>().Priority;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ModContent.GetInstance<Geodes_Remnants>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class JungleUnderground_Ambience_Remnants : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "JungleUnderground";
|
||||
|
||||
public override SceneEffectPriority ScenePriority => ModContent.GetInstance<JungleUnderground_Remnants>().Priority;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ModContent.GetInstance<JungleUnderground_Remnants>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
//Biome Scenes
|
||||
public class Geodes_Remnants : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("Geodes");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
|
||||
public override float GetWeight(Player player) => 0.51f;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return PlayerFlags.ZoneGraniteCave || PlayerFlags.ZoneMarbleCave;
|
||||
}
|
||||
}
|
||||
public class JungleUnderground_Remnants : ModSceneEffect
|
||||
{
|
||||
//public override int Music => MusicPathing.GetMusicSlot("JungleUnderground");
|
||||
public override int Music
|
||||
{
|
||||
get
|
||||
{
|
||||
bool otherworldMusicActive = PlayerFlags.SwapMusic();
|
||||
return otherworldMusicActive ? MusicID.OtherworldlyJungle : MusicID.JungleUnderground;
|
||||
}
|
||||
}
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
|
||||
public override float GetWeight(Player player) => 0.51f;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return PlayerFlags.ZoneHive;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -99,29 +99,72 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
if (calamityMod)
|
||||
{
|
||||
behindLabWall =
|
||||
backWall.WallType == WallID.ObsidianBrick ||
|
||||
backWall.WallType == WallID.Glass ||
|
||||
backWall.WallType == WallID.SnowWallUnsafe ||
|
||||
backWall.WallType == WallID.IceUnsafe ||
|
||||
backWall.WallType == WallID.Waterfall ||
|
||||
backWall.WallType == WallID.Lavafall ||
|
||||
backWall.WallType == WallID.IronBrick ||
|
||||
backWall.WallType == calamity.Find<ModWall>("AstralIceWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("AstralSnowWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("HavocplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("CinderplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("ElumplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("HazardChevronWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPanelWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPlateBeam").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPlatePillar").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPlatingWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("NavyplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("PlagueContainmentCellsWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("PlaguedPlateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("RustedPlatePillar").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("RustedPlatingWall").Type;
|
||||
// When Calamity 2.1+ is not enabled
|
||||
if (calamity.Version < new Version(2, 1))
|
||||
{
|
||||
behindLabWall =
|
||||
backWall.WallType == WallID.ObsidianBrick ||
|
||||
backWall.WallType == WallID.Glass ||
|
||||
backWall.WallType == WallID.SnowWallUnsafe ||
|
||||
backWall.WallType == WallID.IceUnsafe ||
|
||||
backWall.WallType == WallID.Waterfall ||
|
||||
backWall.WallType == WallID.Lavafall ||
|
||||
backWall.WallType == WallID.IronBrick ||
|
||||
backWall.WallType == calamity.Find<ModWall>("AstralIceWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("AstralSnowWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("HavocplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("CinderplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("ElumplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("HazardChevronWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPanelWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPlateBeam").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPlatePillar").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPlatingWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("NavyplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("PlagueContainmentCellsWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("PlaguedPlateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("RustedPlatePillar").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("RustedPlatingWall").Type;
|
||||
}
|
||||
else
|
||||
{
|
||||
behindLabWall =
|
||||
backWall.WallType == WallID.AmberGemspark ||
|
||||
backWall.WallType == WallID.AncientSilverBrickWall ||
|
||||
backWall.WallType == WallID.CopperPlating ||
|
||||
backWall.WallType == WallID.EmeraldGemspark ||
|
||||
backWall.WallType == WallID.Granite ||
|
||||
backWall.WallType == WallID.GrayBrick ||
|
||||
backWall.WallType == WallID.IridescentBrick ||
|
||||
backWall.WallType == WallID.IronBrick ||
|
||||
backWall.WallType == WallID.Lavafall ||
|
||||
backWall.WallType == WallID.LavaMossBlockWall ||
|
||||
backWall.WallType == WallID.LeadBrick ||
|
||||
backWall.WallType == WallID.ObsidianBrick ||
|
||||
backWall.WallType == WallID.RubyGemspark ||
|
||||
backWall.WallType == WallID.SapphireGemspark ||
|
||||
backWall.WallType == WallID.SilverBrick ||
|
||||
backWall.WallType == WallID.StoneSlab ||
|
||||
backWall.WallType == WallID.TinPlating ||
|
||||
backWall.WallType == WallID.TopazGemspark ||
|
||||
backWall.WallType == WallID.Waterfall ||
|
||||
backWall.WallType == calamity.Find<ModWall>("CinderplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("ElumplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("EutrophicGlassWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("HavocplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("HazardChevronWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPanelWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPlateBeam").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPlatePillar").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("LaboratoryPlatingWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("NavyplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("OnyxplateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("PlagueContainmentCellsWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("PlaguedPlateWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("RustedPlatePillar").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("RustedPlatingWall").Type ||
|
||||
backWall.WallType == calamity.Find<ModWall>("ShellstoneSlabWall").Type;
|
||||
}
|
||||
|
||||
nearBioLabPoint =
|
||||
sunkenSeaLabDistance <= labRadius ||
|
||||
@@ -166,42 +209,45 @@ namespace UnCalamityModMusic.Common.Music
|
||||
{
|
||||
public override string Path => "RainHeavy";
|
||||
|
||||
public override SceneEffectPriority ScenePriority => ModContent.GetInstance<Rain>().Priority;
|
||||
public override SceneEffectPriority ScenePriority => ModContent.GetInstance<RainDay>().Priority;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = ModContent.GetInstance<Rain>().IsSceneEffectActive(player);
|
||||
bool condition2 = ModContent.GetInstance<Thunderstorm>().IsSceneEffectActive(player);
|
||||
bool condition1 = ModContent.GetInstance<RainDay>().IsSceneEffectActive(player);
|
||||
bool condition2 = ModContent.GetInstance<RainNight>().IsSceneEffectActive(player);
|
||||
bool condition3 = ModContent.GetInstance<Thunderstorm>().IsSceneEffectActive(player);
|
||||
|
||||
return (condition1 || condition2) && Main.maxRaining >= 0.6 && base.IsSceneEffectActive(player);
|
||||
return (condition1 || condition2 || condition3) && Main.maxRaining >= 0.6 && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class RainNormal_Ambience : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "RainNormal";
|
||||
|
||||
public override SceneEffectPriority ScenePriority => ModContent.GetInstance<Rain>().Priority;
|
||||
public override SceneEffectPriority ScenePriority => ModContent.GetInstance<RainDay>().Priority;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = ModContent.GetInstance<Rain>().IsSceneEffectActive(player);
|
||||
bool condition2 = ModContent.GetInstance<Thunderstorm>().IsSceneEffectActive(player);
|
||||
bool condition1 = ModContent.GetInstance<RainDay>().IsSceneEffectActive(player);
|
||||
bool condition2 = ModContent.GetInstance<RainNight>().IsSceneEffectActive(player);
|
||||
bool condition3 = ModContent.GetInstance<Thunderstorm>().IsSceneEffectActive(player);
|
||||
|
||||
return (condition1 || condition2) && Main.maxRaining >= 0.4 && Main.maxRaining < 0.6 && base.IsSceneEffectActive(player);
|
||||
return (condition1 || condition2 || condition3) && Main.maxRaining >= 0.4 && Main.maxRaining < 0.6 && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class RainLight_Ambience : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "RainLight";
|
||||
|
||||
public override SceneEffectPriority ScenePriority => ModContent.GetInstance<Rain>().Priority;
|
||||
public override SceneEffectPriority ScenePriority => ModContent.GetInstance<RainDay>().Priority;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = ModContent.GetInstance<Rain>().IsSceneEffectActive(player);
|
||||
bool condition2 = ModContent.GetInstance<Thunderstorm>().IsSceneEffectActive(player);
|
||||
bool condition1 = ModContent.GetInstance<RainDay>().IsSceneEffectActive(player);
|
||||
bool condition2 = ModContent.GetInstance<RainNight>().IsSceneEffectActive(player);
|
||||
bool condition3 = ModContent.GetInstance<Thunderstorm>().IsSceneEffectActive(player);
|
||||
|
||||
return (condition1 || condition2) && Main.maxRaining < 0.4 && base.IsSceneEffectActive(player);
|
||||
return (condition1 || condition2 || condition3) && Main.maxRaining < 0.4 && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class JungleTemple_Ambience : AmbienceBaseScene
|
||||
@@ -435,30 +481,6 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return ModContent.GetInstance<Graveyard>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class BeeHive_Remnants_Ambience : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "BeeHive";
|
||||
|
||||
public override SceneEffectPriority ScenePriority => SceneEffectPriority.BiomeHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return PlayerFlags.ZoneHive && !ModContent.GetInstance<OtherConfig>().DisableBeeHiveAmbience && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class BeeHive_Ambience : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "BeeHive";
|
||||
|
||||
public override SceneEffectPriority ScenePriority => SceneEffectPriority.BiomeMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
Tile backWall = Framing.GetTileSafely((int)(player.Center.X / 16), (int)(player.Center.Y / 16));
|
||||
|
||||
return backWall.WallType == WallID.HiveUnsafe && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight) && !player.ZoneMeteor && !ModContent.GetInstance<OtherConfig>().DisableBeeHiveAmbience && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class SpiderCave_Ambience : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "SpiderCave";
|
||||
@@ -472,17 +494,6 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return backWall.WallType == WallID.SpiderUnsafe && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight) && !player.ZoneMeteor && !ModContent.GetInstance<OtherConfig>().DisableSpiderCaveAmbience && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class Geodes_Remnants_Ambience : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "Caverns";
|
||||
|
||||
public override SceneEffectPriority ScenePriority => ModContent.GetInstance<Geodes_Remnants>().Priority;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ModContent.GetInstance<Geodes_Remnants>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class Geodes_Ambience : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "Caverns";
|
||||
@@ -508,17 +519,6 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return (condition1 || condition2) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class JungleUnderground_Remnants_Ambience : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "JungleUnderground";
|
||||
|
||||
public override SceneEffectPriority ScenePriority => ModContent.GetInstance<JungleUnderground_Remnants>().Priority;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ModContent.GetInstance<JungleUnderground_Remnants>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class JungleUnderground_Ambience : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "JungleUnderground";
|
||||
@@ -610,17 +610,6 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return ModContent.GetInstance<Desert>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class DesertUnderground_Remnants_Ambience : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "DesertUnderground";
|
||||
|
||||
public override SceneEffectPriority ScenePriority => ModContent.GetInstance<DesertUnderground_Remnants>().Priority;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ModContent.GetInstance<DesertUnderground_Remnants>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class DesertUnderground_Ambience : AmbienceBaseScene
|
||||
{
|
||||
public override string Path => "DesertUnderground";
|
||||
|
||||
@@ -38,15 +38,7 @@ namespace UnCalamityModMusic.Common.Music
|
||||
}
|
||||
public class Aether : ModSceneEffect
|
||||
{
|
||||
//public override int Music => MusicPathing.GetMusicSlot("Aether");
|
||||
public override int Music
|
||||
{
|
||||
get
|
||||
{
|
||||
bool otherworldMusicActive = PlayerFlags.SwapMusic();
|
||||
return otherworldMusicActive ? MusicID.OtherworldlyUGHallow : MusicID.Shimmer;
|
||||
}
|
||||
}
|
||||
public override int Music => MusicPathing.GetMusicSlot("Aether");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
||||
|
||||
@@ -278,19 +270,6 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return player.ZoneUnderworldHeight && !(PlayerFlags.TownSceneActive || PlayerFlags.WorkshopSceneActive) && !(PlayerFlags.ZoneBrimstoneCrags || PlayerFlags.ZoneProfanedTemple);
|
||||
}
|
||||
}
|
||||
public class AbyssLayer3Alt : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("AbyssLayer3Alt");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
||||
|
||||
public override float GetWeight(Player player) => 0.51f;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return PlayerFlags.ZoneDeepAbyss && !(PlayerFlags.TownSceneActive || PlayerFlags.WorkshopSceneActive) && ModContent.GetInstance<MusicConfig>().AbyssLayer3Alt;
|
||||
}
|
||||
}
|
||||
public class GlowingMushroomFields : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("GlowingMushroomFields");
|
||||
@@ -376,19 +355,6 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return player.ZoneGraveyard;
|
||||
}
|
||||
}
|
||||
public class Geodes_Remnants : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("Geodes");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
|
||||
public override float GetWeight(Player player) => 0.51f;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return PlayerFlags.ZoneGraniteCave || PlayerFlags.ZoneMarbleCave;
|
||||
}
|
||||
}
|
||||
public class Geodes : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("Geodes");
|
||||
@@ -429,27 +395,6 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return /*Main.dayTime && */player.ZoneJungle && (player.ZoneOverworldHeight || PlayerFlags.onRemixedSurface) && !player.ZoneMeteor && PlayerFlags.notRaining && !LanternNight.LanternsUp;
|
||||
}
|
||||
}
|
||||
public class JungleUnderground_Remnants : ModSceneEffect
|
||||
{
|
||||
//public override int Music => MusicPathing.GetMusicSlot("JungleUnderground");
|
||||
public override int Music
|
||||
{
|
||||
get
|
||||
{
|
||||
bool otherworldMusicActive = PlayerFlags.SwapMusic();
|
||||
return otherworldMusicActive ? MusicID.OtherworldlyJungle : MusicID.JungleUnderground;
|
||||
}
|
||||
}
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
|
||||
public override float GetWeight(Player player) => 0.51f;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return PlayerFlags.ZoneHive;
|
||||
}
|
||||
}
|
||||
public class JungleUnderground : ModSceneEffect
|
||||
{
|
||||
//public override int Music => MusicPathing.GetMusicSlot("JungleUnderground");
|
||||
@@ -573,27 +518,6 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return player.ZoneDesert && !PlayerFlags.ugDesertOriginalHeight;
|
||||
}
|
||||
}
|
||||
public class DesertUnderground_Remnants : ModSceneEffect
|
||||
{
|
||||
//public override int Music => MusicPathing.GetMusicSlot("DesertUnderground");
|
||||
public override int Music
|
||||
{
|
||||
get
|
||||
{
|
||||
bool otherworldMusicActive = PlayerFlags.SwapMusic();
|
||||
return otherworldMusicActive ? MusicID.OtherworldlyDesert : MusicID.UndergroundDesert;
|
||||
}
|
||||
}
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
|
||||
public override float GetWeight(Player player) => 0.51f;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return PlayerFlags.ZonePyramid;
|
||||
}
|
||||
}
|
||||
public class DesertUnderground : ModSceneEffect
|
||||
{
|
||||
//public override int Music => MusicPathing.GetMusicSlot("DesertUnderground");
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.Events;
|
||||
using Terraria.ID;
|
||||
@@ -43,7 +42,7 @@ namespace UnCalamityModMusic.Common.Music
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("ImpendingDoom");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossLow;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event + 1;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
@@ -71,15 +70,35 @@ namespace UnCalamityModMusic.Common.Music
|
||||
}
|
||||
public class CultistRitual : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("CultistRitual");
|
||||
/*public bool AreTheyMad
|
||||
{
|
||||
get
|
||||
{
|
||||
foreach (NPC npc in Main.npc)
|
||||
{
|
||||
if (npc.active && npc.type == NPCID.CultistTablet && npc.localAI[0] == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossLow;
|
||||
public override int Music => MusicPathing.GetMusicSlot("CultistRitual");
|
||||
|
||||
public override SceneEffectPriority Priority => AreTheyMad ? SceneEffectPriority.BossLow : SceneEffectPriority.Environment + 1;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return tablet.localAI[3] == 0f && NPC.AnyNPCs(NPCID.CultistTablet) && Main.npc[NPC.FindFirstNPC(NPCID.CultistTablet)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
return Main.npc[NPC.FindFirstNPC(NPCID.CultistTablet)].localAI[3] != 0f && NPC.AnyNPCs(NPCID.CultistTablet) && Main.npc[NPC.FindFirstNPC(NPCID.CultistTablet)].Distance(player.Center) <= 1450f;
|
||||
}*/
|
||||
double angerFactor = AreTheyMad ? 2.5 : 5;
|
||||
|
||||
bool condition1 = NPC.AnyNPCs(NPCID.CultistTablet) && Main.npc[NPC.FindFirstNPC(NPCID.CultistTablet)].Distance(player.Center) <= PlayerFlags.MusicTileRange / angerFactor;
|
||||
bool condition2 = NPC.AnyNPCs(NPCID.CultistDevote) && Main.npc[NPC.FindFirstNPC(NPCID.CultistDevote)].Distance(player.Center) <= PlayerFlags.MusicTileRange / angerFactor;
|
||||
bool condition3 = NPC.AnyNPCs(NPCID.CultistArcherBlue) && Main.npc[NPC.FindFirstNPC(NPCID.CultistArcherBlue)].Distance(player.Center) <= PlayerFlags.MusicTileRange / angerFactor;
|
||||
|
||||
return (condition1 || condition2 || condition3) && !BossDetection.AreThereAnyBosses;
|
||||
}*/
|
||||
}
|
||||
public class EmpressofLight : ModSceneEffect
|
||||
{
|
||||
@@ -139,15 +158,12 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
bool spazmatismActive = NPC.AnyNPCs(NPCID.Spazmatism) && Main.npc[NPC.FindFirstNPC(NPCID.Spazmatism)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool retinazerActive = NPC.AnyNPCs(NPCID.Retinazer) && Main.npc[NPC.FindFirstNPC(NPCID.Retinazer)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool foveanatorActive = PlayerFlags.FoveanatorActive;
|
||||
bool destroyerHeadActive = NPC.AnyNPCs(NPCID.TheDestroyer) && Main.npc[NPC.FindFirstNPC(NPCID.TheDestroyer)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool destroyerBodyActive = NPC.AnyNPCs(NPCID.TheDestroyerBody) && Main.npc[NPC.FindFirstNPC(NPCID.TheDestroyerBody)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool destroyerTailActive = NPC.AnyNPCs(NPCID.TheDestroyerTail) && Main.npc[NPC.FindFirstNPC(NPCID.TheDestroyerTail)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool skeletronPrime1Active = NPC.AnyNPCs(NPCID.SkeletronPrime) && Main.npc[NPC.FindFirstNPC(NPCID.SkeletronPrime)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool skeletronPrime2Active = PlayerFlags.SkeletronPrime2Active;
|
||||
bool skeletronPrimeActive = NPC.AnyNPCs(NPCID.SkeletronPrime) && Main.npc[NPC.FindFirstNPC(NPCID.SkeletronPrime)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
|
||||
bool skeletronPrimeActive = skeletronPrime1Active || skeletronPrime2Active;
|
||||
bool twinsActive = spazmatismActive || retinazerActive || foveanatorActive;
|
||||
bool twinsActive = spazmatismActive || retinazerActive;
|
||||
bool destroyerActive = destroyerHeadActive || destroyerBodyActive || destroyerTailActive;
|
||||
|
||||
if (destroyerActive && twinsActive && skeletronPrimeActive)
|
||||
@@ -170,31 +186,25 @@ namespace UnCalamityModMusic.Common.Music
|
||||
{
|
||||
public override int Music => InfernumCompatibility.DecideOnMusicPath("SkeletronPrime", "MechBosses");
|
||||
|
||||
public override SceneEffectPriority Priority => PlayerFlags.SkeletronPrime2Active ? InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossMedium) : InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossLow);
|
||||
public override SceneEffectPriority Priority => InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossLow);
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
bool condition1 = NPC.AnyNPCs(NPCID.SkeletronPrime) && Main.npc[NPC.FindFirstNPC(NPCID.SkeletronPrime)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition2 = PlayerFlags.SkeletronPrime2Active;
|
||||
|
||||
return condition1 || condition2;
|
||||
return NPC.AnyNPCs(NPCID.SkeletronPrime) && Main.npc[NPC.FindFirstNPC(NPCID.SkeletronPrime)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
}
|
||||
}
|
||||
public class Twins : ModSceneEffect
|
||||
{
|
||||
public override int Music => InfernumCompatibility.DecideOnMusicPath("Twins", "MechBosses");
|
||||
|
||||
public override SceneEffectPriority Priority => PlayerFlags.FoveanatorActive ? InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossMedium) : InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossLow);
|
||||
public override SceneEffectPriority Priority => InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossLow);
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = NPC.AnyNPCs(NPCID.Spazmatism) && Main.npc[NPC.FindFirstNPC(NPCID.Spazmatism)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition2 = NPC.AnyNPCs(NPCID.Retinazer) && Main.npc[NPC.FindFirstNPC(NPCID.Retinazer)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition3 = PlayerFlags.FoveanatorActive;
|
||||
|
||||
return condition1 || condition2 || condition3;
|
||||
return condition1 || condition2;
|
||||
}
|
||||
}
|
||||
public class Destroyer : ModSceneEffect
|
||||
@@ -216,7 +226,7 @@ namespace UnCalamityModMusic.Common.Music
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("MechEngaging");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossLow;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event + 1;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
@@ -259,17 +269,6 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return condition1 || condition2;
|
||||
}
|
||||
}
|
||||
public class Deerclops : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("Deerclops");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossLow;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return NPC.AnyNPCs(NPCID.Deerclops) && Main.npc[NPC.FindFirstNPC(NPCID.Deerclops)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
}*/
|
||||
}
|
||||
public class Skeletron : ModSceneEffect
|
||||
{
|
||||
public override int Music => InfernumCompatibility.DecideOnMusicPath("Skeletron", "Skeletron");
|
||||
@@ -281,7 +280,18 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return NPC.AnyNPCs(NPCID.SkeletronHead) && Main.npc[NPC.FindFirstNPC(NPCID.SkeletronHead)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
}
|
||||
}
|
||||
public class QueenBee : ModSceneEffect
|
||||
public class Deerclops : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("Deerclops");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossLow;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return NPC.AnyNPCs(NPCID.Deerclops) && Main.npc[NPC.FindFirstNPC(NPCID.Deerclops)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
}*/
|
||||
}
|
||||
public class QueenBee : ModSceneEffect
|
||||
{
|
||||
public override int Music => InfernumCompatibility.DecideOnMusicPath("QueenBee", "QueenBee");
|
||||
|
||||
|
||||
@@ -98,18 +98,40 @@ namespace UnCalamityModMusic.Common.Music
|
||||
}
|
||||
public class PumpkinMoon : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("PumpkinMoon");
|
||||
public override int Music => MusicPathing.GetMusicSlot("PumpkinMoon");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return Main.pumpkinMoon && (PlayerFlags.onSurface || Main.remixWorld);
|
||||
}
|
||||
}
|
||||
public class OldOnesArmyTier3 : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("OldOnesArmyTier3");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return NPC.downedGolemBoss && ModContent.GetInstance<OldOnesArmyTier1>().IsSceneEffectActive(player);
|
||||
}*/
|
||||
}
|
||||
public class OldOnesArmy : ModSceneEffect
|
||||
public class OldOnesArmyTier2 : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("OldOnesArmy");
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("OldOnesArmyTier2");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return NPC.downedMechBossAny && ModContent.GetInstance<OldOnesArmyTier1>().IsSceneEffectActive(player);
|
||||
}*/
|
||||
}
|
||||
public class OldOnesArmyTier1 : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("OldOnesArmyTier1");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event;
|
||||
|
||||
@@ -172,7 +194,7 @@ namespace UnCalamityModMusic.Common.Music
|
||||
}
|
||||
public class FrostLegion : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("FrostLegion");
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("Blizzard");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event;
|
||||
|
||||
@@ -317,19 +339,33 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return PlayerFlags.inTownWithRain && PlayerFlags.notInExcludedTownBiome && !(/*Main._shouldUseStormMusic || */player.ZoneBeach || player.ZoneSnow || player.ZoneGraveyard || player.ZoneMeteor || PlayerFlags.ZoneSulfurSea);
|
||||
return Main.dayTime && PlayerFlags.inTownWithRain && PlayerFlags.notInExcludedTownBiome && !(/*Main._shouldUseStormMusic || */player.ZoneBeach || player.ZoneSnow || player.ZoneGraveyard || player.ZoneMeteor || PlayerFlags.ZoneSulfurSea);
|
||||
}
|
||||
}
|
||||
public class Rain : ModSceneEffect
|
||||
public class RainNight : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("Rain");
|
||||
public override int Music => MusicPathing.GetMusicSlot("RainNight");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = !Main.remixWorld && PlayerFlags.isRaining && PlayerFlags.ZoneOverworldHeightExtra && !(/*Main._shouldUseStormMusic || */player.ZoneSnow || player.ZoneGraveyard || player.ZoneMeteor);
|
||||
bool condition2 = Main.remixWorld && PlayerFlags.isRaining && (double)(player.position.Y / 16f) > Main.rockLayer && player.position.Y / 16f < (float)(Main.maxTilesY - 350) && !(/*Main._shouldUseStormMusic || */player.ZoneSnow || player.ZoneGraveyard || player.ZoneMeteor);
|
||||
bool condition1 = !Main.remixWorld && PlayerFlags.isRaining && !Main.dayTime && PlayerFlags.ZoneOverworldHeightExtra && !(/*Main._shouldUseStormMusic || */player.ZoneSnow || player.ZoneGraveyard || player.ZoneMeteor);
|
||||
bool condition2 = Main.remixWorld && PlayerFlags.isRaining && !Main.dayTime && (double)(player.position.Y / 16f) > Main.rockLayer && player.position.Y / 16f < (float)(Main.maxTilesY - 350) && !(/*Main._shouldUseStormMusic || */player.ZoneSnow || player.ZoneGraveyard || player.ZoneMeteor);
|
||||
|
||||
return condition1 || condition2;
|
||||
}
|
||||
}
|
||||
public class RainDay : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("RainDay");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = !Main.remixWorld && PlayerFlags.isRaining && Main.dayTime && PlayerFlags.ZoneOverworldHeightExtra && !(/*Main._shouldUseStormMusic || */player.ZoneSnow || player.ZoneGraveyard || player.ZoneMeteor);
|
||||
bool condition2 = Main.remixWorld && PlayerFlags.isRaining && Main.dayTime && (double)(player.position.Y / 16f) > Main.rockLayer && player.position.Y / 16f < (float)(Main.maxTilesY - 350) && !(/*Main._shouldUseStormMusic || */player.ZoneSnow || player.ZoneGraveyard || player.ZoneMeteor);
|
||||
|
||||
return condition1 || condition2;
|
||||
}
|
||||
@@ -342,10 +378,13 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = BirthdayParty.PartyIsUp && PlayerFlags.inTown && PlayerFlags.notInExcludedTownBiome && PlayerFlags.notRaining;
|
||||
bool condition2 = BirthdayParty.PartyIsUp && PlayerFlags.inUgTown && PlayerFlags.notInExcludedTownBiome;
|
||||
bool inTownWithWind = player.townNPCs > 2f && Main._shouldUseWindyDayMusic && player.ZoneOverworldHeight;
|
||||
|
||||
return condition1 || condition2;
|
||||
bool condition1 = BirthdayParty.PartyIsUp && PlayerFlags.inTown && PlayerFlags.notInExcludedTownBiome && PlayerFlags.notRaining;
|
||||
bool condition2 = BirthdayParty.PartyIsUp && inTownWithWind && PlayerFlags.notInExcludedTownBiome && PlayerFlags.notRaining;
|
||||
bool condition3 = BirthdayParty.PartyIsUp && PlayerFlags.inUgTown && PlayerFlags.notInExcludedTownBiome;
|
||||
|
||||
return condition1 || condition2 || condition3;
|
||||
}
|
||||
}
|
||||
public class WindyDay : ModSceneEffect
|
||||
|
||||
@@ -10,7 +10,6 @@ using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using Terraria.Utilities;
|
||||
using UnCalamityModMusic.Common.Configs;
|
||||
|
||||
namespace UnCalamityModMusic.Common
|
||||
{
|
||||
@@ -49,10 +48,7 @@ namespace UnCalamityModMusic.Common
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
if (ModContent.GetInstance<OtherConfig>().MusicBoxRecipes)
|
||||
{
|
||||
MusicBoxRecipe();
|
||||
}
|
||||
MusicBoxRecipe();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ using UnCalamityModMusic.Common.Configs;
|
||||
|
||||
namespace UnCalamityModMusic.Common
|
||||
{
|
||||
//This system was created by Nycro for the main Calamity Mod
|
||||
//An altered form of it is here so VCMM doesn't have to rely on external code
|
||||
// This system was created by Nycro for the main Calamity Mod
|
||||
// An altered form of it is here so VCMM doesn't have to rely on external code
|
||||
public record class MusicEventEntry(string Id, int Song, TimeSpan Length, TimeSpan IntroSilence, TimeSpan OutroSilence, Func<bool> ShouldPlay, Func<bool> Enabled);
|
||||
|
||||
public class MusicEvents : ModSystem
|
||||
@@ -59,9 +59,14 @@ namespace UnCalamityModMusic.Common
|
||||
#endregion
|
||||
|
||||
#region Event Handling
|
||||
|
||||
public override void PostUpdateTime()
|
||||
{
|
||||
// If the player is in Infernum's Lost Colosseum, do nothing (would prefer if this happened for all subworlds)
|
||||
if (PlayerFlags.ZoneLostColosseum)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// If the Boss Rush is active, any would-be music events should be cancelled out and marked as played
|
||||
if (PlayerFlags.bossRushActive)
|
||||
{
|
||||
|
||||
@@ -12,9 +12,6 @@ namespace UnCalamityModMusic.Common
|
||||
{
|
||||
musicPaths = new Dictionary<string, int>
|
||||
{
|
||||
//Alternates
|
||||
{"AbyssLayer3Alt", MusicLoader.GetMusicSlot(mod, "Assets/Music/Alternates/AbyssLayer3Alt")},
|
||||
|
||||
//Biomes
|
||||
{"Space", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/Space")},
|
||||
{"Underworld", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/Underworld")},
|
||||
@@ -32,7 +29,6 @@ namespace UnCalamityModMusic.Common
|
||||
{"TownDay", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/TownDay")},
|
||||
{"JungleTemple", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/JungleTemple")},
|
||||
{"Dungeon", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/Dungeon")},
|
||||
{"GlowingMushroomGrove", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/GlowingMushroomGrove")},
|
||||
{"GlowingMushroomFields", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/GlowingMushroomFields")},
|
||||
{"Corruption", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/Corruption")},
|
||||
{"CorruptionUnderground", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/CorruptionUnderground")},
|
||||
@@ -71,9 +67,10 @@ namespace UnCalamityModMusic.Common
|
||||
{"Twins", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/Twins")},
|
||||
{"Destroyer", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/Destroyer")},
|
||||
{"QueenSlime", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/QueenSlime")},
|
||||
{"Dreadnautilus", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/Dreadnautilus")},
|
||||
{"WallofFlesh", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/WallofFlesh")},
|
||||
{"Deerclops", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/Deerclops")},
|
||||
{"Skeletron", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/Skeletron")},
|
||||
{"Deerclops", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/Deerclops")},
|
||||
{"QueenBee", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/QueenBee")},
|
||||
{"BrainofCthulhu", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/BrainofCthulhu")},
|
||||
{"EaterofWorlds", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/EaterofWorlds")},
|
||||
@@ -87,12 +84,13 @@ namespace UnCalamityModMusic.Common
|
||||
{"CelestialPillarStardust", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/CelestialPillarStardust")},
|
||||
{"CelestialPillarNebula", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/CelestialPillarNebula")},
|
||||
{"CelestialPillarVortex", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/CelestialPillarVortex")},
|
||||
{"OldOnesArmy", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/OldOnesArmy")},
|
||||
{"MartianMadness", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/MartianMadness")},
|
||||
{"FrostMoon", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/FrostMoon")},
|
||||
{"PumpkinMoon", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/PumpkinMoon")},
|
||||
{"OldOnesArmyTier3", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/OldOnesArmyTier3")},
|
||||
{"OldOnesArmyTier2", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/OldOnesArmyTier2")},
|
||||
{"OldOnesArmyTier1", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/OldOnesArmyTier1")},
|
||||
{"PirateInvasion", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/PirateInvasion")},
|
||||
{"FrostLegion", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/FrostLegion")},
|
||||
{"GoblinArmy", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/GoblinArmy")},
|
||||
{"SolarEclipse", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/SolarEclipse")},
|
||||
{"BloodMoon", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/BloodMoon")},
|
||||
@@ -103,19 +101,20 @@ namespace UnCalamityModMusic.Common
|
||||
{"OceanRain", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/OceanRain")},
|
||||
{"Thunderstorm", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/Thunderstorm")},
|
||||
{"TownRain", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/TownRain")},
|
||||
{"Rain", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/Rain")},
|
||||
{"RainNight", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/RainNight")},
|
||||
{"RainDay", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/RainDay")},
|
||||
{"TownParty", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/TownParty")},
|
||||
{"WindyDay", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/WindyDay")},
|
||||
{"LanternFestival", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/LanternFestival")},
|
||||
|
||||
//Misc
|
||||
{"HardmodeInterlude", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/HardmodeInterlude")},
|
||||
{"FalseEpilogue", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/FalseEpilogue")},
|
||||
{"DragonsLull", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/DragonsLull")},
|
||||
{"RainLegacy", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/RainLegacy")},
|
||||
{"FalseEpilogue", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/FalseEpilogue")},
|
||||
{"ImpendingDoom", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/ImpendingDoom")},
|
||||
{"CultistRitual", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/CultistRitual")},
|
||||
{"MechEngaging", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/MechEngaging")}
|
||||
{"MechEngaging", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/MechEngaging")},
|
||||
{"HardmodeInterlude", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/HardmodeInterlude")},
|
||||
};
|
||||
|
||||
ambiencePaths = new Dictionary<string, int>
|
||||
|
||||
@@ -40,9 +40,6 @@ namespace UnCalamityModMusic.Common
|
||||
public static bool revengeanceMode;
|
||||
public static bool bossRushActive;
|
||||
|
||||
public static bool FoveanatorActive;
|
||||
public static bool SkeletronPrime2Active;
|
||||
|
||||
public static bool ZoneBrimstoneCrags;
|
||||
public static bool ZoneProfanedTemple;
|
||||
public static bool ZoneAstralInfection;
|
||||
@@ -236,10 +233,7 @@ namespace UnCalamityModMusic.Common
|
||||
revengeanceMode = (bool)calamity.Call("DifficultyActive", "revengeance");
|
||||
bossRushActive = (bool)calamity.Call("DifficultyActive", "bossrush");
|
||||
|
||||
FoveanatorActive = calamity.Version >= new Version(2, 1, 0, 1) && NPC.AnyNPCs(calamity.Find<ModNPC>("Foveanator").Type) && Main.npc[NPC.FindFirstNPC(calamity.Find<ModNPC>("Foveanator").Type)].Distance(player.Center) <= MusicTileRange;
|
||||
SkeletronPrime2Active = NPC.AnyNPCs(calamity.Find<ModNPC>("SkeletronPrime2").Type) && Main.npc[NPC.FindFirstNPC(calamity.Find<ModNPC>("SkeletronPrime2").Type)].Distance(player.Center) <= MusicTileRange;
|
||||
|
||||
ZoneBrimstoneCrags = (bool)calamity.Call("GetInZone", player, "crags");
|
||||
ZoneBrimstoneCrags = (bool)calamity.Call("GetInZone", player, "crags");
|
||||
ZoneAstralInfection = (bool)calamity.Call("GetInZone", player, "astral");
|
||||
ZoneSulfurSea =
|
||||
(bool)calamity.Call("GetInZone", player, "sulfur") &&
|
||||
@@ -292,7 +286,7 @@ namespace UnCalamityModMusic.Common
|
||||
ZonePyramid = player.InModBiome(remnants.Find<ModBiome>("Pyramid"));
|
||||
ZoneGraniteCave = player.InModBiome(remnants.Find<ModBiome>("GraniteCave"));
|
||||
ZoneMarbleCave = player.InModBiome(remnants.Find<ModBiome>("MarbleCave"));
|
||||
ZoneHive = player.InModBiome(remnants.Find<ModBiome>("Hive"));
|
||||
ZoneHive = player.InModBiome(remnants.Find<ModBiome>("Beehive"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,12 +30,7 @@ namespace UnCalamityModMusic.Common
|
||||
tileCenters[type] = centers;
|
||||
}
|
||||
|
||||
bool found = false;
|
||||
for (int index = 0; index < centers.Count; index++)
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
bool found = centers.Count > 0;
|
||||
|
||||
if (!found)
|
||||
{
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Items
|
||||
{
|
||||
[LegacyName("AbyssLowAltMusicBox")]
|
||||
public class AbyssLayer3AltMusicBox : MusicBoxItem
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AbyssLayer3AltMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "AbyssLayer3Alt";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
if (calamityMod)
|
||||
{
|
||||
try
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(calamity, "PyreMantleMolten", 10)
|
||||
.AddIngredient(calamity, "DepthCells", 10)
|
||||
.AddIngredient(calamity, "ChaoticOre", 10)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 349 B |
@@ -0,0 +1,12 @@
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Items
|
||||
{
|
||||
public class AetherMusicBox : MusicBoxItem
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AetherMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Aether";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 469 B |
@@ -1,6 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -12,38 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BloodMoonDeathMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "BloodMoonDeath";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
if (calamityMod)
|
||||
{
|
||||
try
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddRecipeGroup("VCMM:EvilPowderGroup", 10)
|
||||
.AddIngredient(calamity, "BloodOrb", 10)
|
||||
.AddIngredient(ItemID.Deathweed, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddRecipeGroup("VCMM:EvilPowderGroup", 10)
|
||||
.AddIngredient(ItemID.Deathweed, 3)
|
||||
.AddIngredient(ItemID.BloodMoonStarter, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -12,38 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BloodMoonMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "BloodMoon";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
if (calamityMod)
|
||||
{
|
||||
try
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddRecipeGroup("VCMM:EvilPowderGroup", 10)
|
||||
.AddIngredient(calamity, "BloodOrb", 10)
|
||||
.AddIngredient(ItemID.FallenStar, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddRecipeGroup("VCMM:EvilPowderGroup", 10)
|
||||
.AddIngredient(ItemID.FallenStar, 3)
|
||||
.AddIngredient(ItemID.BloodMoonStarter, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,14 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BrainofCthulhuMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "BrainofCthulhu";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.BrainofCthulhuTrophy, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,14 +13,13 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override string MusicFilePath => "Caverns";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.StoneBlock, 10)
|
||||
.AddIngredient(ItemID.SiltBlock, 10)
|
||||
.AddRecipeGroup("VCMM:GoldOreGroup", 10)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
{
|
||||
// Contingent recipe for when in Hardmode
|
||||
/*Recipe.Create(Type, 1)
|
||||
.AddIngredient(ModContent.ItemType<UndergroundHardmodeMusicBox>())
|
||||
.AddIngredient(ModContent.ItemType<WallofFleshMusicBox>())
|
||||
.AddTile(TileID.TinkerersWorkbench)
|
||||
.Register();*/
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CorruptionMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Corruption";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Ebonwood, 10)
|
||||
.AddIngredient(ItemID.RottenChunk, 10)
|
||||
.AddIngredient(ItemID.VileMushroom, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -11,16 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CorruptionUndergroundMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "CorruptionUnderground";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.EbonstoneBlock, 10)
|
||||
.AddIngredient(ItemID.RottenChunk, 10)
|
||||
.AddIngredient(ItemID.ShadowOrb, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CrimsonMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Crimson";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Shadewood, 10)
|
||||
.AddIngredient(ItemID.Vertebrae, 10)
|
||||
.AddIngredient(ItemID.ViciousMushroom, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -11,16 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CrimsonUndergroundMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "CrimsonUnderground";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.CrimstoneBlock, 10)
|
||||
.AddIngredient(ItemID.Vertebrae, 10)
|
||||
.AddIngredient(ItemID.CrimsonHeart, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.DesertMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Desert";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Cactus, 10)
|
||||
.AddIngredient(ItemID.SandBlock, 10)
|
||||
.AddIngredient(ItemID.Waterleaf, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Items
|
||||
{
|
||||
public class DukeFishronMusicBox : MusicBoxItem
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.DukeFishronMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "DukeFishron";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 509 B |
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,32 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.DungeonMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Dungeon";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.BlueBrick, 10)
|
||||
.AddIngredient(ItemID.Bone, 10)
|
||||
.AddIngredient(ItemID.GoldenKey, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.GreenBrick, 10)
|
||||
.AddIngredient(ItemID.Bone, 10)
|
||||
.AddIngredient(ItemID.GoldenKey, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.PinkBrick, 10)
|
||||
.AddIngredient(ItemID.Bone, 10)
|
||||
.AddIngredient(ItemID.GoldenKey, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,14 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.EaterofWorldsMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "EaterofWorlds";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.EaterofWorldsTrophy, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,36 +1,67 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common.Configs;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Items.External
|
||||
{
|
||||
public class MusicBox : GlobalItem
|
||||
{
|
||||
public override void SetDefaults(Item item)
|
||||
{
|
||||
//Make all music boxes stack to 9999 instead of 1
|
||||
if (item.Name.Contains("Music Box"))
|
||||
{
|
||||
item.maxStack = 9999;
|
||||
}
|
||||
public class MusicBox : GlobalItem
|
||||
{
|
||||
public override void SetDefaults(Item item)
|
||||
{
|
||||
// Make the empty music box placeable when its resprite is enabled
|
||||
if (item.type == ItemID.MusicBox)
|
||||
{
|
||||
if (ModContent.GetInstance<OtherConfig>().MusicBoxResprite)
|
||||
{
|
||||
item.useStyle = ItemUseStyleID.Swing;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.External.MusicBox>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public class MusicBoxRecipe : ModSystem
|
||||
{
|
||||
public static RecipeGroup CopperBarGroup;
|
||||
|
||||
if (item.type == ItemID.MusicBox)
|
||||
{
|
||||
if (ModContent.GetInstance<OtherConfig>().MusicBoxResprite)
|
||||
{
|
||||
item.useStyle = ItemUseStyleID.Swing;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.External.MusicBox>();
|
||||
}
|
||||
//item.value = Item.buyPrice(1, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Unload()
|
||||
{
|
||||
CopperBarGroup = null;
|
||||
}
|
||||
|
||||
public override void AddRecipeGroups()
|
||||
{
|
||||
CopperBarGroup = new RecipeGroup
|
||||
(
|
||||
() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.CopperBar)}",
|
||||
ItemID.CopperBar, ItemID.TinBar
|
||||
);
|
||||
RecipeGroup.RegisterGroup("VCMM:CopperBarGroup", CopperBarGroup);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
// When Calamity 2.1+ is not enabled (this recipe gets deprecated)
|
||||
if (calamityMod && calamity.Version < new Version(2, 1))
|
||||
{
|
||||
Recipe.Create(ItemID.MusicBox, 1)
|
||||
.AddRecipeGroup(RecipeGroupID.Wood, 6)
|
||||
.AddRecipeGroup("VCMM:CopperBarGroup", 5)
|
||||
.AddRecipeGroup(RecipeGroupID.IronBar, 2)
|
||||
.AddIngredient(ItemID.LifeCrystal, 1)
|
||||
.AddTile(TileID.Anvils)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,14 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.EyeofCthulhuMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "EyeofCthulhu";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.EyeofCthulhuTrophy, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -11,16 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.ForestDayAfternoonMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "ForestDayAfternoon";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Wood, 10)
|
||||
.AddIngredient(ItemID.DirtBlock, 10)
|
||||
.AddIngredient(ItemID.Sunflower, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 370 B After Width: | Height: | Size: 607 B |
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -11,16 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.ForestDayDawnMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "ForestDayDawn";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Wood, 10)
|
||||
.AddIngredient(ItemID.DirtBlock, 10)
|
||||
.AddIngredient(ItemID.Daybloom, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 573 B |
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -11,16 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.ForestDayEveningMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "ForestDayEvening";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Wood, 10)
|
||||
.AddIngredient(ItemID.DirtBlock, 10)
|
||||
.AddIngredient(ItemID.Mushroom, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 576 B |
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -11,16 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.ForestDayMorningMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "ForestDayMorning";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Wood, 10)
|
||||
.AddIngredient(ItemID.DirtBlock, 10)
|
||||
.AddIngredient(ItemID.YellowMarigold, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 364 B After Width: | Height: | Size: 600 B |
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -11,16 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.ForestNightMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "ForestNight";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Wood, 10)
|
||||
.AddIngredient(ItemID.DirtBlock, 10)
|
||||
.AddIngredient(ItemID.FallenStar, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 361 B After Width: | Height: | Size: 598 B |
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.GeodesMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Geodes";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Granite, 10)
|
||||
.AddIngredient(ItemID.Marble, 10)
|
||||
.AddRecipeGroup("VCMM:GoldBarGroup", 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.GlowingMushroomFieldsMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "GlowingMushroomFields";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.GlowingMushroom, 10)
|
||||
.AddIngredient(ItemID.MudBlock, 10)
|
||||
.AddIngredient(ItemID.MushroomGrassSeeds, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.JungleDayMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "JungleDay";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.RichMahogany, 10)
|
||||
.AddIngredient(ItemID.MudBlock, 10)
|
||||
.AddIngredient(ItemID.Moonglow, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,14 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.KingSlimeMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "KingSlime";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.KingSlimeTrophy, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.LanternFestivalMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "LanternFestival";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddRecipeGroup(RecipeGroupID.Wood, 10)
|
||||
.AddIngredient(ItemID.ReleaseLantern, 10)
|
||||
.AddIngredient(ItemID.FallenStar, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,15 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.MeteoriteMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Meteorite";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Meteorite, 10)
|
||||
.AddIngredient(ItemID.FallenStar, 10)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,14 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.MoonLordMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "MoonLord";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.MoonLordTrophy, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.OceanDayMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "OceanDay";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.PalmWood, 10)
|
||||
.AddIngredient(ItemID.SandBlock, 10)
|
||||
.AddIngredient(ItemID.Seashell, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.OceanNightMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "OceanNight";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.PalmWood, 10)
|
||||
.AddIngredient(ItemID.SandBlock, 10)
|
||||
.AddIngredient(ItemID.Starfish, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.OceanRainMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "OceanRain";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.PalmWood, 10)
|
||||
.AddIngredient(ItemID.RainCloud, 10)
|
||||
.AddIngredient(ItemID.Coral, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Items
|
||||
{
|
||||
public class PumpkinMoonMusicBox : MusicBoxItem
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.PumpkinMoonMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "PumpkinMoon";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 500 B |
@@ -0,0 +1,13 @@
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Items
|
||||
{
|
||||
[LegacyName("RainMusicBox")]
|
||||
public class RainDayMusicBox : MusicBoxItem
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.RainDayMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "RainDay";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 618 B |
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -16,10 +15,16 @@ namespace UnCalamityModMusic.Content.Items
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
// Does not play in-game
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ModContent.ItemType<RainMusicBox>(), 1)
|
||||
.AddIngredient(ModContent.ItemType<MoonLordMusicBox>(), 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStationVanilla)
|
||||
.AddIngredient(ModContent.ItemType<RainDayMusicBox>())
|
||||
.AddIngredient(ModContent.ItemType<MoonLordMusicBox>())
|
||||
.AddTile(TileID.TinkerersWorkbench)
|
||||
.Register();
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ModContent.ItemType<RainNightMusicBox>())
|
||||
.AddIngredient(ModContent.ItemType<MoonLordMusicBox>())
|
||||
.AddTile(TileID.TinkerersWorkbench)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Items
|
||||
{
|
||||
public class RainMusicBox : MusicBoxItem
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.RainMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Rain";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Glowstick, 10)
|
||||
.AddIngredient(ItemID.RainCloud, 10)
|
||||
.AddIngredient(ItemID.WaterBucket, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 382 B |
@@ -0,0 +1,12 @@
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Items
|
||||
{
|
||||
public class RainNightMusicBox : MusicBoxItem
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.RainNightMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "RainNight";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 708 B |
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.SandstormMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Sandstorm";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.AncientCloth, 10)
|
||||
.AddIngredient(ItemID.SandBlock, 10)
|
||||
.AddIngredient(ItemID.AncientBattleArmorMaterial, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,14 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.SkeletronMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Skeletron";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.SkeletronTrophy, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,24 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.SlimeRainMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "SlimeRain";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Gel, 10)
|
||||
.AddIngredient(ItemID.PinkGel, 10)
|
||||
.AddIngredient(ItemID.GoldCrown, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Gel, 10)
|
||||
.AddIngredient(ItemID.PinkGel, 10)
|
||||
.AddIngredient(ItemID.PlatinumCrown, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.SpaceMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Space";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Cloud, 10)
|
||||
.AddIngredient(ItemID.RainCloud, 10)
|
||||
.AddIngredient(ItemID.SunplateBlock, 10)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.TorchGodMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "TorchGod";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.StoneBlock, 10)
|
||||
.AddIngredient(ItemID.Torch, 10)
|
||||
.AddIngredient(ItemID.UltrabrightTorch, 10)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -11,28 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.TorchGodRevengeanceMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "TorchGodRevengeance";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
if (calamityMod)
|
||||
{
|
||||
try
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.StoneBlock, 10)
|
||||
.AddIngredient(calamity, "GloomTorch", 10)
|
||||
.AddIngredient(calamity, "RefractivePrismTorch", 10)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.TownDayMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "TownDay";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddRecipeGroup(RecipeGroupID.Wood, 10)
|
||||
.AddIngredient(ItemID.SilverCoin, 10)
|
||||
.AddIngredient(ItemID.Sunflower, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.TownNightMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "TownNight";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddRecipeGroup(RecipeGroupID.Wood, 10)
|
||||
.AddIngredient(ItemID.SilverCoin, 10)
|
||||
.AddIngredient(ItemID.FallenStar, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,17 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.TownPartyMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "TownParty";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
//Canonically, a party requires at least 10 balloons
|
||||
Recipe.Create(Type, 1)
|
||||
.AddRecipeGroup("VCMM:SillyTiedBalloonGroup", 10)
|
||||
.AddIngredient(ItemID.SilverCoin, 10)
|
||||
.AddIngredient(ItemID.Sunflower, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.TownRainMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "TownRain";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.Glowstick, 10)
|
||||
.AddIngredient(ItemID.SilverCoin, 10)
|
||||
.AddIngredient(ItemID.WaterBucket, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.TundraMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Tundra";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.BorealWood, 10)
|
||||
.AddIngredient(ItemID.SnowBlock, 10)
|
||||
.AddIngredient(ItemID.Shiverthorn, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.TundraUndergroundMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "TundraUnderground";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.IceBlock, 10)
|
||||
.AddIngredient(ItemID.SlushBlock, 10)
|
||||
.AddIngredient(ItemID.FlinxFur, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,13 +14,12 @@ namespace UnCalamityModMusic.Content.Items
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.StoneBlock, 10)
|
||||
.AddIngredient(ItemID.DirtBlock, 10)
|
||||
.AddRecipeGroup("VCMM:CopperOreGroup", 10)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
// Contingent recipe for when in Hardmode
|
||||
/*Recipe.Create(Type, 1)
|
||||
.AddIngredient(ModContent.ItemType<UndergroundHardmodeMusicBox>())
|
||||
.AddIngredient(ModContent.ItemType<WallofFleshMusicBox>())
|
||||
.AddTile(TileID.TinkerersWorkbench)
|
||||
.Register();*/
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,16 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.UnderworldMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "Underworld";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.AshWood, 10)
|
||||
.AddIngredient(ItemID.ObsidianBrick, 10)
|
||||
.AddIngredient(ItemID.Fireblossom, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -10,14 +8,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.WallofFleshMusicBox>();
|
||||
|
||||
public override string MusicFilePath => "WallofFlesh";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.WallofFleshTrophy, 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -11,16 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.WorkshopTier1MusicBox>();
|
||||
|
||||
public override string MusicFilePath => "WorkshopTier1";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddRecipeGroup(RecipeGroupID.Wood, 10)
|
||||
.AddIngredient(ItemID.Torch, 10)
|
||||
.AddRecipeGroup(RecipeGroupID.IronBar, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -12,36 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.WorkshopTier2MusicBox>();
|
||||
|
||||
public override string MusicFilePath => "WorkshopTier2";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
if (calamityMod)
|
||||
{
|
||||
try
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(calamity, "AerialiteBar", 3)
|
||||
.AddIngredient(ItemID.HellstoneBar, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.SunplateBlock, 10)
|
||||
.AddIngredient(ItemID.HellstoneBar, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,13 +13,14 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override string MusicFilePath => "WorkshopTier3";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddRecipeGroup("VCMM:MythrilBarGroup", 3)
|
||||
.AddRecipeGroup("VCMM:AdamantiteBarGroup", 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
{
|
||||
// Contingent recipe for when Plantera is down
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ModContent.ItemType<WorkshopTier4MusicBox>())
|
||||
.AddIngredient(ItemID.MusicBoxPlantera)
|
||||
//.AddIngredient(ModContent.ItemType<PlanteraMusicBox>())
|
||||
.AddTile(TileID.TinkerersWorkbench)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -14,34 +13,13 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override string MusicFilePath => "WorkshopTier4";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
if (calamityMod)
|
||||
{
|
||||
try
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(calamity, "LivingShard", 3)
|
||||
.AddIngredient(calamity, "DraedonBar", 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.TempleKey, 1)
|
||||
.AddIngredient(ItemID.ChlorophyteBar, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
{
|
||||
// Contingent recipe for when Moon Lord is down
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ModContent.ItemType<WorkshopTier5MusicBox>())
|
||||
.AddIngredient(ModContent.ItemType<MoonLordMusicBox>())
|
||||
.AddTile(TileID.TinkerersWorkbench)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -12,40 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.WorkshopTier5MusicBox>();
|
||||
|
||||
public override string MusicFilePath => "WorkshopTier5";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
if (calamityMod)
|
||||
{
|
||||
try
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(calamity, "BarofLife", 3)
|
||||
.AddIngredient(calamity, "GalacticaSingularity", 3)
|
||||
.AddIngredient(ItemID.LunarBar, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.FragmentSolar, 3)
|
||||
.AddIngredient(ItemID.FragmentVortex, 3)
|
||||
.AddIngredient(ItemID.FragmentStardust, 3)
|
||||
.AddIngredient(ItemID.FragmentNebula, 3)
|
||||
.AddIngredient(ItemID.LunarBar, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,3 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
@@ -12,28 +9,5 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.WorkshopTier6MusicBox>();
|
||||
|
||||
public override string MusicFilePath => "WorkshopTier6";
|
||||
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
if (calamityMod)
|
||||
{
|
||||
try
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(calamity, "ExoPrism", 3)
|
||||
.AddIngredient(calamity, "AscendantSpiritEssence", 3)
|
||||
.AddIngredient(calamity, "AuricBar", 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(Recipes.musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 2.4 MiB After Width: | Height: | Size: 2.1 MiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.4 KiB |
@@ -10,7 +10,7 @@ using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Menus
|
||||
{
|
||||
public class ResurrectionMenu : ModMenu
|
||||
public class Menu1_Resurrection : ModMenu
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("HardmodeInterlude");
|
||||
|
||||
@@ -160,7 +160,7 @@ namespace UnCalamityModMusic.Content.Menus
|
||||
}
|
||||
}
|
||||
|
||||
public class MemoryMenu : ModMenu
|
||||
public class Menu2_Memory : ModMenu
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("FalseEpilogue");
|
||||
|
||||
@@ -228,12 +228,12 @@ namespace UnCalamityModMusic.Content.Menus
|
||||
|
||||
static Color selectCinderColor()
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
return Color.Lerp(Color.DarkGray, Color.LightGray, Main.rand.NextFloat());
|
||||
return Color.Lerp(Color.LightGray, Color.LightCyan, Main.rand.NextFloat());
|
||||
}
|
||||
|
||||
return Color.Lerp(Color.Red, Color.Yellow, Main.rand.NextFloat(0.9f));
|
||||
return Color.Lerp(Color.Cyan, Color.Gold, Main.rand.NextFloat(1.1f));
|
||||
}
|
||||
|
||||
for (int i = 0; i < 5; i++)
|
||||
@@ -310,7 +310,7 @@ namespace UnCalamityModMusic.Content.Menus
|
||||
}
|
||||
}
|
||||
|
||||
internal class BlankBackground : ModSurfaceBackgroundStyle
|
||||
internal class BlankBackground : ModSurfaceBackgroundStyle
|
||||
{
|
||||
public override void ModifyFarFades(float[] fades, float transitionSpeed)
|
||||
{
|
||||
|
||||