Upload
This commit is contained in:
commit
e30707df87
363 files changed
+8024
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# Set the default behavior, in case people don't have core.autocrlf set.
|
||||
* text=auto
|
||||
|
||||
# These files are text and will have their line endings managed, but will respect
|
||||
# the individual user's eol and autocrlf settings.
|
||||
#
|
||||
# These are currently commented out to override Visual Studio forcing CRLF line endings.
|
||||
#
|
||||
# *.cs text
|
||||
# *.txt text
|
||||
|
||||
# These files will always have their line endings forced to LF (Linux style).
|
||||
*.cs text eol=lf
|
||||
*.txt text eol=lf
|
||||
|
||||
# These files will always have their line endings forced to CRLF (Windows style).
|
||||
# (This is used for files internal to Visual Studio's operation.)
|
||||
*.csproj text eol=crlf
|
||||
*.csproj.user text eol=crlf
|
||||
*.sln text eol=crlf
|
||||
|
||||
# These files are NOT text and will not have their "line endings converted" (aka get corrupted by Git).
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpeg binary
|
||||
*.wav binary
|
||||
*.ogg binary
|
||||
+306
@@ -0,0 +1,306 @@
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
*.csproj
|
||||
*.sln
|
||||
Properties/
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Ll]og/
|
||||
|
||||
# Visual Studio 2015 cache/options directory
|
||||
.vs/
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUNIT
|
||||
*.VisualState.xml
|
||||
TestResult.xml
|
||||
|
||||
# Build Results of an ATL Project
|
||||
[Dd]ebugPS/
|
||||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
# DNX
|
||||
project.lock.json
|
||||
artifacts/
|
||||
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_i.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
|
||||
# Chutzpah Test files
|
||||
_Chutzpah*
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opendb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.cachefile
|
||||
*.VC.db
|
||||
*.VC.VC.opendb
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
*.sap
|
||||
|
||||
# TFS 2012 Local Workspace
|
||||
$tf/
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
*.DotSettings.user
|
||||
|
||||
# JustCode is a .NET coding add-in
|
||||
.JustCode
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# NCrunch
|
||||
_NCrunch_*
|
||||
.*crunch*.local.xml
|
||||
nCrunchTemp_*
|
||||
|
||||
# MightyMoose
|
||||
*.mm.*
|
||||
AutoTest.Net/
|
||||
|
||||
# Web workbench (sass)
|
||||
.sass-cache/
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress/
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish/
|
||||
|
||||
# Publish Web Output
|
||||
*.[Pp]ublish.xml
|
||||
*.azurePubxml
|
||||
# TODO: Comment the next line if you want to checkin your web deploy settings
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||
# in these scripts will be unencrypted
|
||||
PublishScripts/
|
||||
|
||||
# NuGet Packages
|
||||
*.nupkg
|
||||
# The packages folder can be ignored because of Package Restore
|
||||
**/packages/*
|
||||
# except build/, which is used as an MSBuild target.
|
||||
!**/packages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/packages/repositories.config
|
||||
# NuGet v3's project.json files produces more ignoreable files
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
# Microsoft Azure Build Output
|
||||
csx/
|
||||
*.build.csdef
|
||||
|
||||
# Microsoft Azure Emulator
|
||||
ecf/
|
||||
rcf/
|
||||
|
||||
# Windows Store app package directories and files
|
||||
AppPackages/
|
||||
BundleArtifacts/
|
||||
Package.StoreAssociation.xml
|
||||
_pkginfo.txt
|
||||
|
||||
# Visual Studio cache files
|
||||
# files ending in .cache can be ignored
|
||||
*.[Cc]ache
|
||||
# but keep track of directories ending in .cache
|
||||
!*.[Cc]ache/
|
||||
|
||||
# Others
|
||||
ClientBin/
|
||||
~$*
|
||||
*~
|
||||
*.dbmdl
|
||||
*.dbproj.schemaview
|
||||
*.pfx
|
||||
*.publishsettings
|
||||
node_modules/
|
||||
orleans.codegen.cs
|
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||
#bower_components/
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
||||
# Backup & report files from converting an old project file
|
||||
# to a newer Visual Studio version. Backup files are not needed,
|
||||
# because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
UpgradeLog*.htm
|
||||
|
||||
# SQL Server files
|
||||
*.mdf
|
||||
*.ldf
|
||||
|
||||
# Business Intelligence projects
|
||||
*.rdl.data
|
||||
*.bim.layout
|
||||
*.bim_*.settings
|
||||
|
||||
# Microsoft Fakes
|
||||
FakesAssemblies/
|
||||
|
||||
# GhostDoc plugin setting file
|
||||
*.GhostDoc.xml
|
||||
|
||||
# Node.js Tools for Visual Studio
|
||||
.ntvs_analysis.dat
|
||||
|
||||
# Visual Studio 6 build log
|
||||
*.plg
|
||||
|
||||
# Visual Studio 6 workspace options file
|
||||
*.opt
|
||||
|
||||
# Visual Studio LightSwitch build output
|
||||
**/*.HTMLClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/ModelManifest.xml
|
||||
**/*.Server/GeneratedArtifacts
|
||||
**/*.Server/ModelManifest.xml
|
||||
_Pvt_Extensions
|
||||
|
||||
# Paket dependency manager
|
||||
.paket/paket.exe
|
||||
paket-files/
|
||||
|
||||
# FAKE - F# Make
|
||||
.fake/
|
||||
|
||||
# JetBrains Rider
|
||||
.idea/
|
||||
*.sln.iml
|
||||
|
||||
# =========================
|
||||
# Operating System Files
|
||||
# =========================
|
||||
|
||||
# OSX
|
||||
# =========================
|
||||
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear in the root of a volume
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
# Windows
|
||||
# =========================
|
||||
|
||||
# Windows image file caches
|
||||
Thumbs.db
|
||||
ehthumbs.db
|
||||
|
||||
# Folder config file
|
||||
Desktop.ini
|
||||
|
||||
# Recycle Bin used on file shares
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Windows Installer files
|
||||
*.cab
|
||||
*.msi
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# Windows shortcuts
|
||||
*.lnk
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,67 @@
|
||||
using Terraria.ModLoader.Config;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace UnCalamityModMusic.Common.Configs
|
||||
{
|
||||
[BackgroundColor(49, 32, 36, 216)]
|
||||
public class MusicConfig : ModConfig
|
||||
{
|
||||
public override ConfigScope Mode => ConfigScope.ClientSide;
|
||||
|
||||
[Header("$Mods.UnCalamityModMusic.Configs.MusicConfig.MusicTogglesHeader")]
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
public bool WorkshopThemes { get; set; }
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
public bool HardmodeInterlude { get; set; }
|
||||
|
||||
[Header("$Mods.UnCalamityModMusic.Configs.MusicConfig.AlternateMusicHeader")]
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool DeepAbyssAlt { get; set; }
|
||||
|
||||
[ReloadRequired]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool CrimsonAlt { get; set; }
|
||||
|
||||
[ReloadRequired]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool RainAlt { get; set; }
|
||||
|
||||
[ReloadRequired]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool BloodMoonAlt { get; set; }
|
||||
|
||||
[ReloadRequired]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool KingSlimeAlt { get; set; }
|
||||
|
||||
[ReloadRequired]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool EyeofCthulhuAlt { get; set; }
|
||||
|
||||
[ReloadRequired]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool DestroyerAlt { get; set; }
|
||||
|
||||
[Header("$Mods.UnCalamityModMusic.Configs.MusicConfig.ConditionChangesHeader")]
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool PrioritizeInfernumMusic { get; set; }
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool OverrideAnahitasLure { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using Terraria.ModLoader.Config;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace UnCalamityModMusic.Common.Configs
|
||||
{
|
||||
[BackgroundColor(49, 32, 36, 216)]
|
||||
public class OtherConfig : ModConfig
|
||||
{
|
||||
public override ConfigScope Mode => ConfigScope.ClientSide;
|
||||
|
||||
[Header("$Mods.UnCalamityModMusic.Configs.OtherConfig.AmbienceTogglesHeader")]
|
||||
|
||||
[Range(0f, 100f)]
|
||||
[Increment(1f)]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[SliderColor(224, 165, 56, 128)]
|
||||
[DefaultValue(0f)]
|
||||
public float AmbienceFrequency { get; set; }
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool DisableBeeHiveAmbience { get; set; }
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
public bool DisableSpiderCaveAmbience { get; set; }
|
||||
|
||||
[Header("$Mods.UnCalamityModMusic.Configs.OtherConfig.OtherChangesHeader")]
|
||||
|
||||
[ReloadRequired]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
public bool MusicBoxResprite { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
{
|
||||
public class BossChecklistCompatibility : ModSystem
|
||||
{
|
||||
public override void PostSetupContent()
|
||||
{
|
||||
BossChecklistSetup();
|
||||
}
|
||||
|
||||
public void BossChecklistSetup()
|
||||
{
|
||||
var bossChecklist = ModLoader.TryGetMod("BossChecklist", out Mod checklist);
|
||||
|
||||
if (!bossChecklist)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var BossMusicBoxes = new Dictionary<string, object>
|
||||
{
|
||||
{ "Terraria MoonLord", ModContent.ItemType<Content.Items.MoonLordMusicBox>() },
|
||||
//{ "Terraria CultistBoss", ModContent.ItemType<Content.Items.LunaticCultistMusicBox>() },
|
||||
//{ "Terraria HallowBoss", ModContent.ItemType<Content.Items.EmpressofLightMusicBox>() },
|
||||
//{ "Terraria DukeFishron", ModContent.ItemType<Content.Items.DukeFishronMusicBox>() },
|
||||
//{ "Terraria Golem", ModContent.ItemType<Content.Items.GolemMusicBox>() },
|
||||
//{ "Terraria Plantera", ModContent.ItemType<Content.Items.PlanteraMusicBox>() },
|
||||
//{ "Terraria SkeletronPrime", ModContent.ItemType<Content.Items.SkeletronPrimeMusicBox>() },
|
||||
//{ "Terraria TheTwins", ModContent.ItemType<Content.Items.TwinsMusicBox>() },
|
||||
//{ "Terraria TheDestroyer", ModContent.ItemType<Content.Items.DestroyerMusicBox>() },
|
||||
//{ "Terraria QueenSlimeBoss", ModContent.ItemType<Content.Items.QueenSlimeMusicBox>() },
|
||||
{ "Terraria WallofFlesh", ModContent.ItemType<Content.Items.WallofFleshMusicBox>() },
|
||||
{ "Terraria Skeletron", ModContent.ItemType<Content.Items.SkeletronMusicBox>() },
|
||||
//{ "Terraria QueenBee", ModContent.ItemType<Content.Items.QueenBeeMusicBox>() },
|
||||
{ "Terraria BrainofCthulhu", ModContent.ItemType<Content.Items.BrainofCthulhuMusicBox>() },
|
||||
{ "Terraria EaterofWorlds", ModContent.ItemType<Content.Items.EaterofWorldsMusicBox>() },
|
||||
{ "Terraria EyeofCthulhu", ModContent.ItemType<Content.Items.EyeofCthulhuMusicBox>() },
|
||||
{ "Terraria KingSlime", ModContent.ItemType<Content.Items.KingSlimeMusicBox>() }
|
||||
};
|
||||
|
||||
var EventMusicBoxes = new Dictionary<string, object>
|
||||
{
|
||||
//{ "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>() },
|
||||
{ "Terraria BloodMoon", new List<int> { ModContent.ItemType<Content.Items.BloodMoonMusicBox>(), ModContent.ItemType<Content.Items.BloodMoonDeathMusicBox>() } },
|
||||
};
|
||||
|
||||
var MinibossMusicBoxes = new Dictionary<string, object>
|
||||
{
|
||||
//{ "CalamityMod GreatSandShark", ModContent.ItemType<Content.Items.SandstormMusicBox>() },
|
||||
};
|
||||
|
||||
|
||||
checklist.Call("SubmitEntryCollectibles", Mod, BossMusicBoxes);
|
||||
checklist.Call("SubmitEntryCollectibles", Mod, EventMusicBoxes);
|
||||
checklist.Call("SubmitEntryCollectibles", Mod, MinibossMusicBoxes);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using UnCalamityModMusic.Common.Configs;
|
||||
|
||||
namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
{
|
||||
public class InfernumCompatibility
|
||||
{
|
||||
//Infernum has picky code when deciding its music, being altered for if the mode is on for example
|
||||
public static int DecideOnMusicPath(string normalPath, string infernumPath)
|
||||
{
|
||||
var infernumMod = ModLoader.TryGetMod("InfernumMode", out Mod infernum);
|
||||
var infernumModMusic = ModLoader.TryGetMod("InfernumModeMusic", out Mod imusic);
|
||||
|
||||
bool normalPathExists = MusicLoader.MusicExists(UnCalamityModMusic.Instance, "Assets/Music/Bosses/" + normalPath) || MusicLoader.MusicExists(UnCalamityModMusic.Instance, "Assets/Music/Events/" + normalPath);
|
||||
bool infernumPathExists;
|
||||
|
||||
if (infernumModMusic)
|
||||
{
|
||||
infernumPathExists = MusicLoader.MusicExists(imusic, "Sounds/Music/" + infernumPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
infernumPathExists = false;
|
||||
}
|
||||
|
||||
if (infernumMod)
|
||||
{
|
||||
if (infernumModMusic && ModContent.GetInstance<MusicConfig>().PrioritizeInfernumMusic && infernumPathExists)
|
||||
{
|
||||
if (PlayerFlags.infernumMode && infernumPath.Contains("MoonLord"))
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return MusicLoader.GetMusicSlot(imusic, "Sounds/Music/" + infernumPath);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (normalPathExists)
|
||||
{
|
||||
return MusicPathing.GetMusicSlot(normalPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (infernumModMusic && ModContent.GetInstance<MusicConfig>().PrioritizeInfernumMusic && infernumPathExists)
|
||||
{
|
||||
return MusicLoader.GetMusicSlot(imusic, "Sounds/Music/" + infernumPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (normalPathExists)
|
||||
{
|
||||
return MusicPathing.GetMusicSlot(normalPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static SceneEffectPriority DecideOnScenePriority(SceneEffectPriority normalPriority)
|
||||
{
|
||||
var infernumModMusic = ModLoader.TryGetMod("InfernumModeMusic", out Mod imusic);
|
||||
|
||||
if (infernumModMusic && !PlayerFlags.bossRushActive)
|
||||
{
|
||||
return (SceneEffectPriority)12;
|
||||
}
|
||||
else
|
||||
{
|
||||
return normalPriority;
|
||||
}
|
||||
}
|
||||
}
|
||||
//Fixes a problem where Infernum forces vanilla Dungeon music to play when Ceaseless Void is passive in the Archives
|
||||
[JITWhenModsEnabled("CalamityMod")]
|
||||
public class CeaselessVoid_Passive : ModSceneEffect
|
||||
{
|
||||
public static int voidBoss => CalamityMod.NPCs.CalamityGlobalNPC.voidBoss;
|
||||
|
||||
public static int ghostBoss => CalamityMod.NPCs.CalamityGlobalNPC.ghostBoss;
|
||||
|
||||
public override int Music => MusicPathing.GetMusicSlot("Dungeon");
|
||||
|
||||
public override SceneEffectPriority Priority
|
||||
{
|
||||
get
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
var infernumMod = ModLoader.TryGetMod("InfernumMode", out Mod infernum);
|
||||
|
||||
if (calamityMod && infernumMod)
|
||||
{
|
||||
if (ghostBoss >= 0 && ghostBoss < Main.npc.Length)
|
||||
{
|
||||
NPC polterghast = Main.npc[ghostBoss];
|
||||
|
||||
if (polterghast != null)
|
||||
{
|
||||
return SceneEffectPriority.BossLow;
|
||||
}
|
||||
}
|
||||
if (PlayerFlags.bossRushActive)
|
||||
{
|
||||
return SceneEffectPriority.BossLow;
|
||||
}
|
||||
|
||||
return (SceneEffectPriority)9;
|
||||
}
|
||||
|
||||
return SceneEffectPriority.None;
|
||||
}
|
||||
}
|
||||
|
||||
public override float GetWeight(Player player) => 0.51f;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
var infernumMod = ModLoader.TryGetMod("InfernumMode", out Mod infernum);
|
||||
|
||||
if (calamityMod && infernumMod)
|
||||
{
|
||||
if (voidBoss >= 0 && voidBoss < Main.npc.Length)
|
||||
{
|
||||
NPC ceaselessVoid = Main.npc[voidBoss];
|
||||
|
||||
if (ceaselessVoid != null && ceaselessVoid.active)
|
||||
{
|
||||
return ceaselessVoid.ai[0] == 0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
//Makes the VCMM Desert theme play in the Lost Colosseum after Argus is defeated, instead of vanilla music
|
||||
[JITWhenModsEnabled("InfernumMode")]
|
||||
public class LostColosseum_Aftermath : ModSceneEffect
|
||||
{
|
||||
public static bool downedArgus => InfernumMode.Content.Subworlds.LostColosseum.HasBereftVassalBeenDefeated;
|
||||
|
||||
public override int Music => MusicPathing.GetMusicSlot("Desert");
|
||||
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override float GetWeight(Player player) => 0.97f;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
var infernumMod = ModLoader.TryGetMod("InfernumMode", out Mod infernum);
|
||||
|
||||
if (infernumMod)
|
||||
{
|
||||
if (downedArgus)
|
||||
{
|
||||
return PlayerFlags.ZoneLostColosseum;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace UnCalamityModMusic.Common.ModCompatibility
|
||||
{
|
||||
public class MusicDisplayCompatibility : ModSystem
|
||||
{
|
||||
public override void PostSetupContent()
|
||||
{
|
||||
MusicDisplaySetup();
|
||||
}
|
||||
|
||||
public void MusicDisplaySetup()
|
||||
{
|
||||
var musicDisplay = ModLoader.TryGetMod("MusicDisplay", out Mod display);
|
||||
|
||||
if (!musicDisplay)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void AddMusic(string songKey, string authorKey, string songType)
|
||||
{
|
||||
short slot = (short)MusicLoader.GetMusicSlot(Mod, $"Assets/Music/{songType}/{songKey}");
|
||||
display.Call("AddMusic", slot, Language.GetTextValue("Mods.UnCalamityModMusic.ModSupport.MusicDisplay.SongNames." + songKey), Language.GetTextValue("Mods.UnCalamityModMusic.ModSupport.MusicDisplay.Authors." + authorKey), Mod.DisplayName);
|
||||
}
|
||||
|
||||
AddMusic("AbyssLayer3Alt", "HeartPlusUp", "Alternates");
|
||||
AddMusic("DestroyerAlt", "CDMusic", "Alternates");
|
||||
AddMusic("EyeofCthulhuAlt", "CDMusic", "Alternates");
|
||||
AddMusic("KingSlimeAlt", "CDMusic", "Alternates");
|
||||
AddMusic("BloodMoonAlt", "CDMusic", "Alternates");
|
||||
AddMusic("CrimsonAlt", "CDMusic", "Alternates");
|
||||
AddMusic("RainAlt", "CDMusic", "Alternates");
|
||||
AddMusic("Space", "HeartPlusUp", "Biomes");
|
||||
AddMusic("Underworld", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("Aether", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("Graveyard", "HeartPlusUp", "Biomes");
|
||||
AddMusic("Meteorite", "HeartPlusUp", "Biomes");
|
||||
AddMusic("WorkshopTier6", "HeartPlusUp", "Biomes");
|
||||
AddMusic("WorkshopTier5", "HeartPlusUp", "Biomes");
|
||||
AddMusic("WorkshopTier4", "HeartPlusUp", "Biomes");
|
||||
AddMusic("WorkshopTier3", "HeartPlusUp", "Biomes");
|
||||
AddMusic("WorkshopTier2", "HeartPlusUp", "Biomes");
|
||||
AddMusic("WorkshopTier1", "HeartPlusUp", "Biomes");
|
||||
AddMusic("TownNight", "HeartPlusUp", "Biomes");
|
||||
AddMusic("TownNight_Noiseless", "HeartPlusUp", "Biomes");
|
||||
AddMusic("TownDay", "HeartPlusUp", "Biomes");
|
||||
//AddMusic("JungleTemple", "Universe", "Biomes");
|
||||
AddMusic("Dungeon", "HeartPlusUp", "Biomes");
|
||||
AddMusic("GlowingMushroomFields", "HeartPlusUp", "Biomes");
|
||||
AddMusic("Corruption", "HeartPlusUp", "Biomes");
|
||||
AddMusic("CorruptionUnderground", "HeartPlusUp", "Biomes");
|
||||
AddMusic("Crimson", "SkippyZii", "Biomes");
|
||||
AddMusic("CrimsonUnderground", "SkippyZii", "Biomes");
|
||||
AddMusic("Geodes", "HeartPlusUp", "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("Caverns", "HeartPlusUp", "Biomes");
|
||||
AddMusic("Underground", "HeartPlusUp", "Biomes");
|
||||
AddMusic("OceanNight", "HeartPlusUp", "Biomes");
|
||||
AddMusic("OceanDay", "HeartPlusUp", "Biomes");
|
||||
AddMusic("Desert", "HeartPlusUp", "Biomes");
|
||||
AddMusic("ForestNight", "HeartPlusUp", "Biomes");
|
||||
AddMusic("ForestDayEvening", "HeartPlusUp", "Biomes");
|
||||
AddMusic("ForestDayAfternoon", "HeartPlusUp", "Biomes");
|
||||
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("WallofFlesh", "HeartPlusUp", "Bosses");
|
||||
AddMusic("Skeletron", "HeartPlusUp", "Bosses");
|
||||
//AddMusic("QueenBee", "HeartPlusUp", "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("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("BloodMoonDeath", "Thriplerex", "Events");
|
||||
AddMusic("BloodMoon", "Thriplerex", "Events");
|
||||
AddMusic("SlimeRain", "HeartPlusUp", "Events");
|
||||
//AddMusic("Blizzard", "Universe", "Events");
|
||||
//AddMusic("Sandstorm", "Universe", "Events");
|
||||
//AddMusic("Thunderstorm", "Universe", "Events");
|
||||
AddMusic("Rain", "HeartPlusUp", "Events");
|
||||
//AddMusic("WindyDay", "HeartPlusUp", "Events");
|
||||
AddMusic("LanternFestival", "HeartPlusUp", "Events");
|
||||
AddMusic("HardmodeInterlude", "Salvati", "Misc");
|
||||
AddMusic("FalseEpilogue", "HeartPlusUp", "Misc");
|
||||
//AddMusic("DragonsLull", "HeartPlusUp", "Misc");
|
||||
AddMusic("RainLegacy", "HeartPlusUp", "Misc");
|
||||
//AddMusic("ImpendingDoom", "HeartPlusUp", "Misc");
|
||||
//AddMusic("CultistRitual", "HeartPlusUp", "Misc");
|
||||
//AddMusic("ImminentDestruction", "HeartPlusUp", "Misc");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loaded 100 of 363 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user