diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f1a334d --- /dev/null +++ b/.gitattributes @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..516f1ca --- /dev/null +++ b/.gitignore @@ -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 diff --git a/CalamityModMusic.cs b/CalamityModMusic.cs new file mode 100644 index 0000000..b8719b0 --- /dev/null +++ b/CalamityModMusic.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityModMusic +{ + public class CalamityModMusic : Mod + { + public static CalamityModMusic Instance; + + public CalamityModMusic() + { + Instance = this; + } + + public override void Load() + { + if (!Main.dedServ) + { + //Boss Music + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AquaticScourge"), ItemType("AquaticScourgeMusicbox"), TileType("AquaticScourgeMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Astrageldon"), ItemType("AstrageldonMusicbox"), TileType("AstrageldonMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumDeus"), ItemType("AstrumDeusMusicbox"), TileType("AstrumDeusMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/LeftAlone"), ItemType("BrimmyMusicbox"), TileType("BrimmyMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Murderswarm"), ItemType("BumblebirbMusicbox"), TileType("BumblebirbMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Calamitas"), ItemType("CalamitasMusicbox"), TileType("CalamitasMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Void"), ItemType("CeaselessVoidMusicbox"), TileType("CeaselessVoidMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Crabulon"), ItemType("CrabulonMusicbox"), TileType("CrabulonMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Cryogen"), ItemType("CryogenMusicbox"), TileType("CryogenMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DesertScourge"), ItemType("DesertScourgeMusicbox"), TileType("DesertScourgeMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YHARON"), ItemType("Yharon1Musicbox"), TileType("Yharon1Musicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YHARONREBIRTH"), ItemType("Yharon2Musicbox"), TileType("Yharon2Musicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DragonGod"), ItemType("Yharon3Musicbox"), TileType("Yharon3Musicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/RUIN"), ItemType("PolterghastMusicbox"), TileType("PolterghastMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Guardians"), ItemType("ProfanedGuardianMusicbox"), TileType("ProfanedGuardianMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/ProvidenceTheme"), ItemType("ProvidenceMusicbox"), TileType("ProvidenceMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Ravager"), ItemType("RavagerMusicbox"), TileType("RavagerMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Signus"), ItemType("SignusMusicbox"), TileType("SignusMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SirenLure"), ItemType("SirenIdleMusicbox"), TileType("SirenIdleMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Siren"), ItemType("SirenMusicbox"), TileType("SirenMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/LeviathanAndSiren"), ItemType("LeviathanMusicbox"), TileType("LeviathanMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Weaver"), ItemType("StormWeaverMusicbox"), TileType("StormWeaverMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SCG"), ItemType("SCalGMusicbox"), TileType("SCalGMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SCL"), ItemType("SCalLMusicbox"), TileType("SCalLMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SCE"), ItemType("SCalEMusicbox"), TileType("SCalEMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SCA"), ItemType("SCalAMusicbox"), TileType("SCalAMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/ScourgeofTheUniverse"), ItemType("DoGMusicbox"), TileType("DoGMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/UniversalCollapse"), ItemType("DoGP2Musicbox"), TileType("DoGP2Musicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/HiveMind"), ItemType("HiveMindMusicbox"), TileType("HiveMindMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BloodCoagulant"), ItemType("PerforatorMusicbox"), TileType("PerforatorMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/PlaguebringerGoliath"), ItemType("PlaguebringerMusicbox"), TileType("PlaguebringerMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SlimeGod"), ItemType("SlimeGodMusicbox"), TileType("SlimeGodMusicbox")); + + //Biome Music + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Sulphur"), ItemType("SulphurousMusicbox"), TileType("SulphurousMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/TheAbyss"), ItemType("HigherAbyssMusicbox"), TileType("HigherAbyssMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/TheDeepAbyss"), ItemType("AbyssLowerMusicbox"), TileType("AbyssLowerMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/TheVoid"), ItemType("VoidMusicbox"), TileType("VoidMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Astral"), ItemType("AstralMusicbox"), TileType("AstralMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity"), ItemType("CalamityMusicbox"), TileType("CalamityMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Crag"), ItemType("CragMusicbox"), TileType("CragMusicbox")); + AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SunkenSea"), ItemType("SunkenSeaMusicbox"), TileType("SunkenSeaMusicbox")); + } + } + + public override void Unload() + { + Instance = null; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/AbyssLowerMusicbox.cs b/Items/Placeables/AbyssLowerMusicbox.cs new file mode 100644 index 0000000..656dc83 --- /dev/null +++ b/Items/Placeables/AbyssLowerMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class AbyssLowerMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Lower Abyss)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("AbyssLowerMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/AbyssLowerMusicbox.png b/Items/Placeables/AbyssLowerMusicbox.png new file mode 100644 index 0000000..4b5537e Binary files /dev/null and b/Items/Placeables/AbyssLowerMusicbox.png differ diff --git a/Items/Placeables/AquaticScourgeMusicbox.cs b/Items/Placeables/AquaticScourgeMusicbox.cs new file mode 100644 index 0000000..3c0827a --- /dev/null +++ b/Items/Placeables/AquaticScourgeMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class AquaticScourgeMusicbox: ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Aquatic Scourge)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("AquaticScourgeMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/AquaticScourgeMusicbox.png b/Items/Placeables/AquaticScourgeMusicbox.png new file mode 100644 index 0000000..cd44d82 Binary files /dev/null and b/Items/Placeables/AquaticScourgeMusicbox.png differ diff --git a/Items/Placeables/AstrageldonMusicbox.cs b/Items/Placeables/AstrageldonMusicbox.cs new file mode 100644 index 0000000..8b660d4 --- /dev/null +++ b/Items/Placeables/AstrageldonMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class AstrageldonMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Astrum Aureus)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("AstrageldonMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/AstrageldonMusicbox.png b/Items/Placeables/AstrageldonMusicbox.png new file mode 100644 index 0000000..33ca9fe Binary files /dev/null and b/Items/Placeables/AstrageldonMusicbox.png differ diff --git a/Items/Placeables/AstralMusicbox.cs b/Items/Placeables/AstralMusicbox.cs new file mode 100644 index 0000000..be2b3f6 --- /dev/null +++ b/Items/Placeables/AstralMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class AstralMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Astral Biome)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("AstralMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/AstralMusicbox.png b/Items/Placeables/AstralMusicbox.png new file mode 100644 index 0000000..3352db4 Binary files /dev/null and b/Items/Placeables/AstralMusicbox.png differ diff --git a/Items/Placeables/AstralUnderground.png b/Items/Placeables/AstralUnderground.png new file mode 100644 index 0000000..5ce19e8 Binary files /dev/null and b/Items/Placeables/AstralUnderground.png differ diff --git a/Items/Placeables/AstrumDeusMusicbox.cs b/Items/Placeables/AstrumDeusMusicbox.cs new file mode 100644 index 0000000..fbd015d --- /dev/null +++ b/Items/Placeables/AstrumDeusMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class AstrumDeusMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Astrum Deus)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("AstrumDeusMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/AstrumDeusMusicbox.png b/Items/Placeables/AstrumDeusMusicbox.png new file mode 100644 index 0000000..49b53b3 Binary files /dev/null and b/Items/Placeables/AstrumDeusMusicbox.png differ diff --git a/Items/Placeables/BrimmyMusicbox.cs b/Items/Placeables/BrimmyMusicbox.cs new file mode 100644 index 0000000..80c4a4c --- /dev/null +++ b/Items/Placeables/BrimmyMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class BrimmyMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Brimstone Elemental)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("BrimmyMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/BrimmyMusicbox.png b/Items/Placeables/BrimmyMusicbox.png new file mode 100644 index 0000000..773a275 Binary files /dev/null and b/Items/Placeables/BrimmyMusicbox.png differ diff --git a/Items/Placeables/BumblebirbMusicbox.cs b/Items/Placeables/BumblebirbMusicbox.cs new file mode 100644 index 0000000..1790736 --- /dev/null +++ b/Items/Placeables/BumblebirbMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class BumblebirbMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Bumblebirb)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("BumblebirbMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/BumblebirbMusicbox.png b/Items/Placeables/BumblebirbMusicbox.png new file mode 100644 index 0000000..9b963f5 Binary files /dev/null and b/Items/Placeables/BumblebirbMusicbox.png differ diff --git a/Items/Placeables/CalamitasMusicbox.cs b/Items/Placeables/CalamitasMusicbox.cs new file mode 100644 index 0000000..3c2bb07 --- /dev/null +++ b/Items/Placeables/CalamitasMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class CalamitasMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Calamitas)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("CalamitasMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/CalamitasMusicbox.png b/Items/Placeables/CalamitasMusicbox.png new file mode 100644 index 0000000..5a20cce Binary files /dev/null and b/Items/Placeables/CalamitasMusicbox.png differ diff --git a/Items/Placeables/CalamityMusicbox.cs b/Items/Placeables/CalamityMusicbox.cs new file mode 100644 index 0000000..4554a2f --- /dev/null +++ b/Items/Placeables/CalamityMusicbox.cs @@ -0,0 +1,42 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class CalamityMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Calamity)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("CalamityMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + + public override void AddRecipes() + { + Mod calamityMod = ModLoader.GetMod("CalamityMod"); + if (calamityMod != null) + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(calamityMod.ItemType("BrimstoneSlag"), 12); + recipe.AddIngredient(calamityMod.ItemType("EssenceofChaos"), 3); + recipe.SetResult(this); + recipe.AddTile(calamityMod.TileType("AshenAltar")); + recipe.AddRecipe(); + } + } + } +} \ No newline at end of file diff --git a/Items/Placeables/CalamityMusicbox.png b/Items/Placeables/CalamityMusicbox.png new file mode 100644 index 0000000..adc00ea Binary files /dev/null and b/Items/Placeables/CalamityMusicbox.png differ diff --git a/Items/Placeables/CeaselessVoidMusicbox.cs b/Items/Placeables/CeaselessVoidMusicbox.cs new file mode 100644 index 0000000..2f29271 --- /dev/null +++ b/Items/Placeables/CeaselessVoidMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class CeaselessVoidMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Ceaseless Void)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("CeaselessVoidMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/CeaselessVoidMusicbox.png b/Items/Placeables/CeaselessVoidMusicbox.png new file mode 100644 index 0000000..8a8e549 Binary files /dev/null and b/Items/Placeables/CeaselessVoidMusicbox.png differ diff --git a/Items/Placeables/CrabulonMusicbox.cs b/Items/Placeables/CrabulonMusicbox.cs new file mode 100644 index 0000000..09c66fe --- /dev/null +++ b/Items/Placeables/CrabulonMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class CrabulonMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Crabulon)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("CrabulonMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/CrabulonMusicbox.png b/Items/Placeables/CrabulonMusicbox.png new file mode 100644 index 0000000..b2345a2 Binary files /dev/null and b/Items/Placeables/CrabulonMusicbox.png differ diff --git a/Items/Placeables/CragMusicbox.cs b/Items/Placeables/CragMusicbox.cs new file mode 100644 index 0000000..c56d581 --- /dev/null +++ b/Items/Placeables/CragMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class CragMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Brimstone Crag)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("CragMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/CragMusicbox.png b/Items/Placeables/CragMusicbox.png new file mode 100644 index 0000000..b568044 Binary files /dev/null and b/Items/Placeables/CragMusicbox.png differ diff --git a/Items/Placeables/CryogenMusicbox.cs b/Items/Placeables/CryogenMusicbox.cs new file mode 100644 index 0000000..0596c29 --- /dev/null +++ b/Items/Placeables/CryogenMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class CryogenMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Cryogen)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("CryogenMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/CryogenMusicbox.png b/Items/Placeables/CryogenMusicbox.png new file mode 100644 index 0000000..be09d32 Binary files /dev/null and b/Items/Placeables/CryogenMusicbox.png differ diff --git a/Items/Placeables/DesertScourgeMusicbox.cs b/Items/Placeables/DesertScourgeMusicbox.cs new file mode 100644 index 0000000..0ad2850 --- /dev/null +++ b/Items/Placeables/DesertScourgeMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class DesertScourgeMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Desert Scourge)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("DesertScourgeMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/DesertScourgeMusicbox.png b/Items/Placeables/DesertScourgeMusicbox.png new file mode 100644 index 0000000..fbc0cac Binary files /dev/null and b/Items/Placeables/DesertScourgeMusicbox.png differ diff --git a/Items/Placeables/DoGMusicbox.cs b/Items/Placeables/DoGMusicbox.cs new file mode 100644 index 0000000..e227333 --- /dev/null +++ b/Items/Placeables/DoGMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class DoGMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (DoG Phase 1)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("DoGMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/DoGMusicbox.png b/Items/Placeables/DoGMusicbox.png new file mode 100644 index 0000000..5196bc5 Binary files /dev/null and b/Items/Placeables/DoGMusicbox.png differ diff --git a/Items/Placeables/DoGP2Musicbox.cs b/Items/Placeables/DoGP2Musicbox.cs new file mode 100644 index 0000000..124cd91 --- /dev/null +++ b/Items/Placeables/DoGP2Musicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class DoGP2Musicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (DoG Phase 2)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("DoGP2Musicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/DoGP2Musicbox.png b/Items/Placeables/DoGP2Musicbox.png new file mode 100644 index 0000000..79e703c Binary files /dev/null and b/Items/Placeables/DoGP2Musicbox.png differ diff --git a/Items/Placeables/HigherAbyssMusicbox.cs b/Items/Placeables/HigherAbyssMusicbox.cs new file mode 100644 index 0000000..664d83c --- /dev/null +++ b/Items/Placeables/HigherAbyssMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class HigherAbyssMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Higher Abyss)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("HigherAbyssMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/HigherAbyssMusicbox.png b/Items/Placeables/HigherAbyssMusicbox.png new file mode 100644 index 0000000..08fb7b7 Binary files /dev/null and b/Items/Placeables/HigherAbyssMusicbox.png differ diff --git a/Items/Placeables/HiveMindMusicbox.cs b/Items/Placeables/HiveMindMusicbox.cs new file mode 100644 index 0000000..7293ea8 --- /dev/null +++ b/Items/Placeables/HiveMindMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class HiveMindMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Hive Mind)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("HiveMindMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/HiveMindMusicbox.png b/Items/Placeables/HiveMindMusicbox.png new file mode 100644 index 0000000..e3d6be7 Binary files /dev/null and b/Items/Placeables/HiveMindMusicbox.png differ diff --git a/Items/Placeables/LeviathanMusicbox.cs b/Items/Placeables/LeviathanMusicbox.cs new file mode 100644 index 0000000..2662b2d --- /dev/null +++ b/Items/Placeables/LeviathanMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class LeviathanMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Leviathan)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("LeviathanMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/LeviathanMusicbox.png b/Items/Placeables/LeviathanMusicbox.png new file mode 100644 index 0000000..cd1dc9d Binary files /dev/null and b/Items/Placeables/LeviathanMusicbox.png differ diff --git a/Items/Placeables/PerforatorMusicbox.cs b/Items/Placeables/PerforatorMusicbox.cs new file mode 100644 index 0000000..eead1c1 --- /dev/null +++ b/Items/Placeables/PerforatorMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class PerforatorMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Perforator)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("PerforatorMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/PerforatorMusicbox.png b/Items/Placeables/PerforatorMusicbox.png new file mode 100644 index 0000000..77bcb5b Binary files /dev/null and b/Items/Placeables/PerforatorMusicbox.png differ diff --git a/Items/Placeables/PlaguebringerMusicbox.cs b/Items/Placeables/PlaguebringerMusicbox.cs new file mode 100644 index 0000000..c5e0e68 --- /dev/null +++ b/Items/Placeables/PlaguebringerMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class PlaguebringerMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Plaguebringer Goliath)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("PlaguebringerMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/PlaguebringerMusicbox.png b/Items/Placeables/PlaguebringerMusicbox.png new file mode 100644 index 0000000..08f6764 Binary files /dev/null and b/Items/Placeables/PlaguebringerMusicbox.png differ diff --git a/Items/Placeables/PlanetoidMusicBox.png b/Items/Placeables/PlanetoidMusicBox.png new file mode 100644 index 0000000..cb09b27 Binary files /dev/null and b/Items/Placeables/PlanetoidMusicBox.png differ diff --git a/Items/Placeables/PolterghastMusicbox.cs b/Items/Placeables/PolterghastMusicbox.cs new file mode 100644 index 0000000..d85164e --- /dev/null +++ b/Items/Placeables/PolterghastMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class PolterghastMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Polterghast)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("PolterghastMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/PolterghastMusicbox.png b/Items/Placeables/PolterghastMusicbox.png new file mode 100644 index 0000000..2f6b8fe Binary files /dev/null and b/Items/Placeables/PolterghastMusicbox.png differ diff --git a/Items/Placeables/ProfanedGuardianMusicbox.cs b/Items/Placeables/ProfanedGuardianMusicbox.cs new file mode 100644 index 0000000..a973605 --- /dev/null +++ b/Items/Placeables/ProfanedGuardianMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class ProfanedGuardianMusicbox: ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Profaned Guardian)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("ProfanedGuardianMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/ProfanedGuardianMusicbox.png b/Items/Placeables/ProfanedGuardianMusicbox.png new file mode 100644 index 0000000..f181e63 Binary files /dev/null and b/Items/Placeables/ProfanedGuardianMusicbox.png differ diff --git a/Items/Placeables/ProvidenceMusicbox.cs b/Items/Placeables/ProvidenceMusicbox.cs new file mode 100644 index 0000000..156c208 --- /dev/null +++ b/Items/Placeables/ProvidenceMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class ProvidenceMusicbox: ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Providence)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("ProvidenceMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/ProvidenceMusicbox.png b/Items/Placeables/ProvidenceMusicbox.png new file mode 100644 index 0000000..1b24633 Binary files /dev/null and b/Items/Placeables/ProvidenceMusicbox.png differ diff --git a/Items/Placeables/RavagerMusicbox.cs b/Items/Placeables/RavagerMusicbox.cs new file mode 100644 index 0000000..06447e9 --- /dev/null +++ b/Items/Placeables/RavagerMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class RavagerMusicbox: ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Ravager)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("RavagerMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/RavagerMusicbox.png b/Items/Placeables/RavagerMusicbox.png new file mode 100644 index 0000000..ce1c98e Binary files /dev/null and b/Items/Placeables/RavagerMusicbox.png differ diff --git a/Items/Placeables/SCalAMusicbox.cs b/Items/Placeables/SCalAMusicbox.cs new file mode 100644 index 0000000..b621691 --- /dev/null +++ b/Items/Placeables/SCalAMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class SCalAMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Acceptance)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("SCalAMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/SCalAMusicbox.png b/Items/Placeables/SCalAMusicbox.png new file mode 100644 index 0000000..8a2ac7c Binary files /dev/null and b/Items/Placeables/SCalAMusicbox.png differ diff --git a/Items/Placeables/SCalEMusicbox.cs b/Items/Placeables/SCalEMusicbox.cs new file mode 100644 index 0000000..eaad57d --- /dev/null +++ b/Items/Placeables/SCalEMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class SCalEMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Epiphany)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("SCalEMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/SCalEMusicbox.png b/Items/Placeables/SCalEMusicbox.png new file mode 100644 index 0000000..8485cca Binary files /dev/null and b/Items/Placeables/SCalEMusicbox.png differ diff --git a/Items/Placeables/SCalGMusicbox.cs b/Items/Placeables/SCalGMusicbox.cs new file mode 100644 index 0000000..40c8b03 --- /dev/null +++ b/Items/Placeables/SCalGMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class SCalGMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Grief)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("SCalGMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/SCalGMusicbox.png b/Items/Placeables/SCalGMusicbox.png new file mode 100644 index 0000000..c6215ef Binary files /dev/null and b/Items/Placeables/SCalGMusicbox.png differ diff --git a/Items/Placeables/SCalLMusicbox.cs b/Items/Placeables/SCalLMusicbox.cs new file mode 100644 index 0000000..bc3c86e --- /dev/null +++ b/Items/Placeables/SCalLMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class SCalLMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Lament)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("SCalLMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/SCalLMusicbox.png b/Items/Placeables/SCalLMusicbox.png new file mode 100644 index 0000000..126748d Binary files /dev/null and b/Items/Placeables/SCalLMusicbox.png differ diff --git a/Items/Placeables/SignusMusicbox.cs b/Items/Placeables/SignusMusicbox.cs new file mode 100644 index 0000000..1e1a44b --- /dev/null +++ b/Items/Placeables/SignusMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class SignusMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Signus)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("SignusMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/SignusMusicbox.png b/Items/Placeables/SignusMusicbox.png new file mode 100644 index 0000000..ec9dfbb Binary files /dev/null and b/Items/Placeables/SignusMusicbox.png differ diff --git a/Items/Placeables/SirenIdleMusicbox.cs b/Items/Placeables/SirenIdleMusicbox.cs new file mode 100644 index 0000000..a46eced --- /dev/null +++ b/Items/Placeables/SirenIdleMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class SirenIdleMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Siren Lure)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("SirenIdleMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/SirenIdleMusicbox.png b/Items/Placeables/SirenIdleMusicbox.png new file mode 100644 index 0000000..ff202b7 Binary files /dev/null and b/Items/Placeables/SirenIdleMusicbox.png differ diff --git a/Items/Placeables/SirenMusicbox.cs b/Items/Placeables/SirenMusicbox.cs new file mode 100644 index 0000000..0c35fe2 --- /dev/null +++ b/Items/Placeables/SirenMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class SirenMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Siren)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("SirenMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/SirenMusicbox.png b/Items/Placeables/SirenMusicbox.png new file mode 100644 index 0000000..ab32c30 Binary files /dev/null and b/Items/Placeables/SirenMusicbox.png differ diff --git a/Items/Placeables/SlimeGodMusicbox.cs b/Items/Placeables/SlimeGodMusicbox.cs new file mode 100644 index 0000000..1b1f1d5 --- /dev/null +++ b/Items/Placeables/SlimeGodMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class SlimeGodMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Slime God)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("SlimeGodMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/SlimeGodMusicbox.png b/Items/Placeables/SlimeGodMusicbox.png new file mode 100644 index 0000000..7aae919 Binary files /dev/null and b/Items/Placeables/SlimeGodMusicbox.png differ diff --git a/Items/Placeables/StormWeaverMusicbox.cs b/Items/Placeables/StormWeaverMusicbox.cs new file mode 100644 index 0000000..f2ce99a --- /dev/null +++ b/Items/Placeables/StormWeaverMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class StormWeaverMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Storm Weaver)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("StormWeaverMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/StormWeaverMusicbox.png b/Items/Placeables/StormWeaverMusicbox.png new file mode 100644 index 0000000..4c0e1c8 Binary files /dev/null and b/Items/Placeables/StormWeaverMusicbox.png differ diff --git a/Items/Placeables/SulphurousMusicbox.cs b/Items/Placeables/SulphurousMusicbox.cs new file mode 100644 index 0000000..64cfa29 --- /dev/null +++ b/Items/Placeables/SulphurousMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class SulphurousMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Sulphurous Sea)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("SulphurousMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/SulphurousMusicbox.png b/Items/Placeables/SulphurousMusicbox.png new file mode 100644 index 0000000..8708ee4 Binary files /dev/null and b/Items/Placeables/SulphurousMusicbox.png differ diff --git a/Items/Placeables/SunkenSeaMusicbox.cs b/Items/Placeables/SunkenSeaMusicbox.cs new file mode 100644 index 0000000..a4e3b8b --- /dev/null +++ b/Items/Placeables/SunkenSeaMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class SunkenSeaMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Sunken Sea)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("SunkenSeaMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/SunkenSeaMusicbox.png b/Items/Placeables/SunkenSeaMusicbox.png new file mode 100644 index 0000000..10b9cf0 Binary files /dev/null and b/Items/Placeables/SunkenSeaMusicbox.png differ diff --git a/Items/Placeables/VoidMusicbox.cs b/Items/Placeables/VoidMusicbox.cs new file mode 100644 index 0000000..9165b35 --- /dev/null +++ b/Items/Placeables/VoidMusicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class VoidMusicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Void)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("VoidMusicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/VoidMusicbox.png b/Items/Placeables/VoidMusicbox.png new file mode 100644 index 0000000..2b8e18d Binary files /dev/null and b/Items/Placeables/VoidMusicbox.png differ diff --git a/Items/Placeables/Yharon1Musicbox.cs b/Items/Placeables/Yharon1Musicbox.cs new file mode 100644 index 0000000..ff81909 --- /dev/null +++ b/Items/Placeables/Yharon1Musicbox.cs @@ -0,0 +1,42 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class Yharon1Musicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Yharon, Pre-dark sun)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("Yharon1Musicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + + public override void AddRecipes() + { + Mod calamityMod = ModLoader.GetMod("CalamityMod"); + if (calamityMod != null) + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(calamityMod.ItemType("DarksunFragment"), 5); + recipe.AddIngredient(calamityMod.ItemType("CosmiliteBar"), 3); + recipe.SetResult(this); + recipe.AddTile(calamityMod.TileType("DraedonsForge")); + recipe.AddRecipe(); + } + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Yharon1Musicbox.png b/Items/Placeables/Yharon1Musicbox.png new file mode 100644 index 0000000..7eb82ba Binary files /dev/null and b/Items/Placeables/Yharon1Musicbox.png differ diff --git a/Items/Placeables/Yharon2Musicbox.cs b/Items/Placeables/Yharon2Musicbox.cs new file mode 100644 index 0000000..1598c1a --- /dev/null +++ b/Items/Placeables/Yharon2Musicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class Yharon2Musicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Yharon, Rebirth)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("Yharon2Musicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Yharon2Musicbox.png b/Items/Placeables/Yharon2Musicbox.png new file mode 100644 index 0000000..39199ef Binary files /dev/null and b/Items/Placeables/Yharon2Musicbox.png differ diff --git a/Items/Placeables/Yharon3Musicbox.cs b/Items/Placeables/Yharon3Musicbox.cs new file mode 100644 index 0000000..1276e91 --- /dev/null +++ b/Items/Placeables/Yharon3Musicbox.cs @@ -0,0 +1,28 @@ +using Terraria.ModLoader; + +namespace CalamityModMusic.Items.Placeables +{ + public class Yharon3Musicbox : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Music Box (Yharon, Roar of the Jungle Dragon)"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = mod.TileType("Yharon3Musicbox"); + item.width = 24; + item.height = 24; + item.rare = 4; + item.value = 100000; + item.accessory = true; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Yharon3Musicbox.png b/Items/Placeables/Yharon3Musicbox.png new file mode 100644 index 0000000..226020d Binary files /dev/null and b/Items/Placeables/Yharon3Musicbox.png differ diff --git a/Sounds/Music/AquaticScourge.ogg b/Sounds/Music/AquaticScourge.ogg new file mode 100644 index 0000000..f81d4e9 Binary files /dev/null and b/Sounds/Music/AquaticScourge.ogg differ diff --git a/Sounds/Music/Astrageldon.ogg b/Sounds/Music/Astrageldon.ogg new file mode 100644 index 0000000..797c741 Binary files /dev/null and b/Sounds/Music/Astrageldon.ogg differ diff --git a/Sounds/Music/Astral.ogg b/Sounds/Music/Astral.ogg new file mode 100644 index 0000000..b2ad02c Binary files /dev/null and b/Sounds/Music/Astral.ogg differ diff --git a/Sounds/Music/AstrumDeus.ogg b/Sounds/Music/AstrumDeus.ogg new file mode 100644 index 0000000..bf58eab Binary files /dev/null and b/Sounds/Music/AstrumDeus.ogg differ diff --git a/Sounds/Music/BloodCoagulant.ogg b/Sounds/Music/BloodCoagulant.ogg new file mode 100644 index 0000000..48c4ffa Binary files /dev/null and b/Sounds/Music/BloodCoagulant.ogg differ diff --git a/Sounds/Music/Calamitas.ogg b/Sounds/Music/Calamitas.ogg new file mode 100644 index 0000000..f219381 Binary files /dev/null and b/Sounds/Music/Calamitas.ogg differ diff --git a/Sounds/Music/Calamity.ogg b/Sounds/Music/Calamity.ogg new file mode 100644 index 0000000..c333211 Binary files /dev/null and b/Sounds/Music/Calamity.ogg differ diff --git a/Sounds/Music/Crabulon.ogg b/Sounds/Music/Crabulon.ogg new file mode 100644 index 0000000..9c7be69 Binary files /dev/null and b/Sounds/Music/Crabulon.ogg differ diff --git a/Sounds/Music/Crag.ogg b/Sounds/Music/Crag.ogg new file mode 100644 index 0000000..2d69825 Binary files /dev/null and b/Sounds/Music/Crag.ogg differ diff --git a/Sounds/Music/Cryogen.ogg b/Sounds/Music/Cryogen.ogg new file mode 100644 index 0000000..c02c81f Binary files /dev/null and b/Sounds/Music/Cryogen.ogg differ diff --git a/Sounds/Music/DesertScourge.ogg b/Sounds/Music/DesertScourge.ogg new file mode 100644 index 0000000..5cf211d Binary files /dev/null and b/Sounds/Music/DesertScourge.ogg differ diff --git a/Sounds/Music/DragonGod.ogg b/Sounds/Music/DragonGod.ogg new file mode 100644 index 0000000..09fc5ba Binary files /dev/null and b/Sounds/Music/DragonGod.ogg differ diff --git a/Sounds/Music/Guardians.ogg b/Sounds/Music/Guardians.ogg new file mode 100644 index 0000000..d4f5a5c Binary files /dev/null and b/Sounds/Music/Guardians.ogg differ diff --git a/Sounds/Music/HiveMind.ogg b/Sounds/Music/HiveMind.ogg new file mode 100644 index 0000000..24691d4 Binary files /dev/null and b/Sounds/Music/HiveMind.ogg differ diff --git a/Sounds/Music/LeftAlone.ogg b/Sounds/Music/LeftAlone.ogg new file mode 100644 index 0000000..b9bc52c Binary files /dev/null and b/Sounds/Music/LeftAlone.ogg differ diff --git a/Sounds/Music/LeviathanAndSiren.ogg b/Sounds/Music/LeviathanAndSiren.ogg new file mode 100644 index 0000000..cabcb99 Binary files /dev/null and b/Sounds/Music/LeviathanAndSiren.ogg differ diff --git a/Sounds/Music/Murderswarm.ogg b/Sounds/Music/Murderswarm.ogg new file mode 100644 index 0000000..a4b452e Binary files /dev/null and b/Sounds/Music/Murderswarm.ogg differ diff --git a/Sounds/Music/PlaguebringerGoliath.ogg b/Sounds/Music/PlaguebringerGoliath.ogg new file mode 100644 index 0000000..0932559 Binary files /dev/null and b/Sounds/Music/PlaguebringerGoliath.ogg differ diff --git a/Sounds/Music/ProvidenceTheme.ogg b/Sounds/Music/ProvidenceTheme.ogg new file mode 100644 index 0000000..832d4a7 Binary files /dev/null and b/Sounds/Music/ProvidenceTheme.ogg differ diff --git a/Sounds/Music/RUIN.ogg b/Sounds/Music/RUIN.ogg new file mode 100644 index 0000000..ec3383d Binary files /dev/null and b/Sounds/Music/RUIN.ogg differ diff --git a/Sounds/Music/Ravager.ogg b/Sounds/Music/Ravager.ogg new file mode 100644 index 0000000..9b4c5be Binary files /dev/null and b/Sounds/Music/Ravager.ogg differ diff --git a/Sounds/Music/SCA.ogg b/Sounds/Music/SCA.ogg new file mode 100644 index 0000000..bf7c067 Binary files /dev/null and b/Sounds/Music/SCA.ogg differ diff --git a/Sounds/Music/SCE.ogg b/Sounds/Music/SCE.ogg new file mode 100644 index 0000000..50cf4b3 Binary files /dev/null and b/Sounds/Music/SCE.ogg differ diff --git a/Sounds/Music/SCG.ogg b/Sounds/Music/SCG.ogg new file mode 100644 index 0000000..94fe091 Binary files /dev/null and b/Sounds/Music/SCG.ogg differ diff --git a/Sounds/Music/SCL.ogg b/Sounds/Music/SCL.ogg new file mode 100644 index 0000000..ec7a247 Binary files /dev/null and b/Sounds/Music/SCL.ogg differ diff --git a/Sounds/Music/ScourgeofTheUniverse.ogg b/Sounds/Music/ScourgeofTheUniverse.ogg new file mode 100644 index 0000000..5489d33 Binary files /dev/null and b/Sounds/Music/ScourgeofTheUniverse.ogg differ diff --git a/Sounds/Music/Signus.ogg b/Sounds/Music/Signus.ogg new file mode 100644 index 0000000..3a370c0 Binary files /dev/null and b/Sounds/Music/Signus.ogg differ diff --git a/Sounds/Music/Siren.ogg b/Sounds/Music/Siren.ogg new file mode 100644 index 0000000..bbf0c53 Binary files /dev/null and b/Sounds/Music/Siren.ogg differ diff --git a/Sounds/Music/SirenLure.ogg b/Sounds/Music/SirenLure.ogg new file mode 100644 index 0000000..eaf892a Binary files /dev/null and b/Sounds/Music/SirenLure.ogg differ diff --git a/Sounds/Music/SlimeGod.ogg b/Sounds/Music/SlimeGod.ogg new file mode 100644 index 0000000..5156a4c Binary files /dev/null and b/Sounds/Music/SlimeGod.ogg differ diff --git a/Sounds/Music/Sulphur.ogg b/Sounds/Music/Sulphur.ogg new file mode 100644 index 0000000..578a651 Binary files /dev/null and b/Sounds/Music/Sulphur.ogg differ diff --git a/Sounds/Music/SunkenSea.ogg b/Sounds/Music/SunkenSea.ogg new file mode 100644 index 0000000..38c9899 Binary files /dev/null and b/Sounds/Music/SunkenSea.ogg differ diff --git a/Sounds/Music/TheAbyss.ogg b/Sounds/Music/TheAbyss.ogg new file mode 100644 index 0000000..9496294 Binary files /dev/null and b/Sounds/Music/TheAbyss.ogg differ diff --git a/Sounds/Music/TheDeepAbyss.ogg b/Sounds/Music/TheDeepAbyss.ogg new file mode 100644 index 0000000..3dfd8c8 Binary files /dev/null and b/Sounds/Music/TheDeepAbyss.ogg differ diff --git a/Sounds/Music/TheVoid.ogg b/Sounds/Music/TheVoid.ogg new file mode 100644 index 0000000..bc01be2 Binary files /dev/null and b/Sounds/Music/TheVoid.ogg differ diff --git a/Sounds/Music/UniversalCollapse.ogg b/Sounds/Music/UniversalCollapse.ogg new file mode 100644 index 0000000..66fac48 Binary files /dev/null and b/Sounds/Music/UniversalCollapse.ogg differ diff --git a/Sounds/Music/Void.ogg b/Sounds/Music/Void.ogg new file mode 100644 index 0000000..1c4ba66 Binary files /dev/null and b/Sounds/Music/Void.ogg differ diff --git a/Sounds/Music/Weaver.ogg b/Sounds/Music/Weaver.ogg new file mode 100644 index 0000000..4e34073 Binary files /dev/null and b/Sounds/Music/Weaver.ogg differ diff --git a/Sounds/Music/YHARON.ogg b/Sounds/Music/YHARON.ogg new file mode 100644 index 0000000..7a4c183 Binary files /dev/null and b/Sounds/Music/YHARON.ogg differ diff --git a/Sounds/Music/YHARONREBIRTH.ogg b/Sounds/Music/YHARONREBIRTH.ogg new file mode 100644 index 0000000..ebe2472 Binary files /dev/null and b/Sounds/Music/YHARONREBIRTH.ogg differ diff --git a/Tiles/AbyssLowerMusicbox.cs b/Tiles/AbyssLowerMusicbox.cs new file mode 100644 index 0000000..d866909 --- /dev/null +++ b/Tiles/AbyssLowerMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class AbyssLowerMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("AbyssLowerMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("AbyssLowerMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/AbyssLowerMusicbox.png b/Tiles/AbyssLowerMusicbox.png new file mode 100644 index 0000000..201d3c8 Binary files /dev/null and b/Tiles/AbyssLowerMusicbox.png differ diff --git a/Tiles/AquaticScourgeMusicbox.cs b/Tiles/AquaticScourgeMusicbox.cs new file mode 100644 index 0000000..e843431 --- /dev/null +++ b/Tiles/AquaticScourgeMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class AquaticScourgeMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("AquaticScourgeMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("AquaticScourgeMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/AquaticScourgeMusicbox.png b/Tiles/AquaticScourgeMusicbox.png new file mode 100644 index 0000000..9b692ec Binary files /dev/null and b/Tiles/AquaticScourgeMusicbox.png differ diff --git a/Tiles/AstrageldonMusicbox.cs b/Tiles/AstrageldonMusicbox.cs new file mode 100644 index 0000000..d571ea9 --- /dev/null +++ b/Tiles/AstrageldonMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class AstrageldonMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("AstrageldonMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("AstrageldonMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/AstrageldonMusicbox.png b/Tiles/AstrageldonMusicbox.png new file mode 100644 index 0000000..9d963b5 Binary files /dev/null and b/Tiles/AstrageldonMusicbox.png differ diff --git a/Tiles/AstralMusicbox.cs b/Tiles/AstralMusicbox.cs new file mode 100644 index 0000000..00494cf --- /dev/null +++ b/Tiles/AstralMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class AstralMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("AstralMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("AstralMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/AstralMusicbox.png b/Tiles/AstralMusicbox.png new file mode 100644 index 0000000..d087e83 Binary files /dev/null and b/Tiles/AstralMusicbox.png differ diff --git a/Tiles/AstralUnderground.png b/Tiles/AstralUnderground.png new file mode 100644 index 0000000..0b8535f Binary files /dev/null and b/Tiles/AstralUnderground.png differ diff --git a/Tiles/AstrumDeusMusicbox.cs b/Tiles/AstrumDeusMusicbox.cs new file mode 100644 index 0000000..cf406a6 --- /dev/null +++ b/Tiles/AstrumDeusMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class AstrumDeusMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("AstrumDeusMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("AstrumDeusMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/AstrumDeusMusicbox.png b/Tiles/AstrumDeusMusicbox.png new file mode 100644 index 0000000..b5dc5b5 Binary files /dev/null and b/Tiles/AstrumDeusMusicbox.png differ diff --git a/Tiles/BrimmyMusicbox.cs b/Tiles/BrimmyMusicbox.cs new file mode 100644 index 0000000..efd441c --- /dev/null +++ b/Tiles/BrimmyMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class BrimmyMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("BrimmyMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("BrimmyMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/BrimmyMusicbox.png b/Tiles/BrimmyMusicbox.png new file mode 100644 index 0000000..ca6ffbe Binary files /dev/null and b/Tiles/BrimmyMusicbox.png differ diff --git a/Tiles/BumblebirbMusicbox.cs b/Tiles/BumblebirbMusicbox.cs new file mode 100644 index 0000000..96eaba8 --- /dev/null +++ b/Tiles/BumblebirbMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class BumblebirbMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("BumblebirbMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("BumblebirbMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/BumblebirbMusicbox.png b/Tiles/BumblebirbMusicbox.png new file mode 100644 index 0000000..d96c519 Binary files /dev/null and b/Tiles/BumblebirbMusicbox.png differ diff --git a/Tiles/CalamitasMusicbox.cs b/Tiles/CalamitasMusicbox.cs new file mode 100644 index 0000000..501fadc --- /dev/null +++ b/Tiles/CalamitasMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class CalamitasMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("CalamitasMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("CalamitasMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/CalamitasMusicbox.png b/Tiles/CalamitasMusicbox.png new file mode 100644 index 0000000..53e1bbb Binary files /dev/null and b/Tiles/CalamitasMusicbox.png differ diff --git a/Tiles/CalamityMusicbox.cs b/Tiles/CalamityMusicbox.cs new file mode 100644 index 0000000..f3ce21a --- /dev/null +++ b/Tiles/CalamityMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class CalamityMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("CalamityMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("CalamityMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/CalamityMusicbox.png b/Tiles/CalamityMusicbox.png new file mode 100644 index 0000000..e937e1f Binary files /dev/null and b/Tiles/CalamityMusicbox.png differ diff --git a/Tiles/CeaselessVoidMusicbox.cs b/Tiles/CeaselessVoidMusicbox.cs new file mode 100644 index 0000000..6205184 --- /dev/null +++ b/Tiles/CeaselessVoidMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class CeaselessVoidMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("CeaselessVoidMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("CeaselessVoidMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/CeaselessVoidMusicbox.png b/Tiles/CeaselessVoidMusicbox.png new file mode 100644 index 0000000..a3fe8be Binary files /dev/null and b/Tiles/CeaselessVoidMusicbox.png differ diff --git a/Tiles/CrabulonMusicbox.cs b/Tiles/CrabulonMusicbox.cs new file mode 100644 index 0000000..cfe6817 --- /dev/null +++ b/Tiles/CrabulonMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class CrabulonMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("CrabulonMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("CrabulonMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/CrabulonMusicbox.png b/Tiles/CrabulonMusicbox.png new file mode 100644 index 0000000..e887c2b Binary files /dev/null and b/Tiles/CrabulonMusicbox.png differ diff --git a/Tiles/CragMusicbox.cs b/Tiles/CragMusicbox.cs new file mode 100644 index 0000000..7070fdb --- /dev/null +++ b/Tiles/CragMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class CragMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("CragMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("CragMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/CragMusicbox.png b/Tiles/CragMusicbox.png new file mode 100644 index 0000000..7856760 Binary files /dev/null and b/Tiles/CragMusicbox.png differ diff --git a/Tiles/CryogenMusicbox.cs b/Tiles/CryogenMusicbox.cs new file mode 100644 index 0000000..82544d8 --- /dev/null +++ b/Tiles/CryogenMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class CryogenMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("CryogenMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("CryogenMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/CryogenMusicbox.png b/Tiles/CryogenMusicbox.png new file mode 100644 index 0000000..7630266 Binary files /dev/null and b/Tiles/CryogenMusicbox.png differ diff --git a/Tiles/DesertScourgeMusicbox.cs b/Tiles/DesertScourgeMusicbox.cs new file mode 100644 index 0000000..d237d6b --- /dev/null +++ b/Tiles/DesertScourgeMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class DesertScourgeMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("DesertScourgeMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("DesertScourgeMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/DesertScourgeMusicbox.png b/Tiles/DesertScourgeMusicbox.png new file mode 100644 index 0000000..82ec1a3 Binary files /dev/null and b/Tiles/DesertScourgeMusicbox.png differ diff --git a/Tiles/DoGMusicbox.cs b/Tiles/DoGMusicbox.cs new file mode 100644 index 0000000..f22317e --- /dev/null +++ b/Tiles/DoGMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class DoGMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("DoGMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("DoGMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/DoGMusicbox.png b/Tiles/DoGMusicbox.png new file mode 100644 index 0000000..45c1949 Binary files /dev/null and b/Tiles/DoGMusicbox.png differ diff --git a/Tiles/DoGP2Musicbox.cs b/Tiles/DoGP2Musicbox.cs new file mode 100644 index 0000000..4b066e7 --- /dev/null +++ b/Tiles/DoGP2Musicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class DoGP2Musicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("DoGP2Musicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("DoGP2Musicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/DoGP2Musicbox.png b/Tiles/DoGP2Musicbox.png new file mode 100644 index 0000000..4030f04 Binary files /dev/null and b/Tiles/DoGP2Musicbox.png differ diff --git a/Tiles/HigherAbyssMusicbox.cs b/Tiles/HigherAbyssMusicbox.cs new file mode 100644 index 0000000..64689c8 --- /dev/null +++ b/Tiles/HigherAbyssMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class HigherAbyssMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("HigherAbyssMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("HigherAbyssMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/HigherAbyssMusicbox.png b/Tiles/HigherAbyssMusicbox.png new file mode 100644 index 0000000..3e150c8 Binary files /dev/null and b/Tiles/HigherAbyssMusicbox.png differ diff --git a/Tiles/HiveMindMusicbox.cs b/Tiles/HiveMindMusicbox.cs new file mode 100644 index 0000000..d1fe7a4 --- /dev/null +++ b/Tiles/HiveMindMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class HiveMindMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("HiveMindMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("HiveMindMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/HiveMindMusicbox.png b/Tiles/HiveMindMusicbox.png new file mode 100644 index 0000000..117b653 Binary files /dev/null and b/Tiles/HiveMindMusicbox.png differ diff --git a/Tiles/LeviathanMusicbox.cs b/Tiles/LeviathanMusicbox.cs new file mode 100644 index 0000000..d519908 --- /dev/null +++ b/Tiles/LeviathanMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class LeviathanMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("LeviathanMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("LeviathanMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/LeviathanMusicbox.png b/Tiles/LeviathanMusicbox.png new file mode 100644 index 0000000..1c4b2b3 Binary files /dev/null and b/Tiles/LeviathanMusicbox.png differ diff --git a/Tiles/PerforatorMusicbox.cs b/Tiles/PerforatorMusicbox.cs new file mode 100644 index 0000000..7368b5d --- /dev/null +++ b/Tiles/PerforatorMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class PerforatorMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("PerforatorMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("PerforatorMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/PerforatorMusicbox.png b/Tiles/PerforatorMusicbox.png new file mode 100644 index 0000000..d0181bf Binary files /dev/null and b/Tiles/PerforatorMusicbox.png differ diff --git a/Tiles/PlaguebringerMusicbox.cs b/Tiles/PlaguebringerMusicbox.cs new file mode 100644 index 0000000..0e89c8b --- /dev/null +++ b/Tiles/PlaguebringerMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class PlaguebringerMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("PlaguebringerMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("PlaguebringerMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/PlaguebringerMusicbox.png b/Tiles/PlaguebringerMusicbox.png new file mode 100644 index 0000000..aca89d5 Binary files /dev/null and b/Tiles/PlaguebringerMusicbox.png differ diff --git a/Tiles/PlanetoidMusicBox.png b/Tiles/PlanetoidMusicBox.png new file mode 100644 index 0000000..d5e5fe6 Binary files /dev/null and b/Tiles/PlanetoidMusicBox.png differ diff --git a/Tiles/PolterghastMusicbox.cs b/Tiles/PolterghastMusicbox.cs new file mode 100644 index 0000000..dd73ca0 --- /dev/null +++ b/Tiles/PolterghastMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class PolterghastMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("PolterghastMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("PolterghastMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/PolterghastMusicbox.png b/Tiles/PolterghastMusicbox.png new file mode 100644 index 0000000..9d0c758 Binary files /dev/null and b/Tiles/PolterghastMusicbox.png differ diff --git a/Tiles/ProfanedGuardianMusicbox.cs b/Tiles/ProfanedGuardianMusicbox.cs new file mode 100644 index 0000000..c0225c2 --- /dev/null +++ b/Tiles/ProfanedGuardianMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class ProfanedGuardianMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("ProfanedGuardianMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("ProfanedGuardianMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/ProfanedGuardianMusicbox.png b/Tiles/ProfanedGuardianMusicbox.png new file mode 100644 index 0000000..2392df1 Binary files /dev/null and b/Tiles/ProfanedGuardianMusicbox.png differ diff --git a/Tiles/ProvidenceMusicbox.cs b/Tiles/ProvidenceMusicbox.cs new file mode 100644 index 0000000..c377d8c --- /dev/null +++ b/Tiles/ProvidenceMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class ProvidenceMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("ProvidenceMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("ProvidenceMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/ProvidenceMusicbox.png b/Tiles/ProvidenceMusicbox.png new file mode 100644 index 0000000..79b332f Binary files /dev/null and b/Tiles/ProvidenceMusicbox.png differ diff --git a/Tiles/RavagerMusicbox.cs b/Tiles/RavagerMusicbox.cs new file mode 100644 index 0000000..18c3ef7 --- /dev/null +++ b/Tiles/RavagerMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class RavagerMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("RavagerMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("RavagerMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/RavagerMusicbox.png b/Tiles/RavagerMusicbox.png new file mode 100644 index 0000000..2fdbee2 Binary files /dev/null and b/Tiles/RavagerMusicbox.png differ diff --git a/Tiles/SCalAMusicbox.cs b/Tiles/SCalAMusicbox.cs new file mode 100644 index 0000000..cc2e467 --- /dev/null +++ b/Tiles/SCalAMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class SCalAMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("SCalAMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("SCalAMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/SCalAMusicbox.png b/Tiles/SCalAMusicbox.png new file mode 100644 index 0000000..3bdf7ec Binary files /dev/null and b/Tiles/SCalAMusicbox.png differ diff --git a/Tiles/SCalEMusicbox.cs b/Tiles/SCalEMusicbox.cs new file mode 100644 index 0000000..87d1575 --- /dev/null +++ b/Tiles/SCalEMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class SCalEMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("SCalEMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("SCalEMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/SCalEMusicbox.png b/Tiles/SCalEMusicbox.png new file mode 100644 index 0000000..ecdc7cd Binary files /dev/null and b/Tiles/SCalEMusicbox.png differ diff --git a/Tiles/SCalGMusicbox.cs b/Tiles/SCalGMusicbox.cs new file mode 100644 index 0000000..e31a415 --- /dev/null +++ b/Tiles/SCalGMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class SCalGMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("SCalGMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("SCalGMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/SCalGMusicbox.png b/Tiles/SCalGMusicbox.png new file mode 100644 index 0000000..4870772 Binary files /dev/null and b/Tiles/SCalGMusicbox.png differ diff --git a/Tiles/SCalLMusicbox.cs b/Tiles/SCalLMusicbox.cs new file mode 100644 index 0000000..e0bb988 --- /dev/null +++ b/Tiles/SCalLMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class SCalLMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("SCalLMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("SCalLMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/SCalLMusicbox.png b/Tiles/SCalLMusicbox.png new file mode 100644 index 0000000..c16f524 Binary files /dev/null and b/Tiles/SCalLMusicbox.png differ diff --git a/Tiles/SignusMusicbox.cs b/Tiles/SignusMusicbox.cs new file mode 100644 index 0000000..bbc1293 --- /dev/null +++ b/Tiles/SignusMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class SignusMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("SignusMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("SignusMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/SignusMusicbox.png b/Tiles/SignusMusicbox.png new file mode 100644 index 0000000..79728d7 Binary files /dev/null and b/Tiles/SignusMusicbox.png differ diff --git a/Tiles/SirenIdleMusicbox.cs b/Tiles/SirenIdleMusicbox.cs new file mode 100644 index 0000000..53a3353 --- /dev/null +++ b/Tiles/SirenIdleMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class SirenIdleMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("SirenIdleMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("SirenIdleMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/SirenIdleMusicbox.png b/Tiles/SirenIdleMusicbox.png new file mode 100644 index 0000000..7f243dc Binary files /dev/null and b/Tiles/SirenIdleMusicbox.png differ diff --git a/Tiles/SirenMusicbox.cs b/Tiles/SirenMusicbox.cs new file mode 100644 index 0000000..19ccb17 --- /dev/null +++ b/Tiles/SirenMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class SirenMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("SirenMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("SirenMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/SirenMusicbox.png b/Tiles/SirenMusicbox.png new file mode 100644 index 0000000..6f71f24 Binary files /dev/null and b/Tiles/SirenMusicbox.png differ diff --git a/Tiles/SlimeGodMusicbox.cs b/Tiles/SlimeGodMusicbox.cs new file mode 100644 index 0000000..27ad598 --- /dev/null +++ b/Tiles/SlimeGodMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class SlimeGodMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("SlimeGodMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("SlimeGodMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/SlimeGodMusicbox.png b/Tiles/SlimeGodMusicbox.png new file mode 100644 index 0000000..767519c Binary files /dev/null and b/Tiles/SlimeGodMusicbox.png differ diff --git a/Tiles/StormWeaverMusicbox.cs b/Tiles/StormWeaverMusicbox.cs new file mode 100644 index 0000000..ef676e6 --- /dev/null +++ b/Tiles/StormWeaverMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class StormWeaverMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("StormWeaverMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("StormWeaverMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/StormWeaverMusicbox.png b/Tiles/StormWeaverMusicbox.png new file mode 100644 index 0000000..2e719ce Binary files /dev/null and b/Tiles/StormWeaverMusicbox.png differ diff --git a/Tiles/SulphurousMusicbox.cs b/Tiles/SulphurousMusicbox.cs new file mode 100644 index 0000000..497f19e --- /dev/null +++ b/Tiles/SulphurousMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class SulphurousMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("SulphurousMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("SulphurousMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/SulphurousMusicbox.png b/Tiles/SulphurousMusicbox.png new file mode 100644 index 0000000..92366b8 Binary files /dev/null and b/Tiles/SulphurousMusicbox.png differ diff --git a/Tiles/SunkenSeaMusicbox.cs b/Tiles/SunkenSeaMusicbox.cs new file mode 100644 index 0000000..2ada5a7 --- /dev/null +++ b/Tiles/SunkenSeaMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class SunkenSeaMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("SunkenSeaMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("SunkenSeaMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/SunkenSeaMusicbox.png b/Tiles/SunkenSeaMusicbox.png new file mode 100644 index 0000000..68bebf1 Binary files /dev/null and b/Tiles/SunkenSeaMusicbox.png differ diff --git a/Tiles/VoidMusicbox.cs b/Tiles/VoidMusicbox.cs new file mode 100644 index 0000000..33681ba --- /dev/null +++ b/Tiles/VoidMusicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class VoidMusicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("VoidMusicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("VoidMusicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/VoidMusicbox.png b/Tiles/VoidMusicbox.png new file mode 100644 index 0000000..8f1c7f7 Binary files /dev/null and b/Tiles/VoidMusicbox.png differ diff --git a/Tiles/Yharon1Musicbox.cs b/Tiles/Yharon1Musicbox.cs new file mode 100644 index 0000000..5e37054 --- /dev/null +++ b/Tiles/Yharon1Musicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class Yharon1Musicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("Yharon1Musicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("Yharon1Musicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/Yharon1Musicbox.png b/Tiles/Yharon1Musicbox.png new file mode 100644 index 0000000..31f937b Binary files /dev/null and b/Tiles/Yharon1Musicbox.png differ diff --git a/Tiles/Yharon2Musicbox.cs b/Tiles/Yharon2Musicbox.cs new file mode 100644 index 0000000..e65326a --- /dev/null +++ b/Tiles/Yharon2Musicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class Yharon2Musicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("Yharon2Musicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("Yharon2Musicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/Yharon2Musicbox.png b/Tiles/Yharon2Musicbox.png new file mode 100644 index 0000000..34a1877 Binary files /dev/null and b/Tiles/Yharon2Musicbox.png differ diff --git a/Tiles/Yharon3Musicbox.cs b/Tiles/Yharon3Musicbox.cs new file mode 100644 index 0000000..232aca7 --- /dev/null +++ b/Tiles/Yharon3Musicbox.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.DataStructures; + +namespace CalamityModMusic.Tiles +{ + public class Yharon3Musicbox : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.DrawYOffset = 2; + TileObjectData.addTile(Type); + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Music Box"); + AddMapEntry(new Color(200, 200, 200), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType("Yharon3Musicbox")); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("Yharon3Musicbox"); + } + } +} \ No newline at end of file diff --git a/Tiles/Yharon3Musicbox.png b/Tiles/Yharon3Musicbox.png new file mode 100644 index 0000000..5ff86ba Binary files /dev/null and b/Tiles/Yharon3Musicbox.png differ diff --git a/build.txt b/build.txt new file mode 100644 index 0000000..4aeb440 --- /dev/null +++ b/build.txt @@ -0,0 +1,8 @@ +author = MountainDrew +version = 1.4.2.001 +displayName = Calamity Mod Music +homepage = https://forums.terraria.org/index.php?threads/calamity-mod.44065/ +hideCode = true +hideResources = true +includeSource = false +includePDB = false \ No newline at end of file diff --git a/description.txt b/description.txt new file mode 100644 index 0000000..66ac9b5 --- /dev/null +++ b/description.txt @@ -0,0 +1 @@ +Music for the Calamity Mod \ No newline at end of file diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..9ba4359 Binary files /dev/null and b/icon.png differ