Compare commits

..
2 Commits
Author SHA1 Message Date
Cameron Ewell 2d886b2157 Added Patreon-GitHub sponsor integration 2020-12-15 00:25:00 -05:00
Tymon Simonides 98752e50f4 Create README.md 2019-01-17 22:01:41 +01:00
396 changed files with 2 additions and 2517 deletions

No files matched your search

-27
View File
@@ -1,27 +0,0 @@
# 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
+1 -1
View File
@@ -1 +1 @@
patreon: CalamityMod
patreon: Fabsol
-304
View File
@@ -1,304 +0,0 @@
# 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
-35
View File
@@ -1,35 +0,0 @@
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;
}
}
}
}
-44
View File
@@ -1,44 +0,0 @@
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;
}
}
}
-4
View File
@@ -1,4 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\tModLoader.targets" />
</Project>
-136
View File
@@ -1,136 +0,0 @@
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");
}
}
}
-10
View File
@@ -1,10 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

@@ -1,10 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 542 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 333 B

-23
View File
@@ -1,23 +0,0 @@
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();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 535 B

-28
View File
@@ -1,28 +0,0 @@
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();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 584 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 812 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 625 B

@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 494 B

@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 632 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 837 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 B

-10
View File
@@ -1,10 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 358 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 346 B

-12
View File
@@ -1,12 +0,0 @@
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;
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 351 B

@@ -1,35 +0,0 @@
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();
}
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 551 B

@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 523 B

@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 524 B

@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 395 B

@@ -1,23 +0,0 @@
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();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 902 B

@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 910 B

@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 906 B

@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 835 B

-34
View File
@@ -1,34 +0,0 @@
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();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 511 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 668 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 646 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 834 B

@@ -1,10 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 764 B

@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 736 B

@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 843 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 611 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 474 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 725 B

-10
View File
@@ -1,10 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 B

-10
View File
@@ -1,10 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

-10
View File
@@ -1,10 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 578 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 788 B

-33
View File
@@ -1,33 +0,0 @@
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);
}
}
}
-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

-11
View File
@@ -1,11 +0,0 @@
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";
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 339 B

Loaded 100 of 396 files, more files were not shown because too many files have changed in this diff. Show more