Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0888d0592 | ||
|
|
4f6e79b633 | ||
|
|
d88a8de684 | ||
|
|
dd7bca0267 | ||
|
|
b265d7aa8b | ||
|
|
91a85bcc1f | ||
|
|
5a5f12447e | ||
|
|
8d279d7351 | ||
|
|
82f06b4fd7 | ||
|
|
27d69a1ec8 | ||
|
|
aacaeace02 | ||
|
|
6c602f525a | ||
|
|
87c4d79f31 | ||
|
|
9876fad1d5 | ||
|
|
20219ebc1e | ||
|
|
7915a086cc | ||
|
|
aa535be6c3 | ||
|
|
9a7be7267e | ||
|
|
c3e4017843 | ||
|
|
dc6ac243f5 | ||
|
|
efae6c817e | ||
|
|
2da51919af | ||
|
|
6bbe00ecf8 | ||
|
|
6c0fd626bb | ||
|
|
b0b605d251 | ||
|
|
1efe99f686 | ||
|
|
4b718b6431 | ||
|
|
1eed1d6f9a | ||
|
|
e0121c48ef | ||
|
|
0ab8d66010 | ||
|
|
38c64a03ee | ||
|
|
4af2836c92 | ||
|
|
d4085faa67 | ||
|
|
723c6bd7e7 | ||
|
|
118eb615e8 | ||
|
|
c2f0d05809 | ||
|
|
99062106ae | ||
|
|
2f599ec483 | ||
|
|
e262d484c6 | ||
|
|
ef7983e3ae | ||
|
|
c93b9b79cf | ||
|
|
4ebddf70c2 | ||
|
|
daef3cda14 | ||
|
|
9119a3c9ad | ||
|
|
7f079fbb16 | ||
|
|
5593fc01e2 | ||
|
|
6f034778b1 | ||
|
|
33f8ff5d7a | ||
|
|
a6f1ac7d66 | ||
|
|
09234e386a | ||
|
|
405e4f670d | ||
|
|
08e1c99d6d | ||
|
|
abf90772d0 | ||
|
|
6b2f4f22f7 | ||
|
|
27dcf27033 | ||
|
|
270e6719b5 | ||
|
|
505fdff6b1 | ||
|
|
c3791bf980 | ||
|
|
a8e4141784 | ||
|
|
cc6ff123d6 | ||
|
|
e218a655b1 | ||
|
|
d52ac06030 | ||
|
|
772f08e685 | ||
|
|
99e9b2c3ee | ||
|
|
c1ccb95a30 | ||
|
|
cbc8f1b0d6 | ||
|
|
6a9e421781 | ||
|
|
ebf6e66c95 | ||
|
|
cbc7a7fc8d | ||
|
|
31f94970fe | ||
|
|
ad525184de | ||
|
|
d5701000a2 | ||
|
|
5dac14e459 | ||
|
|
0e8966c534 | ||
|
|
4683a3c622 | ||
|
|
ae89c8b9a8 | ||
|
|
39a57e2a26 | ||
|
|
62beecb5f7 | ||
|
|
64d9ba96e8 | ||
|
|
31b3a5b98b | ||
|
|
0a08751b4c | ||
|
|
1a66f48aae | ||
|
|
b5afb64509 | ||
|
|
7fc985f54b | ||
|
|
28cc802b89 | ||
|
|
fd1d14fe52 | ||
|
|
f32566c5ce | ||
|
|
f391aeffa3 | ||
|
|
ef701af77f | ||
|
|
a9b251e99b | ||
|
|
fcb601e6b3 | ||
|
|
b4de9b033b | ||
|
|
424b6c69a5 | ||
|
|
9fb187d588 | ||
|
|
c2bb8e9a49 | ||
|
|
b44cbb6b64 | ||
|
|
23366c1f16 | ||
|
|
4cfb252ff3 | ||
|
|
a36f00f462 | ||
|
|
76015e59ef | ||
|
|
7dcd0b54c2 | ||
|
|
c45e58e131 | ||
|
|
cec92d8867 | ||
|
|
237eace547 | ||
|
|
3f25a994c4 | ||
|
|
a2717d2830 | ||
|
|
949ff07fa9 | ||
|
|
9940814141 | ||
|
|
7eea3750cb | ||
|
|
e9e94b8cf0 | ||
|
|
812cee2fc3 | ||
|
|
8ad1ce3156 | ||
|
|
7f20d0adec | ||
|
|
05b19a18d1 | ||
|
|
c8dda58897 | ||
|
|
d809c29281 | ||
|
|
3eff69f5b8 | ||
|
|
8a164e34be | ||
|
|
7e9e6bd550 | ||
|
|
f47518def2 | ||
|
|
068d924797 | ||
|
|
736a3d38be | ||
|
|
417402807b | ||
|
|
a2369549d2 | ||
|
|
a3cc71420d | ||
|
|
c924caa05c | ||
|
|
b71393960e | ||
|
|
7aab6ba302 | ||
|
|
10cb4d0791 | ||
|
|
542f29017a | ||
|
|
3e2814e81a | ||
|
|
f1c581ce2b | ||
|
|
8d211474eb | ||
|
|
f857d3edf8 | ||
|
|
84d2ee1e73 | ||
|
|
7cb98d62fe | ||
|
|
8e5eba204b | ||
|
|
64228b2aaf | ||
|
|
63f5cdc5ce | ||
|
|
2f6034628c | ||
|
|
f8eb8f70f7 | ||
|
|
2751237bb2 | ||
|
|
420d2c2528 | ||
|
|
88cc647d95 | ||
|
|
f8800e5f94 | ||
|
|
59aee82e1c | ||
|
|
f6544ffa21 | ||
|
|
228dd3b8ab | ||
|
|
6274e148ba | ||
|
|
9efd4fad66 | ||
|
|
0d6db0ba75 | ||
|
|
c50acd595f | ||
|
|
a35456ed69 | ||
|
|
61fff17074 | ||
|
|
ed39733cde | ||
|
|
9fb2a13b22 | ||
|
|
875779d80d | ||
|
|
12c6d2b9e3 | ||
|
|
15ffcf24b6 | ||
|
|
cfff5d1e5e | ||
|
|
b8e7288484 | ||
|
|
ff940a4c35 | ||
|
|
4975a7d0e8 | ||
|
|
196e8fd531 | ||
|
|
29315206ca | ||
|
|
0ded758901 | ||
|
|
0ee7d79185 | ||
|
|
d3af06e4e5 | ||
|
|
b184e0d669 | ||
|
|
49e36b1088 | ||
|
|
c290efe38b | ||
|
|
928057b22f | ||
|
|
c562f4e616 | ||
|
|
aa7ad0ceb1 | ||
|
|
6ed6225770 | ||
|
|
5860c30260 | ||
|
|
cb9b0673f2 | ||
|
|
97446cb4bf | ||
|
|
7c6c30d3f1 | ||
|
|
0f213a95af | ||
|
|
0daf5efe3b | ||
|
|
5e8058f0af | ||
|
|
a59296d2ee | ||
|
|
6c94e902f8 | ||
|
|
1e0203f228 | ||
|
|
db29ee0aeb | ||
|
|
3dff459f38 | ||
|
|
85277b04a1 | ||
|
|
8d65dcb8c8 | ||
|
|
139a1ee531 | ||
|
|
52b4167220 | ||
|
|
9973594165 | ||
|
|
90c22585d8 | ||
|
|
dcbca221a7 | ||
|
|
9c826ff342 | ||
|
|
ed1f5da36c | ||
|
|
237ba3b86f | ||
|
|
3fc66e0de4 | ||
|
|
10ea3e39fb | ||
|
|
0d0850fd06 | ||
|
|
a3b525abdc | ||
|
|
c57afa88ed | ||
|
|
b2cf660d2b | ||
|
|
36d83bbb93 | ||
|
|
8f066d407b | ||
|
|
ba0ff70f42 | ||
|
|
1a1f353e9d | ||
|
|
c72ee8b153 | ||
|
|
0b7595e3ec | ||
|
|
f6103d8fe9 | ||
|
|
27b475f8c1 | ||
|
|
f6b16c1346 | ||
|
|
aa00eee86d | ||
|
|
f922879b1b | ||
|
|
a73aa77e5f | ||
|
|
47fb6f7cf7 | ||
|
|
73ce54f362 | ||
|
|
bb9148d22e | ||
|
|
02344e4949 | ||
|
|
9d7c988aaa | ||
|
|
f276976403 | ||
|
|
597a70b7fd | ||
|
|
f0866d3d8b | ||
|
|
e571091038 | ||
|
|
21951faabd | ||
|
|
d3a31a17d5 | ||
|
|
df1bd2b26c | ||
|
|
b52ceaf6ae | ||
|
|
d70a790ddf | ||
|
|
0a9eadece5 | ||
|
|
25e5c19bd0 | ||
|
|
050581bebf | ||
|
|
3234b5003e | ||
|
|
7f1dc87f40 | ||
|
|
737a01119f | ||
|
|
dcdddac4c1 | ||
|
|
6cae44ca53 | ||
|
|
2ca942429d | ||
|
|
7beae7f23e | ||
|
|
6303444ed0 | ||
|
|
e8f401a0e4 | ||
|
|
92226bf23d | ||
|
|
a0d49b57d6 | ||
|
|
9775130bee | ||
|
|
ef7b2989e0 | ||
|
|
d36d15da40 | ||
|
|
ec1ec6b3bf | ||
|
|
2f2636a78e | ||
|
|
992900a792 | ||
|
|
df7a20018d | ||
|
|
40c11211e3 | ||
|
|
bc7c5874df | ||
|
|
ab8c46aeeb | ||
|
|
53c5d5bc3a | ||
|
|
77626303de | ||
|
|
93b86147d8 | ||
|
|
d97a93f6f0 | ||
|
|
8151b6396b | ||
|
|
f39b05a499 | ||
|
|
f4f2932321 | ||
|
|
cdbb2613ca | ||
|
|
5426036c1a | ||
|
|
5bbb0aa9f5 |
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
|
||||
@@ -0,0 +1 @@
|
||||
patreon: CalamityMod
|
||||
@@ -0,0 +1,304 @@
|
||||
# Ignore Visual Studio solution files.
|
||||
# Calamity uses a project file but not a solution file.
|
||||
*.sln
|
||||
|
||||
# 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
|
||||
@@ -0,0 +1,35 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityModMusic.Items.Placeables;
|
||||
|
||||
namespace CalamityModMusic
|
||||
{
|
||||
public class AcceptanceTrackSwitchSystem : ModSystem
|
||||
{
|
||||
public override void PostSetupContent()
|
||||
{
|
||||
// This makes it so that the SCal "Acceptance" event records a regular acceptance music box, despite them
|
||||
// technically being 2 separate tracks
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// `musicToItem` is a Dictionary of music slots to item types that is used to
|
||||
// convert music boxes while music is playing
|
||||
//
|
||||
// It is marked as internal, so we need to use reflection to modify it directly, but
|
||||
// by doing so we can make it so that 2 different tracks point to the same music box
|
||||
FieldInfo info = typeof(MusicLoader).GetField("musicToItem", BindingFlags.NonPublic | BindingFlags.Static);
|
||||
var musicToItem = (Dictionary<int, int>)info.GetValue(null);
|
||||
|
||||
int musicSlot = MusicLoader.GetMusicSlot(CalamityModMusic.Instance, "Sounds/Music/CalamitasDefeat_LongFade");
|
||||
int itemType = ModContent.ItemType<CalamitasDefeatMusicBox>();
|
||||
|
||||
// The FieldInfo returns the same Dictionary instance as the one in the music loader,
|
||||
// so the field does not need to have its value re-set so long as the Dictionary is modified
|
||||
musicToItem[musicSlot] = itemType;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic
|
||||
{
|
||||
public class CalamityModMusic : Mod
|
||||
{
|
||||
public static CalamityModMusic Instance;
|
||||
|
||||
public const string CalamityWikiURL = "https://calamitymod.wiki.gg/wiki/{}";
|
||||
|
||||
internal Mod wikithis = null;
|
||||
internal Mod calamity = null;
|
||||
internal Mod bossChecklist = null;
|
||||
internal Mod musicDisplay = null;
|
||||
|
||||
public CalamityModMusic() => Instance = this;
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
wikithis = null;
|
||||
calamity = null;
|
||||
bossChecklist = null;
|
||||
musicDisplay = null;
|
||||
ModLoader.TryGetMod("Wikithis", out wikithis);
|
||||
ModLoader.TryGetMod("CalamityMod", out calamity);
|
||||
ModLoader.TryGetMod("BossChecklist", out bossChecklist);
|
||||
ModLoader.TryGetMod("MusicDisplay", out musicDisplay);
|
||||
|
||||
if (!Main.dedServ)
|
||||
wikithis?.Call("AddModURL", this, CalamityWikiURL);
|
||||
wikithis?.Call("AddWikiTexture", this, ModContent.Request<Texture2D>("CalamityModMusic/WikiThisIcon"));
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
wikithis = null;
|
||||
calamity = null;
|
||||
bossChecklist = null;
|
||||
Instance = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Import Project="..\tModLoader.targets" />
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,136 @@
|
||||
using CalamityModMusic.Items.Placeables;
|
||||
using System.Collections.Generic;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic
|
||||
{
|
||||
public class ExternalModSupport : ModSystem
|
||||
{
|
||||
public override void PostSetupContent()
|
||||
{
|
||||
BossChecklistSetup();
|
||||
MusicDisplaySetup();
|
||||
}
|
||||
|
||||
private void BossChecklistSetup()
|
||||
{
|
||||
Mod calamity = CalamityModMusic.Instance.calamity;
|
||||
Mod bossChecklist = CalamityModMusic.Instance.bossChecklist;
|
||||
|
||||
if (calamity != null && bossChecklist != null)
|
||||
{
|
||||
bossChecklist.Call("SubmitEntryCollectibles", CalamityModMusic.Instance, new Dictionary<string, object>()
|
||||
{
|
||||
{ "CalamityMod DesertScourge", ModContent.ItemType<DesertScourgeMusicBox>() },
|
||||
{ "CalamityMod GiantClam", ModContent.ItemType<SunkenSeaMusicBox>() },
|
||||
{ "CalamityMod Crabulon", ModContent.ItemType<CrabulonMusicBox>() },
|
||||
{ "CalamityMod HiveMind", ModContent.ItemType<HiveMindMusicBox>() },
|
||||
{ "CalamityMod Perforators", ModContent.ItemType<PerforatorsMusicBox>() },
|
||||
{ "CalamityMod SlimeGod", ModContent.ItemType<SlimeGodMusicBox>() },
|
||||
{ "CalamityMod Cryogen", ModContent.ItemType<CryogenMusicBox>() },
|
||||
{ "CalamityMod AquaticScourge", ModContent.ItemType<AquaticScourgeMusicBox>() },
|
||||
{ "CalamityMod BrimstoneElemental", ModContent.ItemType<BrimstoneElementalMusicBox>() },
|
||||
{ "CalamityMod CalamitasClone", ModContent.ItemType<CalamitasCloneMusicBox>() },
|
||||
{ "CalamityMod Leviathan", new List<int>() { ModContent.ItemType<LeviathanMusicBox>(), ModContent.ItemType<AnahitaMusicBox>() } },
|
||||
{ "CalamityMod AstrumAureus", ModContent.ItemType<AstrumAureusMusicBox>() },
|
||||
{ "CalamityMod PlaguebringerGoliath", ModContent.ItemType<PlaguebringerGoliathMusicBox>() },
|
||||
{ "CalamityMod Ravager", ModContent.ItemType<RavagerMusicBox>() },
|
||||
{ "CalamityMod AstrumDeus", ModContent.ItemType<AstrumDeusMusicBox>() },
|
||||
{ "CalamityMod ProfanedGuardians", ModContent.ItemType<ProfanedGuardiansMusicBox>() },
|
||||
{ "CalamityMod Dragonfolly", ModContent.ItemType<DragonfollyMusicBox>() },
|
||||
{ "CalamityMod Providence", ModContent.ItemType<ProvidenceMusicBox>() },
|
||||
{ "CalamityMod CeaselessVoid", ModContent.ItemType<CeaselessVoidMusicBox>() },
|
||||
{ "CalamityMod StormWeaver", ModContent.ItemType<StormWeaverMusicBox>() },
|
||||
{ "CalamityMod Signus", ModContent.ItemType<SignusMusicBox>() },
|
||||
{ "CalamityMod Polterghast", ModContent.ItemType<PolterghastMusicBox>() },
|
||||
{ "CalamityMod OldDuke", ModContent.ItemType<OldDukeMusicBox>() },
|
||||
{ "CalamityMod DevourerofGods", new List<int>() { ModContent.ItemType<DevourerofGodsPhase1MusicBox>(), ModContent.ItemType<DevourerofGodsPhase2MusicBox>() } },
|
||||
{ "CalamityMod Yharon", new List<int>() { ModContent.ItemType<YharonPhase1MusicBox>(), ModContent.ItemType<YharonPhase2MusicBox>() } },
|
||||
{ "CalamityMod ExoMechs", new List<int>() { ModContent.ItemType<ExoMechsMusicBox>() } },
|
||||
{ "CalamityMod Calamitas", new List<int>() { ModContent.ItemType<CalamitasPhase1MusicBox>(), ModContent.ItemType<CalamitasPhase2MusicBox>(), ModContent.ItemType<CalamitasPhase3MusicBox>(), ModContent.ItemType<CalamitasDefeatMusicBox>() } },
|
||||
{ "CalamityMod AcidRainT1", ModContent.ItemType<AcidRainTier1MusicBox>() },
|
||||
{ "CalamityMod AcidRainT2", ModContent.ItemType<AcidRainTier1MusicBox>() }, //ModContent.ItemType<AcidRainTier2MusicBox>()
|
||||
{ "CalamityMod AcidRainT3", ModContent.ItemType<AcidRainTier3MusicBox>() },
|
||||
{ "CalamityMod BossRush", new List<int>() { ModContent.ItemType<BossRushTier1MusicBox>(), ModContent.ItemType<BossRushTier2MusicBox>(), ModContent.ItemType<BossRushTier3MusicBox>(), ModContent.ItemType<BossRushTier4MusicBox>()/*, ModContent.ItemType<BossRushTier5MusicBox>() */} }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void MusicDisplaySetup()
|
||||
{
|
||||
Mod musicDisplay = CalamityModMusic.Instance.musicDisplay;
|
||||
if (musicDisplay is null)
|
||||
return;
|
||||
|
||||
void AddMusic(string songKey, string authorKey)
|
||||
{
|
||||
short slot = (short)MusicLoader.GetMusicSlot(Mod, $"Sounds/Music/{songKey}");
|
||||
musicDisplay.Call("AddMusic", slot, Language.GetTextValue("Mods.CalamityModMusic.ModSupport.MusicDisplay.SongNames." + songKey), Language.GetTextValue("Mods.CalamityModMusic.ModSupport.MusicDisplay.Authors." + authorKey), Mod.DisplayName);
|
||||
}
|
||||
|
||||
AddMusic("AbyssLayer1", "HeartPlusUp");
|
||||
AddMusic("AbyssLayer2", "DMDOKURO");
|
||||
AddMusic("AbyssLayer3", "CDMusic");
|
||||
AddMusic("AbyssLayer3Alt", "HeartPlusUp");
|
||||
AddMusic("AbyssLayer4", "DMDOKURO");
|
||||
AddMusic("AbyssLegacy", "RoverdriveX");
|
||||
AddMusic("AcidRainTier1", "RoverdriveX");
|
||||
AddMusic("AcidRainTier3", "PinpinNeon");
|
||||
AddMusic("Anahita", "DMDOKURO");
|
||||
AddMusic("AnahitasLure", "DMDOKURO");
|
||||
AddMusic("AquaticScourge", "DMDOKURO");
|
||||
AddMusic("AstralInfection", "DMDOKURO");
|
||||
AddMusic("AstralInfectionUnderground", "DMDOKURO");
|
||||
AddMusic("AstrumAureus", "DMDOKURO");
|
||||
AddMusic("AstrumDeus", "DMDOKURO");
|
||||
AddMusic("BioLab", "HeartPlusUp");
|
||||
AddMusic("BossRushTier1", "CDMusic");
|
||||
AddMusic("BossRushTier2", "CDMusic");
|
||||
AddMusic("BossRushTier3", "CDMusic");
|
||||
AddMusic("BossRushTier4", "CDMusic");
|
||||
AddMusic("BrainstormTrailer", "MoonburnFeature");
|
||||
AddMusic("BrimstoneCrags", "DMDOKURO");
|
||||
AddMusic("BrimstoneElemental", "DMDOKURO");
|
||||
AddMusic("CalamitasClone", "DMDOKURO");
|
||||
AddMusic("CalamitasDefeat", "DMDOKURO");
|
||||
AddMusic("CalamitasDefeat_LongFade", "DMDOKURO");
|
||||
AddMusic("CalamitasPhase1", "DMDOKURO");
|
||||
AddMusic("CalamitasPhase2", "DMDOKURO");
|
||||
AddMusic("CalamitasPhase3", "DMDOKURO");
|
||||
AddMusic("CalamityTitle", "DMDOKURO");
|
||||
AddMusic("CeaselessVoid", "DMDOKURO");
|
||||
AddMusic("Crabulon", "DMDOKURO");
|
||||
AddMusic("Cryogen", "DMDOKURO");
|
||||
AddMusic("DesertScourge", "DMDOKURO");
|
||||
AddMusic("DevourerofGodsEulogy", "DMDOKURO");
|
||||
AddMusic("DevourerofGodsPhase1", "DMDOKURO");
|
||||
AddMusic("DevourerofGodsPhase2", "DMDOKURO");
|
||||
AddMusic("Dragonfolly", "DMDOKURO");
|
||||
AddMusic("ExoMechs", "PinpinNeon");
|
||||
AddMusic("HiveMind", "DMDOKUROFeature");
|
||||
AddMusic("Interlude1", "DMDOKURO");
|
||||
AddMusic("Interlude2", "DMDOKURO");
|
||||
AddMusic("Interlude3", "DMDOKURO");
|
||||
AddMusic("Leviathan", "DMDOKURO");
|
||||
AddMusic("OldDuke", "DMDOKURO");
|
||||
AddMusic("Perforators", "DMDOKUROFeature");
|
||||
AddMusic("PlaguebringerGoliath", "DMDOKURO");
|
||||
AddMusic("Polterghast", "DMDOKURO");
|
||||
AddMusic("PrimordialWyrm", "DMDOKURO");
|
||||
AddMusic("ProfanedGuardians", "DMDOKURO");
|
||||
AddMusic("Providence", "DMDOKURO");
|
||||
AddMusic("Ravager", "DMDOKURO");
|
||||
AddMusic("Signus", "DMDOKURO");
|
||||
AddMusic("SlimeGod", "DMDOKUROFeature");
|
||||
AddMusic("StormWeaver", "DMDOKURO");
|
||||
AddMusic("SulphurousSeaDay", "DMDOKURO");
|
||||
AddMusic("SulphurousSeaNight", "HeartPlusUp");
|
||||
AddMusic("SulphurousSeaRain", "HeartPlusUp");
|
||||
AddMusic("SunkenSea", "DMDOKURO");
|
||||
AddMusic("YharonLegacy", "DMDOKURO");
|
||||
AddMusic("YharonPhase1", "DMDOKURO");
|
||||
AddMusic("YharonPhase2", "DMDOKURO");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class AbyssLayer1MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AbyssLayer1MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AbyssLayer1";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 690 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("HigherAbyssMusicbox")]
|
||||
public class AbyssLayer2MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AbyssLayer2MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AbyssLayer2";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 354 B |
@@ -0,0 +1,10 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class AbyssLayer3AltMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AbyssLayer3AltMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AbyssLayer3Alt";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 349 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("AbyssLowerMusicbox")]
|
||||
public class AbyssLayer3MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AbyssLayer3MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AbyssLayer3";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 542 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("VoidMusicbox")]
|
||||
public class AbyssLayer4MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AbyssLayer4MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AbyssLayer4";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 333 B |
@@ -0,0 +1,23 @@
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class AbyssLegacyMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AbyssLegacyMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AbyssLegacy";
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
// Does not play in-game
|
||||
CreateRecipe().
|
||||
AddIngredient(ModContent.ItemType<AbyssLayer1MusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<AbyssLayer2MusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<AbyssLayer3MusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<AbyssLayer4MusicBox>()).
|
||||
AddTile(TileID.TinkerersWorkbench).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 535 B |
@@ -0,0 +1,28 @@
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("AcidRain1Musicbox")]
|
||||
public class AcidRainTier1MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AcidRainTier1MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AcidRainTier1";
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
// Contingent recipes in case players skipped to Tier 3 Acid Rain
|
||||
// When T2 exists, the recipe would be split into [T3 + AS = T2] and [T2 + SulphSea = T1]
|
||||
CreateRecipe().
|
||||
AddIngredient(ModContent.ItemType<AcidRainTier3MusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<SulphurousSeaDayMusicBox>()).
|
||||
AddTile(TileID.TinkerersWorkbench).
|
||||
Register();
|
||||
CreateRecipe().
|
||||
AddIngredient(ModContent.ItemType<AcidRainTier3MusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<SulphurousSeaNightMusicBox>()).
|
||||
AddTile(TileID.TinkerersWorkbench).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 584 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("AcidRain2Musicbox")]
|
||||
public class AcidRainTier3MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AcidRainTier3MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AcidRainTier3";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 450 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("SirenMusicbox")]
|
||||
public class AnahitaMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AnahitaMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/Anahita";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 812 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("SirenIdleMusicbox")]
|
||||
public class AnahitasLureMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AnahitasLureMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AnahitasLure";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 625 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("AquaticScourgeMusicbox")]
|
||||
public class AquaticScourgeMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AquaticScourgeMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AquaticScourge";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 494 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("AstralMusicbox")]
|
||||
public class AstralInfectionMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AstralInfectionMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AstralInfection";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 437 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("AstralUndergroundMusicbox")]
|
||||
public class AstralInfectionUndergroundMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AstralInfectionUndergroundMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AstralInfectionUnderground";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 632 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("AstrageldonMusicbox")]
|
||||
public class AstrumAureusMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AstrumAureusMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AstrumAureus";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 837 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("AstrumDeusMusicbox")]
|
||||
public class AstrumDeusMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.AstrumDeusMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/AstrumDeus";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 690 B |
@@ -0,0 +1,10 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class BioLabMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BioLabMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/BioLab";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 431 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("BossRushTier1MusicboxItem")]
|
||||
public class BossRushTier1MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BossRushTier1MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/BossRushTier1";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 312 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("BossRushTier2MusicboxItem")]
|
||||
public class BossRushTier2MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BossRushTier2MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/BossRushTier2";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 348 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("BossRushTier3MusicboxItem")]
|
||||
public class BossRushTier3MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BossRushTier3MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/BossRushTier3";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 358 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("BossRushTier4MusicboxItem")]
|
||||
public class BossRushTier4MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BossRushTier4MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/BossRushTier4";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 346 B |
@@ -0,0 +1,12 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("BossRushTier5MusicboxItem")]
|
||||
public class BossRushTier5MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BossRushTier5MusicBox>();
|
||||
public override string MusicFilePath => string.Empty;
|
||||
public override bool Obtainable => false;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 351 B |
@@ -0,0 +1,35 @@
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class BrainstormTrailerMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BrainstormTrailerMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/BrainstormTrailer";
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
var VCMM = ModLoader.TryGetMod("UnCalamityModMusic", out Mod vcmm);
|
||||
|
||||
// Does not play in-game
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.MusicBoxBoss3).
|
||||
AddIngredient(ModContent.ItemType<DevourerofGodsPhase1MusicBox>()).
|
||||
AddIngredient(ItemID.MusicBoxStorm).
|
||||
AddTile(TileID.TinkerersWorkbench).
|
||||
Register();
|
||||
|
||||
// Alternate recipe for VCMM boxes in addition to the one above
|
||||
if (VCMM)
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(vcmm, "BrainofCthulhuMusicBox").
|
||||
AddIngredient(ModContent.ItemType<DevourerofGodsPhase1MusicBox>()).
|
||||
AddIngredient(vcmm, "RainDayMusicBox"). // Temporary; should be VCMM's Thunderstorm box when added. Vanilla storm music will not play with VCMM, so a Rain box must be used for now.
|
||||
AddTile(TileID.TinkerersWorkbench).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 551 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("CragMusicbox")]
|
||||
public class BrimstoneCragsMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BrimstoneCragsMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/BrimstoneCrags";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 523 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("BrimmyMusicbox")]
|
||||
public class BrimstoneElementalMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.BrimstoneElementalMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/BrimstoneElemental";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 524 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("CalamitasMusicbox")]
|
||||
public class CalamitasCloneMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CalamitasCloneMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/CalamitasClone";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 395 B |
@@ -0,0 +1,23 @@
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("SCalAMusicbox")]
|
||||
public class CalamitasDefeatMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CalamitasDefeatMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/CalamitasDefeat";
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
// Does not play long enough in-game to realistically make this obtainable normally
|
||||
CreateRecipe().
|
||||
AddIngredient(ModContent.ItemType<CalamitasPhase1MusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<CalamitasPhase2MusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<CalamitasPhase3MusicBox>()).
|
||||
AddTile(TileID.TinkerersWorkbench).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 902 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("SCalGMusicbox")]
|
||||
public class CalamitasPhase1MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CalamitasPhase1MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/CalamitasPhase1";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 910 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("SCalLMusicbox")]
|
||||
public class CalamitasPhase2MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CalamitasPhase2MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/CalamitasPhase2";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 906 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("SCalEMusicbox")]
|
||||
public class CalamitasPhase3MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CalamitasPhase3MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/CalamitasPhase3";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 835 B |
@@ -0,0 +1,34 @@
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("CalamityMusicbox")]
|
||||
public class CalamityTitleMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CalamityTitleMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/CalamityTitle";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
base.SetDefaults();
|
||||
Item.value = 10000;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
// Contingent recipe in case it was discarded from the Starter Bag
|
||||
// All of Dokuro's biome tracks -- based on a 2018 concept
|
||||
CreateRecipe().
|
||||
AddIngredient(ModContent.ItemType<AbyssLayer2MusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<AbyssLayer4MusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<AstralInfectionMusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<AstralInfectionUndergroundMusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<BrimstoneCragsMusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<SulphurousSeaDayMusicBox>()).
|
||||
AddIngredient(ModContent.ItemType<SunkenSeaMusicBox>()).
|
||||
AddTile(TileID.TinkerersWorkbench).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 511 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("CeaselessVoidMusicbox")]
|
||||
public class CeaselessVoidMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CeaselessVoidMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/CeaselessVoid";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 668 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("CrabulonMusicbox")]
|
||||
public class CrabulonMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CrabulonMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/Crabulon";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 313 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("CryogenMusicbox")]
|
||||
public class CryogenMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.CryogenMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/Cryogen";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 646 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("DesertScourgeMusicbox")]
|
||||
public class DesertScourgeMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.DesertScourgeMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/DesertScourge";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 834 B |
@@ -0,0 +1,10 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class DevourerofGodsEulogyMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.DevourerofGodsEulogyMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/DevourerofGodsEulogy";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 764 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("DoGMusicbox")]
|
||||
public class DevourerofGodsPhase1MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.DevourerofGodsPhase1MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/DevourerofGodsPhase1";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 736 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("DoGP2Musicbox")]
|
||||
public class DevourerofGodsPhase2MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.DevourerofGodsPhase2MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/DevourerofGodsPhase2";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 843 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("BumblebirbMusicbox")]
|
||||
public class DragonfollyMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.DragonfollyMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/Dragonfolly";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 611 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("ExoMechsMusicboxItem")]
|
||||
public class ExoMechsMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.ExoMechsMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/ExoMechs";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 474 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("HiveMindMusicbox")]
|
||||
public class HiveMindMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.HiveMindMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/HiveMind";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 725 B |
@@ -0,0 +1,10 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class Interlude1MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.Interlude1MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/Interlude1";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 658 B |
@@ -0,0 +1,10 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class Interlude2MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.Interlude2MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/Interlude2";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 554 B |
@@ -0,0 +1,10 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class Interlude3MusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.Interlude3MusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/Interlude3";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 578 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("LeviathanMusicbox")]
|
||||
public class LeviathanMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.LeviathanMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/Leviathan";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 788 B |
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public abstract class MusicBox : ModItem
|
||||
{
|
||||
public abstract int MusicBoxTile { get; }
|
||||
public abstract string MusicFilePath { get; }
|
||||
public virtual bool Obtainable { get; } = true;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.CanGetPrefixes[Type] = false;
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.MusicBox;
|
||||
|
||||
if (!Obtainable)
|
||||
{
|
||||
Item.ResearchUnlockCount = 0;
|
||||
}
|
||||
|
||||
// Register Music Box if the music path exists
|
||||
if (!String.IsNullOrEmpty(MusicFilePath))
|
||||
MusicLoader.AddMusicBox(Mod, MusicLoader.GetMusicSlot(Mod, MusicFilePath), Type, MusicBoxTile);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToMusicBox(MusicBoxTile, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("BoomerDukeMusicbox")]
|
||||
public class OldDukeMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.OldDukeMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/OldDuke";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 822 B |
@@ -0,0 +1,11 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
[LegacyName("PerforatorMusicbox")]
|
||||
public class PerforatorsMusicBox : MusicBox
|
||||
{
|
||||
public override int MusicBoxTile => ModContent.TileType<Tiles.PerforatorsMusicBox>();
|
||||
public override string MusicFilePath => "Sounds/Music/Perforators";
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 339 B |