v2.0.1
No files matched your search
@@ -10,6 +10,13 @@ namespace UnCalamityModMusic.Common.Configs
|
||||
|
||||
[Header("$Mods.UnCalamityModMusic.Configs.MusicConfig.MusicTogglesHeader")]
|
||||
|
||||
[Range(10f, 50f)]
|
||||
[Increment(1f)]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[SliderColor(224, 165, 56, 128)]
|
||||
[DefaultValue(30f)]
|
||||
public float WorkshopRange { get; set; }
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
public bool WorkshopThemes { get; set; }
|
||||
|
||||
@@ -42,11 +42,11 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
|
||||
var EventMusicBoxes = new Dictionary<string, object>
|
||||
{
|
||||
{ "Terraria TorchGod", new List<int> { ModContent.ItemType<Content.Items.TorchGodMusicBox>(), ModContent.ItemType<Content.Items.TorchGodRevengeanceMusicBox>() } },
|
||||
//{ "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 TorchGod", ModContent.ItemType<Content.Items.TorchGodMusicBox>() },
|
||||
//{ "Terraria LunarEvent", new List<int> { ModContent.ItemType<Content.Items.LunarTowersVortexMusicBox>(), ModContent.ItemType<Content.Items.LunarTowersNebulaMusicBox>(), ModContent.ItemType<Content.Items.LunarTowersSolarMusicBox>(), ModContent.ItemType<Content.Items.LunarTowersStardustMusicBox>() } },
|
||||
//{ "Terraria MartianMadness", ModContent.ItemType<Content.Items.MartianMadnessMusicBox>() },
|
||||
//{ "Terraria PirateInvasion", ModContent.ItemType<Content.Items.PirateInvasionMusicBox>() },
|
||||
//{ "Terraria GoblinArmy", ModContent.ItemType<Content.Items.GoblinArmyMusicBox>() },
|
||||
//{ "Terraria Eclipse", ModContent.ItemType<Content.Items.SolarEclipseMusicBox>() },
|
||||
|
||||
@@ -28,8 +28,8 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
AddMusic("AbyssLayer3Alt", "HeartPlusUp", "Alternates");
|
||||
AddMusic("Space", "HeartPlusUp", "Biomes");
|
||||
AddMusic("Underworld", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("Aether", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("Graveyard", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("Aether", "", "Biomes");
|
||||
//AddMusic("Graveyard", "", "Biomes");
|
||||
AddMusic("Meteorite", "HeartPlusUp", "Biomes");
|
||||
AddMusic("WorkshopTier6", "HeartPlusUp", "Biomes");
|
||||
AddMusic("WorkshopTier5", "HeartPlusUp", "Biomes");
|
||||
@@ -40,7 +40,7 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
AddMusic("TownNight", "HeartPlusUp", "Biomes");
|
||||
AddMusic("TownNight_Noiseless", "HeartPlusUp", "Biomes");
|
||||
AddMusic("TownDay", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("JungleTemple", "Universe", "Biomes");
|
||||
//AddMusic("JungleTemple", "", "Biomes");
|
||||
AddMusic("Dungeon", "HeartPlusUp", "Biomes");
|
||||
AddMusic("GlowingMushroomFields", "HeartPlusUp", "Biomes");
|
||||
AddMusic("Corruption", "HeartPlusUp", "Biomes");
|
||||
@@ -48,16 +48,15 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
AddMusic("Crimson", "SkippyZii", "Biomes");
|
||||
AddMusic("CrimsonUnderground", "SkippyZii", "Biomes");
|
||||
AddMusic("Geodes", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("JungleNight", "", "Biomes");
|
||||
AddMusic("JungleDay", "", "Biomes");
|
||||
//AddMusic("JungleUnderground", "", "Biomes");
|
||||
AddMusic("Tundra", "HeartPlusUp", "Biomes");
|
||||
AddMusic("TundraUnderground", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("JungleNight", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("JungleDay", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("JungleUndergroundHardmode", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("JungleUnderground", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("Hallow", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("HallowUnderground", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("DesertUnderground", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("UndergroundHardmode", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("Hallow", "", "Biomes");
|
||||
//AddMusic("HallowUnderground", "", "Biomes");
|
||||
//AddMusic("DesertUnderground", "", "Biomes");
|
||||
//AddMusic("UndergroundHardmode", "", "Biomes");
|
||||
AddMusic("Caverns", "HeartPlusUp", "Biomes");
|
||||
AddMusic("Underground", "HeartPlusUp", "Biomes");
|
||||
AddMusic("OceanNight", "HeartPlusUp", "Biomes");
|
||||
@@ -69,55 +68,55 @@ namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
AddMusic("ForestDayMorning", "HeartPlusUp", "Biomes");
|
||||
AddMusic("ForestDayDawn", "HeartPlusUp", "Biomes");
|
||||
AddMusic("MoonLord", "psykomatic", "Bosses");
|
||||
//AddMusic("LunaticCultist", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("EmpressofLight", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("DukeFishron", "Universe", "Bosses");
|
||||
//AddMusic("Golem", "Universe", "Bosses");
|
||||
//AddMusic("Plantera", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("MechanicalTrio", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("SkeletronPrime", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("Twins", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("Destroyer", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("QueenSlime", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("LunaticCultist", "", "Bosses");
|
||||
//AddMusic("EmpressofLight", "", "Bosses");
|
||||
//AddMusic("DukeFishron", "", "Bosses");
|
||||
//AddMusic("Golem", "", "Bosses");
|
||||
//AddMusic("Plantera", "", "Bosses");
|
||||
//AddMusic("Mechs", "", "Bosses");
|
||||
//AddMusic("SkeletronPrime", "", "Bosses");
|
||||
//AddMusic("Twins", "", "Bosses");
|
||||
//AddMusic("Destroyer", "", "Bosses");
|
||||
//AddMusic("QueenSlime", "", "Bosses");
|
||||
AddMusic("WallofFlesh", "HeartPlusUp", "Bosses");
|
||||
AddMusic("Skeletron", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("QueenBee", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("QueenBee", "", "Bosses");
|
||||
AddMusic("BrainofCthulhu", "HeartPlusUpFeature2", "Bosses");
|
||||
AddMusic("EaterofWorlds", "HeartPlusUp", "Bosses");
|
||||
AddMusic("EyeofCthulhu", "HeartPlusUpFeature1", "Bosses");
|
||||
AddMusic("KingSlime", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("FrostMoon", "HeartPlusUp", "Events");
|
||||
//AddMusic("PumpkinMoon", "HeartPlusUp", "Events");
|
||||
AddMusic("TorchGod", "HeartPlusUp", "Events");
|
||||
AddMusic("TorchGodRevengeance", "HeartPlusUp", "Events");
|
||||
//AddMusic("LunarTowersSolar", "HeartPlusUp", "Events");
|
||||
//AddMusic("LunarTowersNebula", "HeartPlusUp", "Events");
|
||||
//AddMusic("LunarTowersVortex", "HeartPlusUp", "Events");
|
||||
//AddMusic("LunarTowersStardust", "HeartPlusUp", "Events");
|
||||
//AddMusic("MartianMadness", "HeartPlusUp", "Events");
|
||||
//AddMusic("PirateInvasion", "HeartPlusUp", "Events");
|
||||
//AddMusic("FrostLegion", "HeartPlusUp", "Events");
|
||||
//AddMusic("GoblinArmy", "HeartPlusUp", "Events");
|
||||
//AddMusic("SolarEclipse", "HeartPlusUp", "Events");
|
||||
//AddMusic("CelestialPillarSolar", "", "Events");
|
||||
//AddMusic("CelestialPillarStardust", "", "Events");
|
||||
//AddMusic("CelestialPillarNebula", "", "Events");
|
||||
//AddMusic("CelestialPillarVortex", "", "Events");
|
||||
//AddMusic("MartianMadness", "", "Events");
|
||||
//AddMusic("FrostMoon", "", "Events");
|
||||
//AddMusic("PumpkinMoon", "", "Events");
|
||||
//AddMusic("PirateInvasion", "", "Events");
|
||||
//AddMusic("FrostLegion", "", "Events");
|
||||
//AddMusic("GoblinArmy", "", "Events");
|
||||
//AddMusic("SolarEclipse", "", "Events");
|
||||
AddMusic("BloodMoon", "Thriplerex", "Events");
|
||||
AddMusic("BloodMoonDeath", "Thriplerex", "Events");
|
||||
AddMusic("SlimeRain", "HeartPlusUp", "Events");
|
||||
//AddMusic("Blizzard", "Universe", "Events");
|
||||
//AddMusic("Sandstorm", "Universe", "Events");
|
||||
//AddMusic("Blizzard", "", "Events");
|
||||
AddMusic("Sandstorm", "TYESKI", "Events");
|
||||
AddMusic("OceanRain", "HeartPlusUp", "Events");
|
||||
//AddMusic("Thunderstorm", "Universe", "Events");
|
||||
//AddMusic("Thunderstorm", "", "Events");
|
||||
AddMusic("TownRain", "HeartPlusUp", "Events");
|
||||
AddMusic("Rain", "HeartPlusUp", "Events");
|
||||
AddMusic("TownParty", "HeartPlusUp", "Events");
|
||||
//AddMusic("WindyDay", "HeartPlusUp", "Events");
|
||||
//AddMusic("WindyDay", "", "Events");
|
||||
AddMusic("LanternFestival", "HeartPlusUp", "Events");
|
||||
AddMusic("HardmodeInterlude", "Salvati", "Misc");
|
||||
AddMusic("FalseEpilogue", "HeartPlusUp", "Misc");
|
||||
//AddMusic("DragonsLull", "HeartPlusUp", "Misc");
|
||||
//AddMusic("DragonsLull", "", "Misc");
|
||||
AddMusic("RainLegacy", "HeartPlusUp", "Misc");
|
||||
//AddMusic("ImpendingDoom", "HeartPlusUp", "Misc");
|
||||
//AddMusic("CultistRitual", "HeartPlusUp", "Misc");
|
||||
//AddMusic("ImminentDestruction", "HeartPlusUp", "Misc");
|
||||
//AddMusic("ImpendingDoom", "", "Misc");
|
||||
//AddMusic("CultistRitual", "", "Misc");
|
||||
//AddMusic("MechEngaging", "", "Misc");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -99,31 +99,31 @@ 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;
|
||||
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;
|
||||
|
||||
nearBioLabPoint =
|
||||
nearBioLabPoint =
|
||||
sunkenSeaLabDistance <= labRadius ||
|
||||
planetoidLabDistance <= labRadius ||
|
||||
jungleLabDistance <= labRadius ||
|
||||
@@ -527,10 +527,7 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = ModContent.GetInstance<JungleUnderground>().IsSceneEffectActive(player);
|
||||
bool condition2 = ModContent.GetInstance<JungleUndergroundHardmode>().IsSceneEffectActive(player);
|
||||
|
||||
return (condition1 || condition2) && base.IsSceneEffectActive(player);
|
||||
return ModContent.GetInstance<JungleUnderground>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class Tundra_Ambience : AmbienceBaseScene
|
||||
|
||||
@@ -63,11 +63,17 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = TileCounts.workbenchTileCount > 0 && TileCounts.draedonsForgeTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = TileCounts.workbenchTileCount > 0 && TileCounts.draedonsForgeTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
bool condition3 = PlayerFlags.WorkshopTier6Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = PlayerFlags.WorkshopTier6Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool distanceToTiles =
|
||||
WorkshopDetection.TileDistance(TileID.WorkBenches) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
(calamityMod && WorkshopDetection.TileDistance(calamity.Find<ModTile>("DraedonsForge").Type) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f));
|
||||
|
||||
bool condition1 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.draedonsForgeTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.draedonsForgeTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
bool condition3 = PlayerFlags.distanceToMagicStorageTiles && PlayerFlags.WorkshopTier6Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = PlayerFlags.distanceToMagicStorageTiles && PlayerFlags.WorkshopTier6Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
return (condition1 || condition2 || condition3 || condition4) && PlayerFlags.notInExcludedTownBiome && ModContent.GetInstance<MusicConfig>().WorkshopThemes && ModContent.GetInstance<OtherConfig>().AmbienceFrequency != 100;
|
||||
}
|
||||
@@ -80,15 +86,23 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
bool noGreaterTierIsActive = !ModContent.GetInstance<WorkshopTier6>().IsSceneEffectActive(player);
|
||||
|
||||
bool condition1 = TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && NPC.downedMoonlord && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && NPC.downedMoonlord && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool condition3 = TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.cosmicAnvilTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.cosmicAnvilTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool distanceToTiles =
|
||||
WorkshopDetection.TileDistance(TileID.WorkBenches) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.AdamantiteForge) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.MythrilAnvil) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
(calamityMod && WorkshopDetection.TileDistance(calamity.Find<ModTile>("CosmicAnvil").Type) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f));
|
||||
|
||||
bool condition5 = PlayerFlags.WorkshopTier5Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition6 = PlayerFlags.WorkshopTier5Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool condition1 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && NPC.downedMoonlord && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && NPC.downedMoonlord && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool condition3 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.cosmicAnvilTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.cosmicAnvilTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
bool condition5 = PlayerFlags.distanceToMagicStorageTiles && PlayerFlags.WorkshopTier5Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition6 = PlayerFlags.distanceToMagicStorageTiles && PlayerFlags.WorkshopTier5Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
return (condition1 || condition2 || condition3 || condition4 || condition5 || condition6) && noGreaterTierIsActive && PlayerFlags.notInExcludedTownBiome && ModContent.GetInstance<MusicConfig>().WorkshopThemes && ModContent.GetInstance<OtherConfig>().AmbienceFrequency != 100;
|
||||
}
|
||||
@@ -102,14 +116,19 @@ namespace UnCalamityModMusic.Common.Music
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool noGreaterTierIsActive =
|
||||
!(ModContent.GetInstance<WorkshopTier5>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<WorkshopTier6>().IsSceneEffectActive(player));
|
||||
|
||||
bool condition1 = TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && NPC.downedPlantBoss && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && NPC.downedPlantBoss && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
!(ModContent.GetInstance<WorkshopTier5>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<WorkshopTier6>().IsSceneEffectActive(player));
|
||||
|
||||
bool condition3 = PlayerFlags.WorkshopTier4Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = PlayerFlags.WorkshopTier4Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool distanceToTiles =
|
||||
WorkshopDetection.TileDistance(TileID.WorkBenches) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.AdamantiteForge) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.MythrilAnvil) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f);
|
||||
|
||||
bool condition1 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && NPC.downedPlantBoss && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && NPC.downedPlantBoss && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
bool condition3 = PlayerFlags.distanceToMagicStorageTiles && PlayerFlags.WorkshopTier4Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = PlayerFlags.distanceToMagicStorageTiles && PlayerFlags.WorkshopTier4Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
return (condition1 || condition2 || condition3 || condition4) && noGreaterTierIsActive && PlayerFlags.notInExcludedTownBiome && ModContent.GetInstance<MusicConfig>().WorkshopThemes && ModContent.GetInstance<OtherConfig>().AmbienceFrequency != 100;
|
||||
}
|
||||
@@ -127,11 +146,16 @@ namespace UnCalamityModMusic.Common.Music
|
||||
ModContent.GetInstance<WorkshopTier5>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<WorkshopTier6>().IsSceneEffectActive(player));
|
||||
|
||||
bool condition1 = TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool distanceToTiles =
|
||||
WorkshopDetection.TileDistance(TileID.WorkBenches) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.AdamantiteForge) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.MythrilAnvil) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f);
|
||||
|
||||
bool condition3 = PlayerFlags.WorkshopTier3Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = PlayerFlags.WorkshopTier3Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool condition1 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.adamantiteForgeTileCount > 0 && TileCounts.mythrilAnvilTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
bool condition3 = PlayerFlags.distanceToMagicStorageTiles && PlayerFlags.WorkshopTier3Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = PlayerFlags.distanceToMagicStorageTiles && PlayerFlags.WorkshopTier3Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
return (condition1 || condition2 || condition3 || condition4) && noGreaterTierIsActive && PlayerFlags.notInExcludedTownBiome && ModContent.GetInstance<MusicConfig>().WorkshopThemes && ModContent.GetInstance<OtherConfig>().AmbienceFrequency != 100;
|
||||
}
|
||||
@@ -150,13 +174,20 @@ namespace UnCalamityModMusic.Common.Music
|
||||
ModContent.GetInstance<WorkshopTier5>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<WorkshopTier6>().IsSceneEffectActive(player));
|
||||
|
||||
bool condition1 = TileCounts.workbenchTileCount > 0 && (TileCounts.hellForgeTileCount > 0 || TileCounts.adamantiteForgeTileCount > 0) && TileCounts.ironAnvilTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = TileCounts.workbenchTileCount > 0 && (TileCounts.hellForgeTileCount > 0 || TileCounts.adamantiteForgeTileCount > 0) && TileCounts.ironAnvilTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool condition3 = TileCounts.workbenchTileCount > 0 && TileCounts.hellForgeTileCount > 0 && (TileCounts.ironAnvilTileCount > 0 || TileCounts.mythrilAnvilTileCount > 0) && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = TileCounts.workbenchTileCount > 0 && TileCounts.hellForgeTileCount > 0 && (TileCounts.ironAnvilTileCount > 0 || TileCounts.mythrilAnvilTileCount > 0) && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool distanceToTiles =
|
||||
WorkshopDetection.TileDistance(TileID.WorkBenches) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.Hellforge) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.Anvils) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.AdamantiteForge) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.MythrilAnvil) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f);
|
||||
|
||||
bool condition5 = PlayerFlags.WorkshopTier2Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition6 = PlayerFlags.WorkshopTier2Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool condition1 = distanceToTiles && TileCounts.workbenchTileCount > 0 && (TileCounts.hellForgeTileCount > 0 || TileCounts.adamantiteForgeTileCount > 0) && TileCounts.ironAnvilTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = distanceToTiles && TileCounts.workbenchTileCount > 0 && (TileCounts.hellForgeTileCount > 0 || TileCounts.adamantiteForgeTileCount > 0) && TileCounts.ironAnvilTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool condition3 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.hellForgeTileCount > 0 && (TileCounts.ironAnvilTileCount > 0 || TileCounts.mythrilAnvilTileCount > 0) && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.hellForgeTileCount > 0 && (TileCounts.ironAnvilTileCount > 0 || TileCounts.mythrilAnvilTileCount > 0) && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
bool condition5 = PlayerFlags.distanceToMagicStorageTiles && PlayerFlags.WorkshopTier2Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition6 = PlayerFlags.distanceToMagicStorageTiles && PlayerFlags.WorkshopTier2Bosses && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
return (condition1 || condition2 || condition3 || condition4 || condition5 || condition6) && noGreaterTierIsActive && PlayerFlags.notInExcludedTownBiome && ModContent.GetInstance<MusicConfig>().WorkshopThemes && ModContent.GetInstance<OtherConfig>().AmbienceFrequency != 100;
|
||||
}
|
||||
@@ -176,11 +207,16 @@ namespace UnCalamityModMusic.Common.Music
|
||||
ModContent.GetInstance<WorkshopTier5>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<WorkshopTier6>().IsSceneEffectActive(player));
|
||||
|
||||
bool condition1 = TileCounts.workbenchTileCount > 0 && TileCounts.furnaceTileCount > 0 && TileCounts.ironAnvilTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = TileCounts.workbenchTileCount > 0 && TileCounts.furnaceTileCount > 0 && TileCounts.ironAnvilTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool distanceToTiles =
|
||||
WorkshopDetection.TileDistance(TileID.WorkBenches) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.Furnaces) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(TileID.Anvils) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f);
|
||||
|
||||
bool condition3 = TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
bool condition1 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.furnaceTileCount > 0 && TileCounts.ironAnvilTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition2 = distanceToTiles && TileCounts.workbenchTileCount > 0 && TileCounts.furnaceTileCount > 0 && TileCounts.ironAnvilTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
bool condition3 = PlayerFlags.distanceToMagicStorageTiles && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (((PlayerFlags.notRaining && player.ZoneOverworldHeight) && (PlayerFlags.notInExcludedTownEvent && player.ZoneOverworldHeight) && (!LanternNight.LanternsUp && player.ZoneOverworldHeight)) || PlayerFlags.inSpace);
|
||||
bool condition4 = PlayerFlags.distanceToMagicStorageTiles && TileCounts.storageHeartTileCount > 0 && TileCounts.craftingUnitTileCount > 0 && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
|
||||
return (condition1 || condition2 || condition3 || condition4) && noGreaterTierIsActive && PlayerFlags.notInExcludedTownBiome && ModContent.GetInstance<MusicConfig>().WorkshopThemes && ModContent.GetInstance<OtherConfig>().AmbienceFrequency != 100;
|
||||
}
|
||||
@@ -384,29 +420,18 @@ namespace UnCalamityModMusic.Common.Music
|
||||
}
|
||||
public class JungleDay : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("JungleDay");
|
||||
public override int Music => MusicPathing.GetMusicSlot("JungleDay");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return Main.dayTime && player.ZoneJungle && (player.ZoneOverworldHeight || PlayerFlags.onRemixedSurface) && !player.ZoneMeteor && PlayerFlags.notRaining && !LanternNight.LanternsUp;
|
||||
}*/
|
||||
}
|
||||
public class JungleUndergroundHardmode : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("JungleUndergroundHardmode");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return Main.hardMode && player.ZoneJungle && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight) && !player.ZoneMeteor;
|
||||
}*/
|
||||
return /*Main.dayTime && */player.ZoneJungle && (player.ZoneOverworldHeight || PlayerFlags.onRemixedSurface) && !player.ZoneMeteor && PlayerFlags.notRaining && !LanternNight.LanternsUp;
|
||||
}
|
||||
}
|
||||
public class JungleUnderground_Remnants : ModSceneEffect
|
||||
{
|
||||
//public override int Music => /*Main.hardMode ? MusicPathing.GetMusicSlot("JungleUndergroundHardmode") : */MusicPathing.GetMusicSlot("JungleUnderground");
|
||||
//public override int Music => MusicPathing.GetMusicSlot("JungleUnderground");
|
||||
public override int Music
|
||||
{
|
||||
get
|
||||
|
||||
@@ -41,13 +41,13 @@ namespace UnCalamityModMusic.Common.Music
|
||||
}
|
||||
public class ImpendingDoom : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("ImpendingDoom");
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("ImpendingDoom");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossLow;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ImpendingDoomSystem.ImpendingDoomCountdown > 0 || NPC.MoonLordCountdown > 0;
|
||||
return BossCountdowns.ImpendingDoomCountdown > 0 || NPC.MoonLordCountdown > 0;
|
||||
}
|
||||
|
||||
public override void SpecialVisuals(Player player, bool isActive)
|
||||
@@ -57,8 +57,8 @@ namespace UnCalamityModMusic.Common.Music
|
||||
Main.musicFade[Main.curMusic] = 1f;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
public class LunaticCultist : ModSceneEffect
|
||||
}
|
||||
public class LunaticCultist : ModSceneEffect
|
||||
{
|
||||
public override int Music => InfernumCompatibility.DecideOnMusicPath("LunaticCultist", "LunaticCultist");
|
||||
|
||||
@@ -125,11 +125,11 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return NPC.AnyNPCs(NPCID.Plantera) && Main.npc[NPC.FindFirstNPC(NPCID.Plantera)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
}
|
||||
}
|
||||
public class MechanicalTrio : ModSceneEffect
|
||||
public class Mechs : ModSceneEffect
|
||||
{
|
||||
public static bool AllMechsActive = false;
|
||||
|
||||
public override int Music => InfernumCompatibility.DecideOnMusicPath("MechanicalTrio", "MechBosses");
|
||||
public override int Music => InfernumCompatibility.DecideOnMusicPath("Mechs", "MechBosses");
|
||||
|
||||
public override SceneEffectPriority Priority => InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossMedium);
|
||||
|
||||
@@ -139,14 +139,15 @@ 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 destroyerHeadActive = NPC.AnyNPCs(NPCID.TheDestroyer) && Main.npc[NPC.FindFirstNPC(NPCID.TheDestroyer)].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 = calamityMod && calamity.Version >= new Version(2, 0, 4, 1) && NPC.AnyNPCs(calamity.Find<ModNPC>("SkeletronPrime2").Type) && Main.npc[NPC.FindFirstNPC(calamity.Find<ModNPC>("SkeletronPrime2").Type)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool skeletronPrime2Active = PlayerFlags.SkeletronPrime2Active;
|
||||
|
||||
bool skeletronPrimeActive = skeletronPrime1Active || skeletronPrime2Active;
|
||||
bool twinsActive = spazmatismActive || retinazerActive;
|
||||
bool twinsActive = spazmatismActive || retinazerActive || foveanatorActive;
|
||||
bool destroyerActive = destroyerHeadActive || destroyerBodyActive || destroyerTailActive;
|
||||
|
||||
if (destroyerActive && twinsActive && skeletronPrimeActive)
|
||||
@@ -169,30 +170,31 @@ namespace UnCalamityModMusic.Common.Music
|
||||
{
|
||||
public override int Music => InfernumCompatibility.DecideOnMusicPath("SkeletronPrime", "MechBosses");
|
||||
|
||||
public override SceneEffectPriority Priority => Main.masterMode && PlayerFlags.revengeanceMode ? InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossMedium) : InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossLow);
|
||||
public override SceneEffectPriority Priority => PlayerFlags.SkeletronPrime2Active ? InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossMedium) : 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 = calamityMod && calamity.Version >= new Version(2, 0, 4, 1) && NPC.AnyNPCs(calamity.Find<ModNPC>("SkeletronPrime2").Type) && Main.npc[NPC.FindFirstNPC(calamity.Find<ModNPC>("SkeletronPrime2").Type)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition2 = PlayerFlags.SkeletronPrime2Active;
|
||||
|
||||
return condition1 || condition2;
|
||||
return condition1 || condition2;
|
||||
}
|
||||
}
|
||||
public class Twins : ModSceneEffect
|
||||
{
|
||||
public override int Music => InfernumCompatibility.DecideOnMusicPath("Twins", "MechBosses");
|
||||
|
||||
public override SceneEffectPriority Priority => InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossLow);
|
||||
public override SceneEffectPriority Priority => PlayerFlags.FoveanatorActive ? InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossMedium) : InfernumCompatibility.DecideOnScenePriority(SceneEffectPriority.BossLow);
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
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;
|
||||
return condition1 || condition2 || condition3;
|
||||
}
|
||||
}
|
||||
public class Destroyer : ModSceneEffect
|
||||
@@ -210,18 +212,18 @@ namespace UnCalamityModMusic.Common.Music
|
||||
return condition1 || condition2 || condition3;
|
||||
}
|
||||
}
|
||||
public class ImminentDestruction : ModSceneEffect
|
||||
public class MechEngaging : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("ImminentDestruction");
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("MechEngaging");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossLow;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ImminentDestructionSystem.ImminentDestructionCountdown > 0;
|
||||
return BossCountdowns.MechCountdown > 0;
|
||||
}*/
|
||||
}
|
||||
public class QueenSlime : ModSceneEffect
|
||||
}
|
||||
public class QueenSlime : ModSceneEffect
|
||||
{
|
||||
public override int Music => InfernumCompatibility.DecideOnMusicPath("QueenSlime", "QueenSlime");
|
||||
|
||||
|
||||
@@ -1,110 +1,115 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.Events;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common.Configs;
|
||||
|
||||
namespace UnCalamityModMusic.Common.Music
|
||||
{
|
||||
public class FrostMoon : ModSystem
|
||||
{
|
||||
/*public int FrostMoonMusicSlot = 0;
|
||||
|
||||
public override void OnWorldLoad()
|
||||
{
|
||||
FrostMoonMusicSlot = MusicPathing.GetMusicSlot("FrostMoon");
|
||||
}
|
||||
|
||||
public override void UpdateUI(GameTime gameTime)
|
||||
{
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
|
||||
if (Main.snowMoon && Main.musicBox2 == -1 && (PlayerFlags.onSurface || Main.remixWorld) && PlayerFlags.CalamityMusicEventInactive)
|
||||
{
|
||||
Main.musicBox2 = FrostMoonMusicSlot;
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
public class PumpkinMoon : ModSystem
|
||||
{
|
||||
/*public int PumpkinMoonMusicSlot = 0;
|
||||
|
||||
public override void OnWorldLoad()
|
||||
{
|
||||
PumpkinMoonMusicSlot = MusicPathing.GetMusicSlot("PumpkinMoon");
|
||||
}
|
||||
|
||||
public override void UpdateUI(GameTime gameTime)
|
||||
{
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
|
||||
if (Main.pumpkinMoon && Main.musicBox2 == -1 && (PlayerFlags.onSurface || Main.remixWorld) && PlayerFlags.CalamityMusicEventInactive)
|
||||
{
|
||||
Main.musicBox2 = PumpkinMoonMusicSlot;
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
public class TorchGod : ModSceneEffect
|
||||
{
|
||||
{
|
||||
public override int Music => PlayerFlags.revengeanceMode ? MusicPathing.GetMusicSlot("TorchGodRevengeance") : MusicPathing.GetMusicSlot("TorchGod");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return player.happyFunTorchTime || (NPC.AnyNPCs(NPCID.TorchGod) && Main.npc[NPC.FindFirstNPC(NPCID.TorchGod)].Distance(player.Center) <= PlayerFlags.MusicTileRange);
|
||||
}
|
||||
}
|
||||
public class LunarTowersSolar : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("LunarTowersSolar");
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return player.happyFunTorchTime || (NPC.AnyNPCs(NPCID.TorchGod) && Main.npc[NPC.FindFirstNPC(NPCID.TorchGod)].Distance(player.Center) <= PlayerFlags.MusicTileRange);
|
||||
}
|
||||
}
|
||||
public class LunarTowersSolar : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("LunarTowersSolar");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return player.ZoneTowerSolar;
|
||||
return player.ZoneTowerSolar || (NPC.AnyNPCs(NPCID.LunarTowerSolar) && Main.npc[NPC.FindFirstNPC(NPCID.LunarTowerSolar)].Distance(player.Center) <= PlayerFlags.MusicTileRange);
|
||||
}*/
|
||||
}
|
||||
public class LunarTowersNebula : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("LunarTowersNebula");
|
||||
}
|
||||
public class LunarTowersStardust : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("LunarTowersStardust");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return player.ZoneTowerNebula;
|
||||
return player.ZoneTowerStardust || (NPC.AnyNPCs(NPCID.LunarTowerStardust) && Main.npc[NPC.FindFirstNPC(NPCID.LunarTowerStardust)].Distance(player.Center) <= PlayerFlags.MusicTileRange);
|
||||
}*/
|
||||
}
|
||||
public class LunarTowersVortex : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("LunarTowersVortex");
|
||||
}
|
||||
public class LunarTowersNebula : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("LunarTowersNebula");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return player.ZoneTowerVortex;
|
||||
return player.ZoneTowerNebula || (NPC.AnyNPCs(NPCID.LunarTowerNebula) && Main.npc[NPC.FindFirstNPC(NPCID.LunarTowerNebula)].Distance(player.Center) <= PlayerFlags.MusicTileRange);
|
||||
}*/
|
||||
}
|
||||
public class LunarTowersStardust : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("LunarTowersStardust");
|
||||
}
|
||||
public class LunarTowersVortex : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("LunarTowersVortex");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return player.ZoneTowerStardust;
|
||||
return player.ZoneTowerVortex || (NPC.AnyNPCs(NPCID.LunarTowerVortex) && Main.npc[NPC.FindFirstNPC(NPCID.LunarTowerVortex)].Distance(player.Center) <= PlayerFlags.MusicTileRange);
|
||||
}*/
|
||||
}
|
||||
public class OldOnesArmy : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("OldOnesArmy");
|
||||
}
|
||||
public class MartianMadness : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("MartianMadness");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = Main.invasionType == 4 && Main.invasionProgressNearInvasion;
|
||||
bool condition2 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianSaucerCore) && Main.npc[NPC.FindFirstNPC(NPCID.MartianSaucerCore)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition3 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.ScutlixRider) && Main.npc[NPC.FindFirstNPC(NPCID.ScutlixRider)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition4 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.Scutlix) && Main.npc[NPC.FindFirstNPC(NPCID.Scutlix)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition5 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianWalker) && Main.npc[NPC.FindFirstNPC(NPCID.MartianWalker)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition6 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianDrone) && Main.npc[NPC.FindFirstNPC(NPCID.MartianDrone)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition7 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianTurret) && Main.npc[NPC.FindFirstNPC(NPCID.MartianTurret)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition8 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.GigaZapper) && Main.npc[NPC.FindFirstNPC(NPCID.GigaZapper)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition9 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianEngineer) && Main.npc[NPC.FindFirstNPC(NPCID.MartianEngineer)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition10 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianOfficer) && Main.npc[NPC.FindFirstNPC(NPCID.MartianOfficer)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition11 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.RayGunner) && Main.npc[NPC.FindFirstNPC(NPCID.RayGunner)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition12 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.GrayGrunt) && Main.npc[NPC.FindFirstNPC(NPCID.GrayGrunt)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition13 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.BrainScrambler) && Main.npc[NPC.FindFirstNPC(NPCID.BrainScrambler)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
|
||||
return condition1 || condition2 || condition3 || condition4 || condition5 || condition6 || condition7 || condition8 || condition9 || condition10 || condition11 || condition12 || condition13;
|
||||
}*/
|
||||
}
|
||||
public class FrostMoon : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("FrostMoon");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return Main.snowMoon && (PlayerFlags.onSurface || Main.remixWorld);
|
||||
}*/
|
||||
}
|
||||
public class PumpkinMoon : ModSceneEffect
|
||||
{
|
||||
/*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 OldOnesArmy : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("OldOnesArmy");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event;
|
||||
|
||||
@@ -144,35 +149,10 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
return condition1 || condition2 || condition3 || condition4 || condition5 || condition6 || condition7 || condition8 || condition9 || condition10 || condition11 || condition12 || condition13 || condition14 || condition15 || condition16 || condition17 || condition18 || condition19 || condition20 || condition21 || condition22 || condition23 || condition24 || condition25 || condition26 || condition27 || condition28 || condition29 || condition30 || condition31;
|
||||
}*/
|
||||
}
|
||||
public class MartianMadness : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("MartianMadness");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = Main.invasionType == 4 && Main.invasionProgressNearInvasion;
|
||||
bool condition2 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianSaucerCore) && Main.npc[NPC.FindFirstNPC(NPCID.MartianSaucerCore)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition3 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.ScutlixRider) && Main.npc[NPC.FindFirstNPC(NPCID.ScutlixRider)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition4 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.Scutlix) && Main.npc[NPC.FindFirstNPC(NPCID.Scutlix)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition5 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianWalker) && Main.npc[NPC.FindFirstNPC(NPCID.MartianWalker)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition6 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianDrone) && Main.npc[NPC.FindFirstNPC(NPCID.MartianDrone)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition7 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianTurret) && Main.npc[NPC.FindFirstNPC(NPCID.MartianTurret)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition8 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.GigaZapper) && Main.npc[NPC.FindFirstNPC(NPCID.GigaZapper)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition9 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianEngineer) && Main.npc[NPC.FindFirstNPC(NPCID.MartianEngineer)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition10 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.MartianOfficer) && Main.npc[NPC.FindFirstNPC(NPCID.MartianOfficer)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition11 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.RayGunner) && Main.npc[NPC.FindFirstNPC(NPCID.RayGunner)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition12 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.GrayGrunt) && Main.npc[NPC.FindFirstNPC(NPCID.GrayGrunt)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
bool condition13 = Main.invasionType == 0 && NPC.AnyNPCs(NPCID.BrainScrambler) && Main.npc[NPC.FindFirstNPC(NPCID.BrainScrambler)].Distance(player.Center) <= PlayerFlags.MusicTileRange;
|
||||
|
||||
return condition1 || condition2 || condition3 || condition4 || condition5 || condition6 || condition7 || condition8 || condition9 || condition10 || condition11 || condition12 || condition13;
|
||||
}*/
|
||||
}
|
||||
public class PirateInvasion : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("PirateInvasion");
|
||||
}
|
||||
public class PirateInvasion : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("PirateInvasion");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event;
|
||||
|
||||
@@ -189,10 +169,10 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
return condition1 || condition2 || condition3 || condition4 || condition5 || condition6 || condition7 || condition8;
|
||||
}*/
|
||||
}
|
||||
public class FrostLegion : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("FrostLegion");
|
||||
}
|
||||
public class FrostLegion : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("FrostLegion");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event;
|
||||
|
||||
@@ -205,10 +185,10 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
return condition1 || condition2 || condition3 || condition4;
|
||||
}*/
|
||||
}
|
||||
public class GoblinArmy : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("GoblinArmy");
|
||||
}
|
||||
public class GoblinArmy : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("GoblinArmy");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Event;
|
||||
|
||||
@@ -224,47 +204,47 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
return condition1 || condition2 || condition3 || condition4 || condition5 || condition6 || condition7;
|
||||
}*/
|
||||
}
|
||||
public class SolarEclipse : ModSceneEffect
|
||||
{
|
||||
//public override int Music => MusicPathing.GetMusicSlot("SolarEclipse");
|
||||
public override int Music
|
||||
{
|
||||
get
|
||||
{
|
||||
bool otherworldMusicActive = PlayerFlags.SwapMusic();
|
||||
return otherworldMusicActive ? MusicID.OtherworldlyEerie : MusicID.Eclipse;
|
||||
}
|
||||
}
|
||||
}
|
||||
public class SolarEclipse : ModSceneEffect
|
||||
{
|
||||
//public override int Music => MusicPathing.GetMusicSlot("SolarEclipse");
|
||||
public override int Music
|
||||
{
|
||||
get
|
||||
{
|
||||
bool otherworldMusicActive = PlayerFlags.SwapMusic();
|
||||
return otherworldMusicActive ? MusicID.OtherworldlyEerie : MusicID.Eclipse;
|
||||
}
|
||||
}
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = !Main.remixWorld && Main.eclipse && PlayerFlags.onSurface;
|
||||
bool condition2 = Main.remixWorld && Main.eclipse && (double)Main.LocalPlayer.position.Y > Main.rockLayer * 16.0 && !(PlayerFlags.ZoneBrimstoneCrags || PlayerFlags.ZoneProfanedTemple);
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = !Main.remixWorld && Main.eclipse && PlayerFlags.onSurface;
|
||||
bool condition2 = Main.remixWorld && Main.eclipse && (double)Main.LocalPlayer.position.Y > Main.rockLayer * 16.0 && !(PlayerFlags.ZoneBrimstoneCrags || PlayerFlags.ZoneProfanedTemple);
|
||||
|
||||
return condition1 || condition2;
|
||||
}
|
||||
}
|
||||
public class BloodMoon : ModSceneEffect
|
||||
{
|
||||
public override int Music => PlayerFlags.deathMode ? MusicPathing.GetMusicSlot("BloodMoonDeath") : MusicPathing.GetMusicSlot("BloodMoon");
|
||||
return condition1 || condition2;
|
||||
}
|
||||
}
|
||||
public class BloodMoon : ModSceneEffect
|
||||
{
|
||||
public override int Music => PlayerFlags.deathMode ? MusicPathing.GetMusicSlot("BloodMoonDeath") : MusicPathing.GetMusicSlot("BloodMoon");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = !Main.remixWorld && Main.bloodMoon && PlayerFlags.onSurface && !(PlayerFlags.inSpace || player.ZoneCorrupt || player.ZoneCrimson || PlayerFlags.ZoneAstralInfection);
|
||||
bool condition2 = Main.remixWorld && Main.bloodMoon && (double)Main.LocalPlayer.position.Y > Main.rockLayer * 16.0 && player.position.Y <= (float)(Main.UnderworldLayer * 16) && !(player.ZoneCorrupt || player.ZoneCrimson || PlayerFlags.ZoneAstralInfection);
|
||||
bool condition3 = Main.remixWorld && Main.bloodMoon && player.position.Y > (float)(Main.UnderworldLayer * 16) && (double)(player.Center.X / 16f) > (double)Main.maxTilesX * 0.37 + 50.0 && (double)(player.Center.X / 16f) < (double)Main.maxTilesX * 0.63;
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = !Main.remixWorld && Main.bloodMoon && PlayerFlags.onSurface && !(PlayerFlags.inSpace || player.ZoneCorrupt || player.ZoneCrimson || PlayerFlags.ZoneAstralInfection);
|
||||
bool condition2 = Main.remixWorld && Main.bloodMoon && (double)Main.LocalPlayer.position.Y > Main.rockLayer * 16.0 && player.position.Y <= (float)(Main.UnderworldLayer * 16) && !(player.ZoneCorrupt || player.ZoneCrimson || PlayerFlags.ZoneAstralInfection);
|
||||
bool condition3 = Main.remixWorld && Main.bloodMoon && player.position.Y > (float)(Main.UnderworldLayer * 16) && (double)(player.Center.X / 16f) > (double)Main.maxTilesX * 0.37 + 50.0 && (double)(player.Center.X / 16f) < (double)Main.maxTilesX * 0.63;
|
||||
|
||||
return condition1 || condition2 || condition3;
|
||||
}
|
||||
}
|
||||
public class Blizzard : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("Blizzard");
|
||||
return condition1 || condition2 || condition3;
|
||||
}
|
||||
}
|
||||
public class Blizzard : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("Blizzard");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
||||
|
||||
@@ -275,40 +255,32 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
return condition1 || condition2;
|
||||
}*/
|
||||
}
|
||||
public class Sandstorm : ModSceneEffect
|
||||
{
|
||||
//public override int Music => MusicPathing.GetMusicSlot("Sandstorm");
|
||||
public override int Music
|
||||
{
|
||||
get
|
||||
{
|
||||
bool otherworldMusicActive = PlayerFlags.SwapMusic();
|
||||
return otherworldMusicActive ? MusicID.OtherworldlyDesert : MusicID.Sandstorm;
|
||||
}
|
||||
}
|
||||
}
|
||||
public class Sandstorm : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("Sandstorm");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = !Main.remixWorld && PlayerFlags.ZoneSandstorm && !PlayerFlags.ugDesertOriginalHeight && !(PlayerFlags.inSpace || PlayerFlags.ZoneAstralInfection) && !(Main.bloodMoon || Main.eclipse);
|
||||
bool condition2 = Main.remixWorld && PlayerFlags.ZoneSandstorm && PlayerFlags.onRemixedSurface && !(PlayerFlags.inSpace || PlayerFlags.ZoneAstralInfection) && !(Main.bloodMoon || Main.eclipse);
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = !Main.remixWorld && PlayerFlags.ZoneSandstorm && !PlayerFlags.ugDesertOriginalHeight && !(PlayerFlags.inSpace || PlayerFlags.ZoneAstralInfection) && !(Main.bloodMoon || Main.eclipse);
|
||||
bool condition2 = Main.remixWorld && PlayerFlags.ZoneSandstorm && PlayerFlags.onRemixedSurface && !(PlayerFlags.inSpace || PlayerFlags.ZoneAstralInfection) && !(Main.bloodMoon || Main.eclipse);
|
||||
|
||||
return condition1 || condition2;
|
||||
}
|
||||
}
|
||||
public class SlimeRain : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("SlimeRain");
|
||||
return condition1 || condition2;
|
||||
}
|
||||
}
|
||||
public class SlimeRain : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("SlimeRain");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return Main.slimeRain && PlayerFlags.onSurface && !(player.ZoneGraveyard || PlayerFlags.inSpace) && !(Main.bloodMoon || Main.eclipse);
|
||||
}
|
||||
}
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return Main.slimeRain && PlayerFlags.onSurface && !(player.ZoneGraveyard || PlayerFlags.inSpace) && !(Main.bloodMoon || Main.eclipse);
|
||||
}
|
||||
}
|
||||
public class OceanRain : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("OceanRain");
|
||||
@@ -324,8 +296,8 @@ namespace UnCalamityModMusic.Common.Music
|
||||
}
|
||||
}
|
||||
public class Thunderstorm : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("Thunderstorm");
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("Thunderstorm");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeMedium;
|
||||
|
||||
@@ -336,7 +308,7 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
return condition1 || condition2;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
public class TownRain : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("TownRain");
|
||||
@@ -345,23 +317,23 @@ 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);
|
||||
return PlayerFlags.inTownWithRain && PlayerFlags.notInExcludedTownBiome && !(/*Main._shouldUseStormMusic || */player.ZoneBeach || player.ZoneSnow || player.ZoneGraveyard || player.ZoneMeteor || PlayerFlags.ZoneSulfurSea);
|
||||
}
|
||||
}
|
||||
public class Rain : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("Rain");
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("Rain");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeMedium;
|
||||
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);
|
||||
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);
|
||||
|
||||
return condition1 || condition2;
|
||||
}
|
||||
}
|
||||
return condition1 || condition2;
|
||||
}
|
||||
}
|
||||
public class TownParty : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("TownParty");
|
||||
@@ -377,28 +349,28 @@ namespace UnCalamityModMusic.Common.Music
|
||||
}
|
||||
}
|
||||
public class WindyDay : ModSceneEffect
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("WindyDay");
|
||||
{
|
||||
/*public override int Music => MusicPathing.GetMusicSlot("WindyDay");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
bool condition1 = !Main.remixWorld && Main._shouldUseWindyDayMusic && PlayerFlags.ZoneOverworldHeightExtra && !(player.ZoneDesert || player.ZoneBeach || player.ZoneSnow || player.ZoneJungle || player.ZoneGraveyard || player.ZoneMeteor);
|
||||
bool condition1 = !Main.remixWorld && Main._shouldUseWindyDayMusic && PlayerFlags.ZoneOverworldHeightExtra && !(player.ZoneDesert || player.ZoneBeach || player.ZoneHallow || player.ZoneSnow || player.ZoneJungle || player.ZoneGraveyard || player.ZoneMeteor);
|
||||
bool condition2 = Main.remixWorld && Main._shouldUseWindyDayMusic && (double)(player.position.Y / 16f) > Main.rockLayer && player.position.Y / 16f < (float)(Main.maxTilesY - 350) && !(player.ZoneDesert || player.ZoneBeach || player.ZoneSnow || player.ZoneJungle || player.ZoneGraveyard || player.ZoneMeteor);
|
||||
|
||||
return condition1 || condition2;
|
||||
}*/
|
||||
}
|
||||
public class LanternFestival : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("LanternFestival");
|
||||
}
|
||||
public class LanternFestival : ModSceneEffect
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("LanternFestival");
|
||||
|
||||
public override SceneEffectPriority Priority => PlayerFlags.inTown ? SceneEffectPriority.Environment : SceneEffectPriority.BiomeMedium;
|
||||
public override SceneEffectPriority Priority => PlayerFlags.inTown ? SceneEffectPriority.Environment : SceneEffectPriority.BiomeMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return LanternNight.LanternsUp && PlayerFlags.ZoneOverworldHeightExtra && PlayerFlags.notRaining && !(player.ZoneGraveyard || player.ZoneMeteor);
|
||||
}
|
||||
}
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return LanternNight.LanternsUp && PlayerFlags.ZoneOverworldHeightExtra && PlayerFlags.notRaining && !(player.ZoneGraveyard || player.ZoneMeteor);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -57,25 +57,16 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ModContent.GetInstance<Ocean_Ambience>().IsSceneEffectActive(player) && !(ModContent.GetInstance<Rain_LureOverride>().IsSceneEffectActive(player) || ModContent.GetInstance<Thunderstorm_LureOverride>().IsSceneEffectActive(player)) && base.IsSceneEffectActive(player);
|
||||
return ModContent.GetInstance<Ocean_Ambience>().IsSceneEffectActive(player) && !ModContent.GetInstance<OceanRain_LureOverride>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class Thunderstorm_LureOverride : LureOverrideBaseScene
|
||||
public class OceanRain_LureOverride : LureOverrideBaseScene
|
||||
{
|
||||
public override string Path => "Thunderstorm";
|
||||
public override string Path => "OceanRain";
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ModContent.GetInstance<Thunderstorm>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class Rain_LureOverride : LureOverrideBaseScene
|
||||
{
|
||||
public override string Path => "Rain";
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ModContent.GetInstance<Rain>().IsSceneEffectActive(player) && !ModContent.GetInstance<Thunderstorm_LureOverride>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
return ModContent.GetInstance<OceanRain>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class OceanNight_LureOverride : LureOverrideBaseScene
|
||||
@@ -84,7 +75,7 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ModContent.GetInstance<OceanNight>().IsSceneEffectActive(player) && !(ModContent.GetInstance<Rain_LureOverride>().IsSceneEffectActive(player) || ModContent.GetInstance<Thunderstorm_LureOverride>().IsSceneEffectActive(player)) && base.IsSceneEffectActive(player);
|
||||
return ModContent.GetInstance<OceanNight>().IsSceneEffectActive(player) && !ModContent.GetInstance<OceanRain_LureOverride>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
public class OceanDay_LureOverride : LureOverrideBaseScene
|
||||
@@ -93,7 +84,7 @@ namespace UnCalamityModMusic.Common.Music
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
return ModContent.GetInstance<OceanDay>().IsSceneEffectActive(player) && !(ModContent.GetInstance<Rain_LureOverride>().IsSceneEffectActive(player) || ModContent.GetInstance<Thunderstorm_LureOverride>().IsSceneEffectActive(player)) && base.IsSceneEffectActive(player);
|
||||
return ModContent.GetInstance<OceanDay>().IsSceneEffectActive(player) && !ModContent.GetInstance<OceanRain_LureOverride>().IsSceneEffectActive(player) && base.IsSceneEffectActive(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,12 +39,11 @@ namespace UnCalamityModMusic.Common
|
||||
{"Crimson", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/Crimson")},
|
||||
{"CrimsonUnderground", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/CrimsonUnderground")},
|
||||
{"Geodes", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/Geodes")},
|
||||
{"Tundra", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/Tundra")},
|
||||
{"TundraUnderground", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/TundraUnderground")},
|
||||
{"JungleNight", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/JungleNight")},
|
||||
{"JungleDay", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/JungleDay")},
|
||||
{"JungleUndergroundHardmode", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/JungleUndergroundHardmode")},
|
||||
{"JungleUnderground", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/JungleUnderground")},
|
||||
{"Tundra", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/Tundra")},
|
||||
{"TundraUnderground", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/TundraUnderground")},
|
||||
{"Hallow", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/Hallow")},
|
||||
{"HallowUnderground", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/HallowUnderground")},
|
||||
{"DesertUnderground", MusicLoader.GetMusicSlot(mod, "Assets/Music/Biomes/DesertUnderground")},
|
||||
@@ -67,7 +66,7 @@ namespace UnCalamityModMusic.Common
|
||||
{"DukeFishron", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/DukeFishron")},
|
||||
{"Golem", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/Golem")},
|
||||
{"Plantera", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/Plantera")},
|
||||
{"MechanicalTrio", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/MechanicalTrio")},
|
||||
{"Mechs", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/Mechs")},
|
||||
{"SkeletronPrime", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/SkeletronPrime")},
|
||||
{"Twins", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/Twins")},
|
||||
{"Destroyer", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/Destroyer")},
|
||||
@@ -82,16 +81,16 @@ namespace UnCalamityModMusic.Common
|
||||
{"KingSlime", MusicLoader.GetMusicSlot(mod, "Assets/Music/Bosses/KingSlime")},
|
||||
|
||||
//Events
|
||||
{"FrostMoon", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/FrostMoon")},
|
||||
{"PumpkinMoon", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/PumpkinMoon")},
|
||||
{"TorchGod", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/TorchGod")},
|
||||
{"TorchGodRevengeance", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/TorchGodRevengeance")},
|
||||
{"LunarTowersSolar", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/LunarTowersSolar")},
|
||||
{"LunarTowersNebula", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/LunarTowersNebula")},
|
||||
{"LunarTowersVortex", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/LunarTowersVortex")},
|
||||
{"LunarTowersStardust", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/LunarTowersStardust")},
|
||||
{"CelestialPillarSolar", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/CelestialPillarSolar")},
|
||||
{"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")},
|
||||
{"PirateInvasion", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/PirateInvasion")},
|
||||
{"FrostLegion", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/FrostLegion")},
|
||||
{"GoblinArmy", MusicLoader.GetMusicSlot(mod, "Assets/Music/Events/GoblinArmy")},
|
||||
@@ -116,7 +115,7 @@ namespace UnCalamityModMusic.Common
|
||||
{"RainLegacy", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/RainLegacy")},
|
||||
{"ImpendingDoom", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/ImpendingDoom")},
|
||||
{"CultistRitual", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/CultistRitual")},
|
||||
{"ImminentDestruction", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/ImminentDestruction")}
|
||||
{"MechEngaging", MusicLoader.GetMusicSlot(mod, "Assets/Music/Misc/MechEngaging")}
|
||||
};
|
||||
|
||||
ambiencePaths = new Dictionary<string, int>
|
||||
|
||||
@@ -8,15 +8,7 @@ namespace UnCalamityModMusic.Common
|
||||
{
|
||||
public override void ModifyShop(NPCShop shop)
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
if (calamityMod && shop.NpcType == calamity.Find<ModNPC>("FAP").Type)
|
||||
{
|
||||
shop.Add(ModContent.ItemType<Content.Items.HardmodeInterludeMusicBox>(), Condition.Hardmode);
|
||||
shop.Add(ModContent.ItemType<Content.Items.FalseEpilogueMusicBox>(), Condition.DownedMoonLord);
|
||||
}
|
||||
|
||||
if (!calamityMod && shop.NpcType == NPCID.Princess)
|
||||
if (shop.NpcType == NPCID.Princess)
|
||||
{
|
||||
shop.Add(ModContent.ItemType<Content.Items.HardmodeInterludeMusicBox>(), Condition.Hardmode);
|
||||
shop.Add(ModContent.ItemType<Content.Items.FalseEpilogueMusicBox>(), Condition.DownedMoonLord);
|
||||
|
||||
@@ -4,6 +4,7 @@ using Terraria;
|
||||
using Terraria.GameContent.Events;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common.Configs;
|
||||
|
||||
namespace UnCalamityModMusic.Common
|
||||
{
|
||||
@@ -12,27 +13,36 @@ namespace UnCalamityModMusic.Common
|
||||
public static bool onSurface;
|
||||
public static bool onRemixedSurface;
|
||||
public static bool inSpace;
|
||||
public static bool inTown;
|
||||
public static bool inTownWithRain;
|
||||
public static bool inUgTown;
|
||||
public static bool ugDesertOriginalHeight;
|
||||
public static bool isRaining;
|
||||
public static bool notRaining;
|
||||
public static bool largeWorld;
|
||||
public static bool mediumWorld;
|
||||
public static bool smallWorld;
|
||||
public static bool inTown;
|
||||
public static bool inTownWithRain;
|
||||
public static bool inUgTown;
|
||||
public static bool notInExcludedTownBiome;
|
||||
public static bool notInExcludedTownEvent;
|
||||
public static bool ugDesertOriginalHeight;
|
||||
public static bool distanceToMagicStorageTiles;
|
||||
public static bool ZoneSandstorm;
|
||||
public static bool ZoneOverworldHeightExtra;
|
||||
public static bool TownSceneActive;
|
||||
public static bool WorkshopSceneActive;
|
||||
public static bool WorkshopTier6Bosses;
|
||||
public static bool WorkshopTier5Bosses;
|
||||
public static bool WorkshopTier4Bosses;
|
||||
public static bool WorkshopTier3Bosses;
|
||||
public static bool WorkshopTier2Bosses;
|
||||
|
||||
public static bool infernumMode;
|
||||
public static bool deathMode;
|
||||
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;
|
||||
@@ -69,12 +79,6 @@ namespace UnCalamityModMusic.Common
|
||||
public static bool downedPerforators;
|
||||
public static bool downedHiveMind;
|
||||
|
||||
public static bool WorkshopTier6Bosses;
|
||||
public static bool WorkshopTier5Bosses;
|
||||
public static bool WorkshopTier4Bosses;
|
||||
public static bool WorkshopTier3Bosses;
|
||||
public static bool WorkshopTier2Bosses;
|
||||
|
||||
public static bool ZonePyramid;
|
||||
public static bool ZoneGraniteCave;
|
||||
public static bool ZoneMarbleCave;
|
||||
@@ -89,6 +93,7 @@ namespace UnCalamityModMusic.Common
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
var infernumMod = ModLoader.TryGetMod("InfernumMode", out Mod infernum);
|
||||
var remnantsMod = ModLoader.TryGetMod("Remnants", out Mod remnants);
|
||||
var magicStorage = ModLoader.TryGetMod("MagicStorage", out Mod storage);
|
||||
var noTownMusic = ModLoader.TryGetMod("NoTownMusic", out Mod notownmusic);
|
||||
|
||||
float spacef = remnantsMod ? 17f : 16f;
|
||||
@@ -98,26 +103,90 @@ namespace UnCalamityModMusic.Common
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
|
||||
onSurface = player.position.Y < Main.worldSurface * 16.0 + (double)Main.screenHeight / 2;
|
||||
onRemixedSurface = Main.remixWorld && (double)player.position.Y / 16f > Main.rockLayer && player.position.Y / 16f < (float)Main.maxTilesY - 350;
|
||||
onRemixedSurface =
|
||||
Main.remixWorld &&
|
||||
(double)player.position.Y / 16f > Main.rockLayer &&
|
||||
player.position.Y / 16f < (float)Main.maxTilesY - 350;
|
||||
inSpace = (float)((double)((Main.screenPosition.Y + (float)(Main.screenHeight / 2)) / spacef - (65f + 10f * spaceh)) / (Main.worldSurface / 5.0)) < 1f;
|
||||
ugDesertOriginalHeight = (double)player.position.Y >= Main.worldSurface * 16.0 + (double)(Main.screenHeight / 2);
|
||||
isRaining = Main.cloudAlpha > 0f;
|
||||
notRaining = Main.cloudAlpha <= 0.01f;
|
||||
largeWorld = Main.maxTilesY == 2400;
|
||||
mediumWorld = Main.maxTilesY == 1800;
|
||||
smallWorld = Main.maxTilesY == 1200;
|
||||
notInExcludedTownBiome = !(player.ZoneGraveyard || player.ZoneShimmer || player.ZoneDungeon || player.ZoneLihzhardTemple || ZoneBrimstoneCrags || ZoneAbyss);
|
||||
notInExcludedTownEvent = !(/*Main._shouldUseWindyDayMusic || */Main.slimeRain || ZoneSandstorm || Main.bloodMoon || Main.eclipse);
|
||||
ugDesertOriginalHeight = (double)player.position.Y >= Main.worldSurface * 16.0 + (double)(Main.screenHeight / 2);
|
||||
ZoneSandstorm = Sandstorm.Happening && player.ZoneDesert && !player.ZoneBeach;
|
||||
ZoneOverworldHeightExtra = (!player.ZoneDesert && player.ZoneOverworldHeight) || (player.ZoneDesert && !ugDesertOriginalHeight);
|
||||
TownSceneActive = ModContent.GetInstance<Music.TownDay>().IsSceneEffectActive(player) || ModContent.GetInstance<Music.TownNight>().IsSceneEffectActive(player) || ModContent.GetInstance<Music.TownRain>().IsSceneEffectActive(player) || ModContent.GetInstance<Music.TownParty>().IsSceneEffectActive(player);
|
||||
WorkshopSceneActive = ModContent.GetInstance<Music.WorkshopTier1>().IsSceneEffectActive(player) || ModContent.GetInstance<Music.WorkshopTier2>().IsSceneEffectActive(player) || ModContent.GetInstance<Music.WorkshopTier3>().IsSceneEffectActive(player) || ModContent.GetInstance<Music.WorkshopTier4>().IsSceneEffectActive(player) || ModContent.GetInstance<Music.WorkshopTier5>().IsSceneEffectActive(player) || ModContent.GetInstance<Music.WorkshopTier6>().IsSceneEffectActive(player);
|
||||
|
||||
WorkshopTier6Bosses = downedExoMechs || downedSupremeCalamitas;
|
||||
WorkshopTier5Bosses = NPC.downedMoonlord || downedProfanedGuardians || downedDragonfolly || downedProvidence || downedCeaselessVoid || downedStormWeaver || downedSignus || downedPolterghast || downedOldDuke || downedDevourerofGods || downedYharon;
|
||||
WorkshopTier4Bosses = NPC.downedPlantBoss || downedLeviathan || downedAstrumAureus || NPC.downedGolemBoss || downedPlaguebringerGoliath || NPC.downedFishron || downedRavager || NPC.downedEmpressOfLight || NPC.downedAncientCultist || downedAstrumDeus;
|
||||
WorkshopTier3Bosses = Main.hardMode || NPC.downedQueenSlime || downedCryogen || NPC.downedMechBossAny || downedAquaticScourge || downedBrimstoneElemental || downedCalamitasClone;
|
||||
WorkshopTier2Bosses = downedHiveMind || downedPerforators || NPC.downedQueenBee || NPC.downedBoss3 || NPC.downedDeerclops || downedSlimeGod;
|
||||
smallWorld = Main.maxTilesY == 1200;
|
||||
notInExcludedTownBiome =
|
||||
!(player.ZoneGraveyard ||
|
||||
player.ZoneShimmer ||
|
||||
player.ZoneDungeon ||
|
||||
player.ZoneLihzhardTemple ||
|
||||
ZoneBrimstoneCrags ||
|
||||
ZoneAbyss);
|
||||
notInExcludedTownEvent =
|
||||
/*!(Main._shouldUseWindyDayMusic ||*/
|
||||
!(Main.slimeRain ||
|
||||
ZoneSandstorm ||
|
||||
Main.bloodMoon ||
|
||||
Main.eclipse);
|
||||
ZoneSandstorm =
|
||||
Sandstorm.Happening &&
|
||||
player.ZoneDesert &&
|
||||
!player.ZoneBeach;
|
||||
ZoneOverworldHeightExtra =
|
||||
(!player.ZoneDesert && player.ZoneOverworldHeight) ||
|
||||
(player.ZoneDesert && !ugDesertOriginalHeight);
|
||||
TownSceneActive =
|
||||
ModContent.GetInstance<Music.TownDay>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<Music.TownNight>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<Music.TownRain>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<Music.TownParty>().IsSceneEffectActive(player);
|
||||
WorkshopSceneActive =
|
||||
ModContent.GetInstance<Music.WorkshopTier1>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<Music.WorkshopTier2>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<Music.WorkshopTier3>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<Music.WorkshopTier4>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<Music.WorkshopTier5>().IsSceneEffectActive(player) ||
|
||||
ModContent.GetInstance<Music.WorkshopTier6>().IsSceneEffectActive(player);
|
||||
WorkshopTier6Bosses =
|
||||
downedExoMechs ||
|
||||
downedSupremeCalamitas;
|
||||
WorkshopTier5Bosses =
|
||||
NPC.downedMoonlord ||
|
||||
downedProfanedGuardians ||
|
||||
downedDragonfolly ||
|
||||
downedProvidence ||
|
||||
downedCeaselessVoid ||
|
||||
downedStormWeaver ||
|
||||
downedSignus ||
|
||||
downedPolterghast ||
|
||||
downedOldDuke ||
|
||||
downedDevourerofGods ||
|
||||
downedYharon;
|
||||
WorkshopTier4Bosses =
|
||||
NPC.downedPlantBoss ||
|
||||
downedLeviathan ||
|
||||
downedAstrumAureus ||
|
||||
NPC.downedGolemBoss ||
|
||||
downedPlaguebringerGoliath ||
|
||||
NPC.downedFishron ||
|
||||
downedRavager ||
|
||||
NPC.downedEmpressOfLight ||
|
||||
NPC.downedAncientCultist ||
|
||||
downedAstrumDeus;
|
||||
WorkshopTier3Bosses =
|
||||
Main.hardMode ||
|
||||
NPC.downedQueenSlime ||
|
||||
downedCryogen ||
|
||||
NPC.downedMechBossAny ||
|
||||
downedAquaticScourge ||
|
||||
downedBrimstoneElemental ||
|
||||
downedCalamitasClone;
|
||||
WorkshopTier2Bosses =
|
||||
downedHiveMind ||
|
||||
downedPerforators ||
|
||||
NPC.downedQueenBee ||
|
||||
NPC.downedBoss3 ||
|
||||
NPC.downedDeerclops ||
|
||||
downedSlimeGod;
|
||||
|
||||
if (noTownMusic)
|
||||
{
|
||||
@@ -135,19 +204,50 @@ namespace UnCalamityModMusic.Common
|
||||
}
|
||||
else
|
||||
{
|
||||
inTown = player.townNPCs > 2f && ((notRaining && notInExcludedTownEvent && player.ZoneOverworldHeight) || inSpace);
|
||||
inTownWithRain = player.townNPCs > 2f && isRaining && notInExcludedTownEvent && ZoneOverworldHeightExtra;
|
||||
inUgTown = player.townNPCs > 2f && (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight);
|
||||
inTown =
|
||||
player.townNPCs > 2f &&
|
||||
((notRaining &&
|
||||
notInExcludedTownEvent &&
|
||||
player.ZoneOverworldHeight) ||
|
||||
inSpace);
|
||||
inTownWithRain =
|
||||
player.townNPCs > 2f &&
|
||||
isRaining &&
|
||||
notInExcludedTownEvent &&
|
||||
ZoneOverworldHeightExtra;
|
||||
inUgTown =
|
||||
player.townNPCs > 2f &&
|
||||
(player.ZoneDirtLayerHeight ||
|
||||
player.ZoneRockLayerHeight ||
|
||||
player.ZoneUnderworldHeight);
|
||||
}
|
||||
}
|
||||
|
||||
if (magicStorage)
|
||||
{
|
||||
distanceToMagicStorageTiles =
|
||||
WorkshopDetection.TileDistance(storage.Find<ModTile>("StorageHeart").Type) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) ||
|
||||
WorkshopDetection.TileDistance(storage.Find<ModTile>("CraftingAccess").Type) <= (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f) * (ModContent.GetInstance<MusicConfig>().WorkshopRange * 16f);
|
||||
}
|
||||
|
||||
if (calamityMod)
|
||||
{
|
||||
deathMode = (bool)calamity.Call("DifficultyActive", "death");
|
||||
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");
|
||||
ZoneAstralInfection = (bool)calamity.Call("GetInZone", player, "astral");
|
||||
ZoneSulfurSea = (bool)calamity.Call("GetInZone", player, "sulfur") && !ZoneAbyss;
|
||||
ZoneSulfurSea =
|
||||
(bool)calamity.Call("GetInZone", player, "sulfur") &&
|
||||
!ZoneAbyss;
|
||||
ZoneAbyss = (bool)calamity.Call("GetInZone", player, "abyss");
|
||||
ZoneShallowAbyss = (bool)calamity.Call("GetInZone", player, "layer1") || (bool)calamity.Call("GetInZone", player, "layer2");
|
||||
ZoneShallowAbyss =
|
||||
(bool)calamity.Call("GetInZone", player, "layer1") ||
|
||||
(bool)calamity.Call("GetInZone", player, "layer2");
|
||||
ZoneDeepAbyss = (bool)calamity.Call("GetInZone", player, "layer3");
|
||||
ZoneVoidAbyss = (bool)calamity.Call("GetInZone", player, "layer4");
|
||||
ZoneSunkenSea = (bool)calamity.Call("GetInZone", player, "sunkensea");
|
||||
@@ -177,10 +277,6 @@ namespace UnCalamityModMusic.Common
|
||||
downedPerforators = (bool)calamity.Call("GetBossDowned", "perforator");
|
||||
downedHiveMind = (bool)calamity.Call("GetBossDowned", "hivemind");
|
||||
|
||||
deathMode = (bool)calamity.Call("DifficultyActive", "death");
|
||||
revengeanceMode = (bool)calamity.Call("DifficultyActive", "revengeance");
|
||||
bossRushActive = (bool)calamity.Call("DifficultyActive", "bossrush");
|
||||
|
||||
CalamityMusicEventInactive = CalamityMusicEvent() == null;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common.Configs;
|
||||
|
||||
namespace UnCalamityModMusic.Common
|
||||
{
|
||||
public class WorkshopDetection : GlobalTile
|
||||
{
|
||||
public static Dictionary<int, List<Vector2>> tileCenters = new Dictionary<int, List<Vector2>>();
|
||||
|
||||
public static float detectionRadius;
|
||||
|
||||
public static void InitializeDetectionRadius()
|
||||
{
|
||||
float workshopRange = ModContent.GetInstance<MusicConfig>().WorkshopRange;
|
||||
detectionRadius = (workshopRange * 16f) * (workshopRange * 16f);
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, int type, bool closer)
|
||||
{
|
||||
Vector2 tileCenter = new Vector2(i * 16 + 8, j * 16 + 8);
|
||||
|
||||
if (closer)
|
||||
{
|
||||
if (!tileCenters.TryGetValue(type, out List<Vector2> centers))
|
||||
{
|
||||
centers = new List<Vector2>();
|
||||
tileCenters[type] = centers;
|
||||
}
|
||||
|
||||
bool found = false;
|
||||
for (int index = 0; index < centers.Count; index++)
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!found)
|
||||
{
|
||||
centers.Add(tileCenter);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tileCenters.TryGetValue(type, out List<Vector2> centers))
|
||||
{
|
||||
for (int index = centers.Count - 1; index >= 0; index--)
|
||||
{
|
||||
centers.RemoveAt(index);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static float TileDistance(int type)
|
||||
{
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
|
||||
float minDistanceSquared = float.MaxValue;
|
||||
|
||||
if (tileCenters.TryGetValue(type, out List<Vector2> centers))
|
||||
{
|
||||
for (int index = 0; index < centers.Count; index++)
|
||||
{
|
||||
float distanceSquared = Vector2.DistanceSquared(centers[index], player.Center);
|
||||
if (distanceSquared < minDistanceSquared)
|
||||
{
|
||||
minDistanceSquared = distanceSquared;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return minDistanceSquared;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Items
|
||||
{
|
||||
public class JungleDayMusicBox : MusicBoxItem
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 732 B |
@@ -14,7 +14,7 @@ namespace UnCalamityModMusic.Content.Items
|
||||
public override void MusicBoxRecipe()
|
||||
{
|
||||
Recipe.Create(Type, 1)
|
||||
.AddIngredient(ItemID.ShellPileBlock, 10)
|
||||
.AddIngredient(ItemID.PalmWood, 10)
|
||||
.AddIngredient(ItemID.RainCloud, 10)
|
||||
.AddIngredient(ItemID.Coral, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Items
|
||||
{
|
||||
public class SandstormMusicBox : MusicBoxItem
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 840 B |
|
Before Width: | Height: | Size: 860 B After Width: | Height: | Size: 764 B |
|
Before Width: | Height: | Size: 84 B After Width: | Height: | Size: 84 B |
|
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 227 B |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 2.4 MiB After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 5.6 KiB |
@@ -10,309 +10,305 @@ using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Menus
|
||||
{
|
||||
public class ResurrectionMenu : ModMenu
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("HardmodeInterlude");
|
||||
public class ResurrectionMenu : ModMenu
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("HardmodeInterlude");
|
||||
|
||||
public override string DisplayName => Language.GetTextValue("Mods.UnCalamityModMusic.Menus.ResurrectionMenu");
|
||||
public override string DisplayName => Language.GetTextValue("Mods.UnCalamityModMusic.Menus.ResurrectionMenu");
|
||||
|
||||
public class Ember
|
||||
{
|
||||
public int Time;
|
||||
public class Cinder
|
||||
{
|
||||
public int Time;
|
||||
public int Lifetime;
|
||||
public int IdentityIndex;
|
||||
public float Scale;
|
||||
public float Depth;
|
||||
public Color DrawColor;
|
||||
public Vector2 Velocity;
|
||||
public Vector2 Center;
|
||||
|
||||
public int LifeTime;
|
||||
public Cinder(int lifetime, int identity, float depth, Color color, Vector2 startingPosition, Vector2 startingVelocity)
|
||||
{
|
||||
Lifetime = lifetime;
|
||||
IdentityIndex = identity;
|
||||
Depth = depth;
|
||||
DrawColor = color;
|
||||
Center = startingPosition;
|
||||
Velocity = startingVelocity;
|
||||
}
|
||||
}
|
||||
|
||||
public int IdentityIndex;
|
||||
public static List<Cinder> Cinders
|
||||
{
|
||||
get;
|
||||
internal set;
|
||||
} = new();
|
||||
|
||||
public float Scale;
|
||||
public float remixLogoRotation = 0f;
|
||||
|
||||
public float Depth;
|
||||
public override Asset<Texture2D> Logo => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/ResurrectionMenuLogo");
|
||||
public override Asset<Texture2D> SunTexture => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/BlankPixel");
|
||||
public override Asset<Texture2D> MoonTexture => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/BlankPixel");
|
||||
|
||||
public Color DrawColor;
|
||||
public override ModSurfaceBackgroundStyle MenuBackgroundStyle => ModContent.GetInstance<BlankBackground>();
|
||||
|
||||
public Vector2 Velocity;
|
||||
public override bool PreDrawLogo(SpriteBatch spriteBatch, ref Vector2 logoDrawCenter, ref float logoRotation, ref float logoScale, ref Color drawColor)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/ResurrectionMenuBackground").Value;
|
||||
|
||||
public Vector2 Center;
|
||||
Vector2 drawOffset = Vector2.Zero;
|
||||
float xScale = (float)Main.screenWidth / texture.Width;
|
||||
float yScale = (float)Main.screenHeight / texture.Height;
|
||||
float scale = xScale;
|
||||
|
||||
public Ember(int lifetime, int identity, float depth, Color color, Vector2 startingPosition, Vector2 startingVelocity)
|
||||
{
|
||||
LifeTime = lifetime;
|
||||
IdentityIndex = identity;
|
||||
Depth = depth;
|
||||
DrawColor = color;
|
||||
Center = startingPosition;
|
||||
Velocity = startingVelocity;
|
||||
}
|
||||
}
|
||||
|
||||
public static List<Ember> Embers { get; internal set; } = new List<Ember>();
|
||||
|
||||
public override Asset<Texture2D> Logo => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/Logo", AssetRequestMode.AsyncLoad);
|
||||
|
||||
public override Asset<Texture2D> SunTexture => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/Blank", AssetRequestMode.AsyncLoad);
|
||||
|
||||
public override Asset<Texture2D> MoonTexture => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/Blank", AssetRequestMode.AsyncLoad);
|
||||
|
||||
public override ModSurfaceBackgroundStyle MenuBackgroundStyle => ModContent.GetInstance<BlankBackground>();
|
||||
|
||||
public override bool PreDrawLogo(SpriteBatch spriteBatch, ref Vector2 logoDrawCenter, ref float logoRotation, ref float logoScale, ref Color drawColor)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/ResurrectionBackground", AssetRequestMode.AsyncLoad).Value;
|
||||
Vector2 drawOffset = Vector2.Zero;
|
||||
|
||||
float scaleX = (float)Main.screenWidth / (float)texture.Width;
|
||||
float scaleY = (float)Main.screenHeight / (float)texture.Height;
|
||||
float scale = scaleX;
|
||||
if (scaleX != scaleY)
|
||||
{
|
||||
if (scaleY > scaleX)
|
||||
if (xScale != yScale)
|
||||
{
|
||||
if (yScale > xScale)
|
||||
{
|
||||
scale = scaleY;
|
||||
scale = yScale;
|
||||
drawOffset.X -= (texture.Width * scale - Main.screenWidth) * 0.5f;
|
||||
}
|
||||
else
|
||||
{
|
||||
drawOffset.Y -= (texture.Height * scale - Main.screenHeight) * 0.5f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
spriteBatch.Draw
|
||||
(
|
||||
texture,
|
||||
drawOffset,
|
||||
null,
|
||||
Color.White,
|
||||
0f,
|
||||
Vector2.Zero,
|
||||
scale,
|
||||
0,
|
||||
0f
|
||||
);
|
||||
spriteBatch.Draw(texture, drawOffset, null, Color.White, 0f, Vector2.Zero, scale, SpriteEffects.None, 0f);
|
||||
|
||||
Vector2 startingPosition = default(Vector2);
|
||||
for (int k = 0; k < 5; k++)
|
||||
static Color selectCinderColor()
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
return Color.Lerp(Color.DarkBlue, Color.LightCyan, Main.rand.NextFloat());
|
||||
}
|
||||
|
||||
return Color.Lerp(Color.Turquoise, Color.LimeGreen, Main.rand.NextFloat(0.9f));
|
||||
}
|
||||
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
int lifetime = Main.rand.Next(200, 300);
|
||||
float depth = Main.rand.NextFloat(1.8f, 5f);
|
||||
Vector2 startingPosition = new Vector2(Main.screenWidth * Main.rand.NextFloat(-0.1f, 1.1f), Main.screenHeight * 1.05f);
|
||||
Vector2 startingVelocity = -Vector2.UnitY.RotatedBy(Main.rand.NextFloat(-0.9f, 0.9f)) * 4f;
|
||||
Color cinderColor = selectCinderColor();
|
||||
Cinders.Add(new Cinder(lifetime, Cinders.Count, depth, cinderColor, startingPosition, startingVelocity));
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < Cinders.Count; i++)
|
||||
{
|
||||
Cinders[i].Scale = Utils.GetLerpValue(Cinders[i].Lifetime, Cinders[i].Lifetime / 3, Cinders[i].Time, true);
|
||||
Cinders[i].Scale *= MathHelper.Lerp(0.6f, 0.9f, Cinders[i].IdentityIndex % 6f / 6f);
|
||||
|
||||
if (Cinders[i].IdentityIndex % 13 == 12)
|
||||
{
|
||||
Cinders[i].Scale *= 2f;
|
||||
}
|
||||
|
||||
float flySpeed = MathHelper.Lerp(3.2f, 14f, Cinders[i].IdentityIndex % 21f / 21f);
|
||||
Vector2 idealVelocity = -Vector2.UnitY.RotatedBy(MathHelper.Lerp(-0.44f, 0.44f, (float)Math.Sin(Cinders[i].Time / 16f + Cinders[i].IdentityIndex) * 0.5f + 0.5f));
|
||||
idealVelocity = (idealVelocity + Vector2.UnitX).SafeNormalize(Vector2.UnitY) * flySpeed;
|
||||
|
||||
float movementInterpolant = MathHelper.Lerp(0.01f, 0.08f, Utils.GetLerpValue(45f, 145f, Cinders[i].Time, true));
|
||||
Cinders[i].Velocity = Vector2.Lerp(Cinders[i].Velocity, idealVelocity, movementInterpolant);
|
||||
|
||||
Cinders[i].Time++;
|
||||
Cinders[i].Center += Cinders[i].Velocity;
|
||||
}
|
||||
|
||||
Cinders.RemoveAll(c => c.Time >= c.Lifetime);
|
||||
|
||||
Texture2D cinderTexture = ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/CalamitasCinder").Value;
|
||||
|
||||
for (int i = 0; i < Cinders.Count; i++)
|
||||
{
|
||||
Vector2 drawPosition = Cinders[i].Center;
|
||||
spriteBatch.Draw(cinderTexture, drawPosition, null, Cinders[i].DrawColor, 0f, cinderTexture.Size() * 0.5f, Cinders[i].Scale, 0, 0f);
|
||||
}
|
||||
|
||||
drawColor = Color.White;
|
||||
Main.time = 27000;
|
||||
Main.dayTime = true;
|
||||
|
||||
if (WorldGen.remixWorldGen)
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
int lifetime = Main.rand.Next(200, 300);
|
||||
float depth = Main.rand.NextFloat(1.8f, 5f);
|
||||
startingPosition = new(Main.screenWidth * Main.rand.NextFloat(-0.1f, 1.1f), Main.screenHeight * 1.05f);
|
||||
Vector2 startingVelocity = -Vector2.UnitY.RotatedBy(Main.rand.NextFloat(-0.9f, 0.9f)) * 4f;
|
||||
Color EmberColor = selectEmberColor();
|
||||
Embers.Add(new Ember(lifetime, Embers.Count, depth, EmberColor, startingPosition, startingVelocity));
|
||||
}
|
||||
remixLogoRotation += MathHelper.Pi / 50f;
|
||||
|
||||
if (remixLogoRotation >= MathHelper.Pi && !WorldGen.everythingWorldGen)
|
||||
{
|
||||
remixLogoRotation = MathHelper.Pi;
|
||||
}
|
||||
}
|
||||
for (int j = 0; j < Embers.Count; j++)
|
||||
else
|
||||
{
|
||||
Embers[j].Scale = Utils.GetLerpValue(Embers[j].LifeTime, Embers[j].LifeTime / 3, Embers[j].Time, clamped: true);
|
||||
Embers[j].Scale *= MathHelper.Lerp(0.6f, 0.9f, Embers[j].IdentityIndex % 6f / 6f);
|
||||
if (Embers[j].IdentityIndex % 13 == 12)
|
||||
{
|
||||
Embers[j].Scale *= 2f;
|
||||
}
|
||||
float flySpeed = MathHelper.Lerp(3.2f, 14f, Embers[j].IdentityIndex % 21f / 21f);
|
||||
Vector2 idealVelocity = -Vector2.UnitY.RotatedBy(MathHelper.Lerp(-0.44f, 0.44f, (float)Math.Sin((double)(Embers[j].Time / 16f + Embers[j].IdentityIndex)) * 0.5f + 0.5f));
|
||||
idealVelocity = (idealVelocity + Vector2.UnitX).SafeNormalize(Vector2.UnitY) * flySpeed;
|
||||
float movementInterpolant = MathHelper.Lerp(0.01f, 0.08f, Utils.GetLerpValue(45f, 145f, Embers[j].Time, clamped: true));
|
||||
Embers[j].Velocity = Vector2.Lerp(Embers[j].Velocity, idealVelocity, movementInterpolant);
|
||||
Embers[j].Time++;
|
||||
Ember Ember = Embers[j];
|
||||
Ember.Center += Embers[j].Velocity;
|
||||
remixLogoRotation = 0f;
|
||||
}
|
||||
|
||||
Embers.RemoveAll((Ember Ember) => Ember.Time >= Ember.LifeTime);
|
||||
Texture2D EmberTexture = ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/Particle", AssetRequestMode.AsyncLoad).Value;
|
||||
for (int i = 0; i < Embers.Count; i++)
|
||||
{
|
||||
Vector2 drawPosition = Embers[i].Center;
|
||||
spriteBatch.Draw
|
||||
(
|
||||
EmberTexture,
|
||||
drawPosition,
|
||||
null,
|
||||
Embers[i].DrawColor,
|
||||
0f,
|
||||
EmberTexture.Size() * 0.5f,
|
||||
Embers[i].Scale,
|
||||
0,
|
||||
0f
|
||||
);
|
||||
}
|
||||
float rotationSecretSeedAdjusted = WorldGen.remixWorldGen ? remixLogoRotation : WorldGen.drunkWorldGen ? logoRotation : 0f;
|
||||
|
||||
Main.time = 27000;
|
||||
Main.dayTime = true;
|
||||
drawColor = Color.White;
|
||||
Vector2 drawPos = default(Vector2);
|
||||
drawPos = new(Main.screenWidth / 2f, 100f);
|
||||
spriteBatch.End();
|
||||
spriteBatch.Begin(0, BlendState.NonPremultiplied, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, null, Main.UIScaleMatrix);
|
||||
spriteBatch.Draw(Logo.Value, drawPos, null, drawColor, logoRotation, Logo.Value.Size() * 0.5f, logoScale, 0, 0f);
|
||||
spriteBatch.End();
|
||||
spriteBatch.Begin(0, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, null, Main.UIScaleMatrix);
|
||||
return false;
|
||||
Vector2 drawPos = new Vector2(Main.screenWidth / 2f, 100f);
|
||||
spriteBatch.End();
|
||||
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.NonPremultiplied, SamplerState.PointClamp, DepthStencilState.None, Main.Rasterizer, null, Main.UIScaleMatrix);
|
||||
spriteBatch.Draw(Logo.Value, drawPos, null, drawColor, rotationSecretSeedAdjusted, Logo.Value.Size() * 0.5f, WorldGen.drunkWorldGen ? logoScale : 1f, SpriteEffects.None, 0f);
|
||||
spriteBatch.End();
|
||||
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, null, Main.UIScaleMatrix);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static Color selectEmberColor()
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
return Color.Lerp(Color.DarkBlue, Color.LightCyan, Main.rand.NextFloat());
|
||||
}
|
||||
return Color.Lerp(Color.Turquoise, Color.LimeGreen, Main.rand.NextFloat(0.9f));
|
||||
}
|
||||
}
|
||||
}
|
||||
public class MemoryMenu : ModMenu
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("FalseEpilogue");
|
||||
|
||||
public class MemoryMenu : ModMenu
|
||||
{
|
||||
public override int Music => MusicPathing.GetMusicSlot("FalseEpilogue");
|
||||
public override string DisplayName => Language.GetTextValue("Mods.UnCalamityModMusic.Menus.MemoryMenu");
|
||||
|
||||
public override string DisplayName => Language.GetTextValue("Mods.UnCalamityModMusic.Menus.MemoryMenu");
|
||||
public class Cinder
|
||||
{
|
||||
public int Time;
|
||||
public int Lifetime;
|
||||
public int IdentityIndex;
|
||||
public float Scale;
|
||||
public float Depth;
|
||||
public Color DrawColor;
|
||||
public Vector2 Velocity;
|
||||
public Vector2 Center;
|
||||
|
||||
public class Ember
|
||||
{
|
||||
public int Time;
|
||||
public Cinder(int lifetime, int identity, float depth, Color color, Vector2 startingPosition, Vector2 startingVelocity)
|
||||
{
|
||||
Lifetime = lifetime;
|
||||
IdentityIndex = identity;
|
||||
Depth = depth;
|
||||
DrawColor = color;
|
||||
Center = startingPosition;
|
||||
Velocity = startingVelocity;
|
||||
}
|
||||
}
|
||||
|
||||
public int LifeTime;
|
||||
public static List<Cinder> Cinders
|
||||
{
|
||||
get;
|
||||
internal set;
|
||||
} = new();
|
||||
|
||||
public int IdentityIndex;
|
||||
public float remixLogoRotation = 0f;
|
||||
|
||||
public float Scale;
|
||||
public override Asset<Texture2D> Logo => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/MemoryMenuLogo");
|
||||
public override Asset<Texture2D> SunTexture => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/BlankPixel");
|
||||
public override Asset<Texture2D> MoonTexture => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/BlankPixel");
|
||||
|
||||
public float Depth;
|
||||
public override ModSurfaceBackgroundStyle MenuBackgroundStyle => ModContent.GetInstance<BlankBackground>();
|
||||
|
||||
public Color DrawColor;
|
||||
public override bool PreDrawLogo(SpriteBatch spriteBatch, ref Vector2 logoDrawCenter, ref float logoRotation, ref float logoScale, ref Color drawColor)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/MemoryMenuBackground").Value;
|
||||
|
||||
public Vector2 Velocity;
|
||||
Vector2 drawOffset = Vector2.Zero;
|
||||
float xScale = (float)Main.screenWidth / texture.Width;
|
||||
float yScale = (float)Main.screenHeight / texture.Height;
|
||||
float scale = xScale;
|
||||
|
||||
public Vector2 Center;
|
||||
if (xScale != yScale)
|
||||
{
|
||||
if (yScale > xScale)
|
||||
{
|
||||
scale = yScale;
|
||||
drawOffset.X -= (texture.Width * scale - Main.screenWidth) * 0.5f;
|
||||
}
|
||||
else
|
||||
{
|
||||
drawOffset.Y -= (texture.Height * scale - Main.screenHeight) * 0.5f;
|
||||
}
|
||||
}
|
||||
|
||||
public Ember(int lifetime, int identity, float depth, Color color, Vector2 startingPosition, Vector2 startingVelocity)
|
||||
{
|
||||
LifeTime = lifetime;
|
||||
IdentityIndex = identity;
|
||||
Depth = depth;
|
||||
DrawColor = color;
|
||||
Center = startingPosition;
|
||||
Velocity = startingVelocity;
|
||||
}
|
||||
}
|
||||
spriteBatch.Draw(texture, drawOffset, null, Color.White, 0f, Vector2.Zero, scale, SpriteEffects.None, 0f);
|
||||
|
||||
public static List<Ember> Embers { get; internal set; } = new List<Ember>();
|
||||
static Color selectCinderColor()
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
return Color.Lerp(Color.DarkGray, Color.LightGray, Main.rand.NextFloat());
|
||||
}
|
||||
|
||||
public override Asset<Texture2D> Logo => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/Logo", AssetRequestMode.AsyncLoad);
|
||||
return Color.Lerp(Color.Red, Color.Yellow, Main.rand.NextFloat(0.9f));
|
||||
}
|
||||
|
||||
public override Asset<Texture2D> SunTexture => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/Blank", AssetRequestMode.AsyncLoad);
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
int lifetime = Main.rand.Next(200, 300);
|
||||
float depth = Main.rand.NextFloat(1.8f, 5f);
|
||||
Vector2 startingPosition = new Vector2(Main.screenWidth * Main.rand.NextFloat(-0.1f, 1.1f), Main.screenHeight * 1.05f);
|
||||
Vector2 startingVelocity = -Vector2.UnitY.RotatedBy(Main.rand.NextFloat(-0.9f, 0.9f)) * 4f;
|
||||
Color cinderColor = selectCinderColor();
|
||||
Cinders.Add(new Cinder(lifetime, Cinders.Count, depth, cinderColor, startingPosition, startingVelocity));
|
||||
}
|
||||
}
|
||||
|
||||
public override Asset<Texture2D> MoonTexture => ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/Blank", AssetRequestMode.AsyncLoad);
|
||||
for (int i = 0; i < Cinders.Count; i++)
|
||||
{
|
||||
Cinders[i].Scale = Utils.GetLerpValue(Cinders[i].Lifetime, Cinders[i].Lifetime / 3, Cinders[i].Time, true);
|
||||
Cinders[i].Scale *= MathHelper.Lerp(0.6f, 0.9f, Cinders[i].IdentityIndex % 6f / 6f);
|
||||
|
||||
public override ModSurfaceBackgroundStyle MenuBackgroundStyle => ModContent.GetInstance<BlankBackground>();
|
||||
if (Cinders[i].IdentityIndex % 13 == 12)
|
||||
{
|
||||
Cinders[i].Scale *= 2f;
|
||||
}
|
||||
|
||||
public override bool PreDrawLogo(SpriteBatch spriteBatch, ref Vector2 logoDrawCenter, ref float logoRotation, ref float logoScale, ref Color drawColor)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/MemoryBackground", AssetRequestMode.AsyncLoad).Value;
|
||||
Vector2 drawOffset = Vector2.Zero;
|
||||
float flySpeed = MathHelper.Lerp(3.2f, 14f, Cinders[i].IdentityIndex % 21f / 21f);
|
||||
Vector2 idealVelocity = -Vector2.UnitY.RotatedBy(MathHelper.Lerp(-0.44f, 0.44f, (float)Math.Sin(Cinders[i].Time / 16f + Cinders[i].IdentityIndex) * 0.5f + 0.5f));
|
||||
idealVelocity = (idealVelocity + Vector2.UnitX).SafeNormalize(Vector2.UnitY) * flySpeed;
|
||||
|
||||
float scaleX = (float)Main.screenWidth / (float)texture.Width;
|
||||
float scaleY = (float)Main.screenHeight / (float)texture.Height;
|
||||
float scale = scaleX;
|
||||
if (scaleX != scaleY)
|
||||
{
|
||||
if (scaleY > scaleX)
|
||||
{
|
||||
scale = scaleY;
|
||||
drawOffset.X -= (texture.Width * scale - Main.screenWidth) * 0.5f;
|
||||
}
|
||||
else
|
||||
{
|
||||
drawOffset.Y -= (texture.Height * scale - Main.screenHeight) * 0.5f;
|
||||
}
|
||||
}
|
||||
float movementInterpolant = MathHelper.Lerp(0.01f, 0.08f, Utils.GetLerpValue(45f, 145f, Cinders[i].Time, true));
|
||||
Cinders[i].Velocity = Vector2.Lerp(Cinders[i].Velocity, idealVelocity, movementInterpolant);
|
||||
|
||||
spriteBatch.Draw
|
||||
(
|
||||
texture,
|
||||
drawOffset,
|
||||
null,
|
||||
Color.White,
|
||||
0f,
|
||||
Vector2.Zero,
|
||||
scale,
|
||||
0,
|
||||
0f
|
||||
);
|
||||
Cinders[i].Time++;
|
||||
Cinders[i].Center += Cinders[i].Velocity;
|
||||
}
|
||||
|
||||
Vector2 startingPosition = default(Vector2);
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
int lifetime = Main.rand.Next(200, 300);
|
||||
float depth = Main.rand.NextFloat(1.8f, 5f);
|
||||
startingPosition = new(Main.screenWidth * Main.rand.NextFloat(-0.1f, 1.1f), Main.screenHeight * 1.05f);
|
||||
Vector2 startingVelocity = -Vector2.UnitY.RotatedBy(Main.rand.NextFloat(-0.9f, 0.9f)) * 4f;
|
||||
Color EmberColor = selectEmberColor();
|
||||
Embers.Add(new Ember(lifetime, Embers.Count, depth, EmberColor, startingPosition, startingVelocity));
|
||||
}
|
||||
}
|
||||
for (int j = 0; j < Embers.Count; j++)
|
||||
{
|
||||
Embers[j].Scale = Utils.GetLerpValue(Embers[j].LifeTime, Embers[j].LifeTime / 3, Embers[j].Time, clamped: true);
|
||||
Embers[j].Scale *= MathHelper.Lerp(0.6f, 0.9f, Embers[j].IdentityIndex % 6f / 6f);
|
||||
if (Embers[j].IdentityIndex % 13 == 12)
|
||||
{
|
||||
Embers[j].Scale *= 2f;
|
||||
}
|
||||
float flySpeed = MathHelper.Lerp(3.2f, 14f, Embers[j].IdentityIndex % 21f / 21f);
|
||||
Vector2 idealVelocity = -Vector2.UnitY.RotatedBy(MathHelper.Lerp(-0.44f, 0.44f, (float)Math.Sin((double)(Embers[j].Time / 16f + Embers[j].IdentityIndex)) * 0.5f + 0.5f));
|
||||
idealVelocity = (idealVelocity + Vector2.UnitX).SafeNormalize(Vector2.UnitY) * flySpeed;
|
||||
float movementInterpolant = MathHelper.Lerp(0.01f, 0.08f, Utils.GetLerpValue(45f, 145f, Embers[j].Time, clamped: true));
|
||||
Embers[j].Velocity = Vector2.Lerp(Embers[j].Velocity, idealVelocity, movementInterpolant);
|
||||
Embers[j].Time++;
|
||||
Ember Ember = Embers[j];
|
||||
Ember.Center += Embers[j].Velocity;
|
||||
}
|
||||
Cinders.RemoveAll(c => c.Time >= c.Lifetime);
|
||||
|
||||
Embers.RemoveAll((Ember Ember) => Ember.Time >= Ember.LifeTime);
|
||||
Texture2D EmberTexture = ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/Particle", AssetRequestMode.AsyncLoad).Value;
|
||||
for (int i = 0; i < Embers.Count; i++)
|
||||
{
|
||||
Vector2 drawPosition = Embers[i].Center;
|
||||
spriteBatch.Draw
|
||||
(
|
||||
EmberTexture,
|
||||
drawPosition,
|
||||
null,
|
||||
Embers[i].DrawColor,
|
||||
0f,
|
||||
EmberTexture.Size() * 0.5f,
|
||||
Embers[i].Scale,
|
||||
0,
|
||||
0f
|
||||
);
|
||||
}
|
||||
Texture2D cinderTexture = ModContent.Request<Texture2D>("UnCalamityModMusic/Content/Menus/CalamitasCinder").Value;
|
||||
|
||||
Main.time = 27000;
|
||||
Main.dayTime = true;
|
||||
drawColor = Color.White;
|
||||
Vector2 drawPos = default(Vector2);
|
||||
drawPos = new(Main.screenWidth / 2f, 100f);
|
||||
spriteBatch.End();
|
||||
spriteBatch.Begin(0, BlendState.NonPremultiplied, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, null, Main.UIScaleMatrix);
|
||||
spriteBatch.Draw(Logo.Value, drawPos, null, drawColor, logoRotation, Logo.Value.Size() * 0.5f, logoScale, 0, 0f);
|
||||
spriteBatch.End();
|
||||
spriteBatch.Begin(0, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, null, Main.UIScaleMatrix);
|
||||
return false;
|
||||
for (int i = 0; i < Cinders.Count; i++)
|
||||
{
|
||||
Vector2 drawPosition = Cinders[i].Center;
|
||||
spriteBatch.Draw(cinderTexture, drawPosition, null, Cinders[i].DrawColor, 0f, cinderTexture.Size() * 0.5f, Cinders[i].Scale, 0, 0f);
|
||||
}
|
||||
|
||||
static Color selectEmberColor()
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
return Color.Lerp(Color.DarkRed, Color.LightGray, Main.rand.NextFloat());
|
||||
}
|
||||
return Color.Lerp(Color.MediumVioletRed, Color.Orange, Main.rand.NextFloat(0.9f));
|
||||
}
|
||||
}
|
||||
}
|
||||
drawColor = Color.White;
|
||||
Main.time = 27000;
|
||||
Main.dayTime = true;
|
||||
|
||||
if (WorldGen.remixWorldGen)
|
||||
{
|
||||
remixLogoRotation += MathHelper.Pi / 50f;
|
||||
|
||||
if (remixLogoRotation >= MathHelper.Pi && !WorldGen.everythingWorldGen)
|
||||
{
|
||||
remixLogoRotation = MathHelper.Pi;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
remixLogoRotation = 0f;
|
||||
}
|
||||
|
||||
float rotationSecretSeedAdjusted = WorldGen.remixWorldGen ? remixLogoRotation : WorldGen.drunkWorldGen ? logoRotation : 0f;
|
||||
|
||||
Vector2 drawPos = new Vector2(Main.screenWidth / 2f, 100f);
|
||||
spriteBatch.End();
|
||||
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.NonPremultiplied, SamplerState.PointClamp, DepthStencilState.None, Main.Rasterizer, null, Main.UIScaleMatrix);
|
||||
spriteBatch.Draw(Logo.Value, drawPos, null, drawColor, rotationSecretSeedAdjusted, Logo.Value.Size() * 0.5f, WorldGen.drunkWorldGen ? logoScale : 1f, SpriteEffects.None, 0f);
|
||||
spriteBatch.End();
|
||||
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, null, Main.UIScaleMatrix);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
internal class BlankBackground : ModSurfaceBackgroundStyle
|
||||
{
|
||||
@@ -341,17 +337,17 @@ namespace UnCalamityModMusic.Content.Menus
|
||||
|
||||
public override int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b)
|
||||
{
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("UnCalamityModMusic/Content/Menus/Blank");
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("UnCalamityModMusic/Content/Menus/BlankPixel");
|
||||
}
|
||||
|
||||
public override int ChooseFarTexture()
|
||||
{
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("UnCalamityModMusic/Content/Menus/Blank");
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("UnCalamityModMusic/Content/Menus/BlankPixel");
|
||||
}
|
||||
|
||||
public override int ChooseMiddleTexture()
|
||||
{
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("UnCalamityModMusic/Content/Menus/Blank");
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("UnCalamityModMusic/Content/Menus/BlankPixel");
|
||||
}
|
||||
|
||||
public override bool PreDrawCloseBackground(SpriteBatch spriteBatch)
|
||||
|
||||
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 5.6 KiB |
@@ -190,7 +190,7 @@ namespace UnCalamityModMusic.Content
|
||||
{
|
||||
Recipe.Create(cmusic.Find<ModItem>("AbyssLayer1MusicBox").Type, 1)
|
||||
.AddIngredient(calamity, "SulphurousShale", 10)
|
||||
.AddIngredient(calamity, "SulphurousSandstone", 10)
|
||||
.AddIngredient(calamity, "HardenedSulphurousSandstone", 10)
|
||||
.AddIngredient(calamity, "AbyssTreasureChest", 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(musicBoxCraftingStation)
|
||||
@@ -255,7 +255,7 @@ namespace UnCalamityModMusic.Content
|
||||
Recipe.Create(cmusic.Find<ModItem>("AcidRainTier1MusicBox").Type, 1)
|
||||
.AddIngredient(calamity, "Acidwood", 10)
|
||||
.AddIngredient(calamity, "SulfuricScale", 10)
|
||||
.AddIngredient(calamity, "SulphurousSand", 10)
|
||||
.AddIngredient(calamity, "SulphurousSandstone", 10)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(musicBoxCraftingStation)
|
||||
.Register();
|
||||
@@ -1140,8 +1140,24 @@ namespace UnCalamityModMusic.Content
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
|
||||
//Sunken Sea
|
||||
try
|
||||
//Sulphurous Sea Rain
|
||||
try
|
||||
{
|
||||
Recipe.Create(cmusic.Find<ModItem>("SulphurousSeaRainMusicBox").Type, 1)
|
||||
.AddIngredient(calamity, "Acidwood", 10)
|
||||
.AddIngredient(ItemID.RainCloud, 10)
|
||||
.AddIngredient(ItemID.Coral, 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
|
||||
//Sunken Sea
|
||||
try
|
||||
{
|
||||
Recipe.Create(cmusic.Find<ModItem>("SunkenSeaMusicBox").Type, 1)
|
||||
.AddIngredient(calamity, "Navystone", 10)
|
||||
@@ -1185,58 +1201,6 @@ namespace UnCalamityModMusic.Content
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Calamity Addon Music Boxes
|
||||
if (calamityVanities)
|
||||
{
|
||||
//Astral Blight
|
||||
try
|
||||
{
|
||||
Recipe.Create(calval.Find<ModItem>("AstralMusicBox").Type, 1)
|
||||
.AddIngredient(calval, "AstralTreeWood", 10)
|
||||
.AddIngredient(calval, "AstralDirt", 10)
|
||||
.AddIngredient(calval, "BlightolemurItem", 3)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
}
|
||||
|
||||
if (catalystMod)
|
||||
{
|
||||
//Astrageldon Phase 1
|
||||
try
|
||||
{
|
||||
Recipe.Create(catalyst.Find<ModItem>("AstrageldonPhase1MusicBox").Type, 1)
|
||||
.AddIngredient(catalyst, "AstrageldonTrophy", 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
|
||||
//Astrageldon Phase 2
|
||||
try
|
||||
{
|
||||
Recipe.Create(catalyst.Find<ModItem>("AstrageldonPhase2MusicBox").Type, 1)
|
||||
.AddIngredient(catalyst, "AstrageldonTrophy", 1)
|
||||
.AddIngredient(ItemID.MusicBox, 1)
|
||||
.AddTile(musicBoxCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
catch
|
||||
{
|
||||
UnCalamityModMusic.Instance.Logger.Debug(Language.GetTextValue("Mods.UnCalamityModMusic.Recipes.NameMismatchError"));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ namespace UnCalamityModMusic.Content.Tiles.External
|
||||
{
|
||||
public class MusicBox : MusicBoxTile
|
||||
{
|
||||
public override string HighlightTexture => "UnCalamityModMusic/Content/Menus/Blank";
|
||||
public override string HighlightTexture => "UnCalamityModMusic/Content/Menus/BlankPixel";
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Tiles
|
||||
{
|
||||
public class JungleDayMusicBox : MusicBoxTile
|
||||
{
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 573 B |
@@ -0,0 +1,8 @@
|
||||
using UnCalamityModMusic.Common;
|
||||
|
||||
namespace UnCalamityModMusic.Content.Tiles
|
||||
{
|
||||
public class SandstormMusicBox : MusicBoxTile
|
||||
{
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 819 B |
|
After Width: | Height: | Size: 289 B |
|
Before Width: | Height: | Size: 653 B After Width: | Height: | Size: 939 B |
|
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 509 B |
@@ -6,6 +6,11 @@ Mods: {
|
||||
MusicTogglesHeader: Music Toggles
|
||||
ConditionChangesHeader: Condition Changes
|
||||
|
||||
WorkshopRange: {
|
||||
Label: "[i:WorkBench] Workshop Range"
|
||||
Tooltip: Adjusts the range at which the Workshop themes play, from 10 to 50 blocks.
|
||||
}
|
||||
|
||||
WorkshopThemes: {
|
||||
Label: "[i:UnCalamityModMusic/WorkshopTier1MusicBox] Workshop Themes"
|
||||
Tooltip:
|
||||
@@ -192,6 +197,11 @@ Mods: {
|
||||
Tooltip: Plays 'The Resurrection of a Cruel World' by Salvati
|
||||
}
|
||||
|
||||
JungleDayMusicBox: {
|
||||
DisplayName: Music Box (Jungle)
|
||||
Tooltip: Plays 'Nature's Reprieve' by Heart Plus Up!
|
||||
}
|
||||
|
||||
KingSlimeMusicBox: {
|
||||
DisplayName: Music Box (King Slime)
|
||||
Tooltip: Plays 'Gelatinous Monarch' by Heart Plus Up!
|
||||
@@ -241,9 +251,14 @@ Mods: {
|
||||
Tooltip: Plays 'downpour' by Heart Plus Up!
|
||||
}
|
||||
|
||||
SandstormMusicBox: {
|
||||
DisplayName: Music Box (Sandstorm)
|
||||
Tooltip: Plays 'terracotta' by TYESKI
|
||||
}
|
||||
|
||||
SkeletronMusicBox: {
|
||||
DisplayName: Music Box (Skeletron)
|
||||
Tooltip: Plays 'Wrath From the Crypt' by Heart Plus Up!
|
||||
Tooltip: Plays 'Wrath from the Crypt' by Heart Plus Up!
|
||||
}
|
||||
|
||||
SlimeRainMusicBox: {
|
||||
@@ -351,69 +366,74 @@ Mods: {
|
||||
MusicDisplay: {
|
||||
SongNames: {
|
||||
AbyssLayer3Alt: R'lyehian Depths
|
||||
Space: Starry Ascent
|
||||
Underworld: Descent Into Hell's Fury
|
||||
Meteorite: The Abomination's Omen
|
||||
WorkshopTier6: Master's Forge
|
||||
WorkshopTier5: False Gods and Ancient Elements
|
||||
WorkshopTier4: Fruits of Your Labor
|
||||
WorkshopTier3: Mythic Metals and Enchanted Fires
|
||||
WorkshopTier2: The Sky and the Depths
|
||||
WorkshopTier1: Metal, Wood, and Fire
|
||||
TownNight: Moonlit Haven
|
||||
TownNight_Noiseless: Moonlit Haven
|
||||
TownDay: Haven in the Sunlight
|
||||
Dungeon: Chambers of the Tyrant
|
||||
GlowingMushroomFields: Psychedelic Depths
|
||||
BloodMoon: Congealing Shadows
|
||||
BloodMoonDeath: Sanguine Eclipse
|
||||
BrainofCthulhu: Madness Incarnate
|
||||
Corruption: Writhing Shadows
|
||||
CorruptionUnderground: Between the Shadows
|
||||
Crimson: Clotted Lands
|
||||
CrimsonUnderground: Inside the Beast
|
||||
Geodes: Amidst the Minerals
|
||||
Tundra: Frozen Over
|
||||
TundraUnderground: Inside the Glaciers
|
||||
Caverns: Nearing the Inferno
|
||||
Underground: Under the Earth
|
||||
OceanNight: serene tides
|
||||
OceanDay: shoreline
|
||||
Desert: Scorched to Dust
|
||||
ForestNight: Laze of the Sky
|
||||
ForestDayEvening: A Legend's Strife (Grief)
|
||||
ForestDayAfternoon: A Legend's Strife (Lament)
|
||||
ForestDayMorning: A Legend's Strife (Epiphany)
|
||||
ForestDayDawn: A Legend's Strife (Acceptance)
|
||||
MoonLord: Virtuous Radiance
|
||||
WallofFlesh: Fated Insurrection
|
||||
Skeletron: Wrath From the Crypt
|
||||
BrainofCthulhu: Madness Incarnate
|
||||
Dungeon: Chambers of the Tyrant
|
||||
EaterofWorlds: Menace of the Chasms
|
||||
EyeofCthulhu: Bloodshot Barrage
|
||||
FalseEpilogue: The Memory of a Cruel World
|
||||
ForestDayAfternoon: A Legend's Strife (Lament)
|
||||
ForestDayDawn: A Legend's Strife (Acceptance)
|
||||
ForestDayEvening: A Legend's Strife (Grief)
|
||||
ForestDayMorning: A Legend's Strife (Epiphany)
|
||||
ForestNight: Laze of the Sky
|
||||
Geodes: Amidst the Minerals
|
||||
GlowingMushroomFields: Psychedelic Depths
|
||||
HardmodeInterlude: The Resurrection of a Cruel World
|
||||
JungleDay: Nature's Reprieve
|
||||
KingSlime: Gelatinous Monarch
|
||||
LanternFestival: Serenity
|
||||
Meteorite: The Abomination's Omen
|
||||
MoonLord: Virtuous Radiance
|
||||
OceanDay: shoreline
|
||||
OceanNight: serene tides
|
||||
OceanRain: waves
|
||||
Rain: downpour
|
||||
RainLegacy: Grey Sky
|
||||
RainNight: downtime
|
||||
Sandstorm: terracotta
|
||||
Skeletron: Wrath from the Crypt
|
||||
SlimeRain: Gelatin Showers
|
||||
Space: Starry Ascent
|
||||
TorchGod: Trial by Fire
|
||||
TorchGodRevengeance: Trial by Fire
|
||||
BloodMoon: Congealing Shadows
|
||||
BloodMoonDeath: Sanguine Eclipse
|
||||
SlimeRain: Gelatin Showers
|
||||
OceanRain: waves
|
||||
TownRain: Haven in Overcast
|
||||
Rain: downpour
|
||||
TownDay: Haven in the Sunlight
|
||||
TownNight: Moonlit Haven
|
||||
TownNight_Noiseless: Moonlit Haven
|
||||
TownParty: Celebration Haven
|
||||
LanternFestival: Serenity
|
||||
HardmodeInterlude: The Resurrection of a Cruel World
|
||||
FalseEpilogue: The Memory of a Cruel World
|
||||
RainLegacy: Grey Sky
|
||||
TownRain: Haven in Overcast
|
||||
Tundra: Frozen Over
|
||||
TundraUnderground: Inside the Glaciers
|
||||
Underworld: Descent Into Hell's Fury
|
||||
Underground: Under the Earth
|
||||
WallofFlesh: Fated Insurrection
|
||||
WorkshopTier1: Metal, Wood, and Fire
|
||||
WorkshopTier2: The Sky and the Depths
|
||||
WorkshopTier3: Mythic Metals and Enchanted Fires
|
||||
WorkshopTier4: Fruits of Your Labor
|
||||
WorkshopTier5: False Gods and Ancient Elements
|
||||
WorkshopTier6: Master's Forge
|
||||
}
|
||||
|
||||
Authors: {
|
||||
Forge: by TheForge129
|
||||
HeartPlusUp: by Heart Plus Up!
|
||||
HeartPlusUpFeature1: by Heart Plus Up! and novaGnomes
|
||||
HeartPlusUpFeature2: by Heart Plus Up! and SkippyZii
|
||||
HeartPlusUpFeature3: by Heart Plus Up! and Universe
|
||||
HeartPlusUpFeature3: by Heart Plus Up! and Tyrant
|
||||
psykomatic: by psykomatic
|
||||
Salvati: by Salvati
|
||||
SkippyZii: by SkippyZii
|
||||
Thriplerex: by Thriplerex
|
||||
Universe: by Universe
|
||||
psykomatic: by psykomatic
|
||||
TYESKI: by TYESKI
|
||||
Tyrant: by Tyrant
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace UnCalamityModMusic
|
||||
public override void Load()
|
||||
{
|
||||
MusicPathing.InitalizeMusicPaths(Instance);
|
||||
WorkshopDetection.InitializeDetectionRadius();
|
||||
|
||||
calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
calamityModMusic = ModLoader.TryGetMod("CalamityModMusic", out Mod cmusic);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
author = apotofkoolaid and Heart Plus Up!
|
||||
version = 2.0.0.001
|
||||
version = 2.0.1
|
||||
displayName = Vanilla Calamity Mod Music
|
||||
weakReferences = CalamityMod, InfernumMode
|
||||
homepage = https://discord.gg/2jaEwNJm9e
|
||||
|
||||
@@ -29,8 +29,10 @@ Full list of tracks:
|
||||
[*] Heart Plus Up! - Gelatinous Monarch
|
||||
[*] Heart Plus Up! - Serenity
|
||||
[*] Heart Plus Up! - Scorched to Dust
|
||||
[*] TYESKI - terracotta
|
||||
[*] Heart Plus Up! - Frozen Over
|
||||
[*] Heart Plus Up! - Inside the Glaciers
|
||||
[*] Heart Plus Up! - Nature's Reprieve
|
||||
[*] Thriplerex - Congealing Shadows
|
||||
[*] Thriplerex - Sanguine Eclipse
|
||||
[*] Heart Plus Up! ft. novaGnomes - Bloodshot Barrage
|
||||
@@ -49,7 +51,7 @@ Full list of tracks:
|
||||
[*] SkippyZii - Inside the Beast
|
||||
[*] SkippyZii ft. Heart Plus Up! - Madness Incarnate
|
||||
[*] Heart Plus Up! - The Abomination's Omen
|
||||
[*] Heart Plus Up! - Wrath From the Crypt
|
||||
[*] Heart Plus Up! - Wrath from the Crypt
|
||||
[*] Heart Plus Up! - Chambers of the Tyrant
|
||||
[*] Heart Plus Up! - Celebration Haven
|
||||
[*] Heart Plus Up! - Fated Insurrection
|
||||
|
||||