Replaces all tabs with spaces everywhere
This commit is contained in:
1 parent
6ed6225770
commit
aa7ad0ceb1
96 files changed
+893
-893
No files matched your search
+311
-311
@@ -60,367 +60,367 @@ using Yharon3Musicbox = CalamityModMusic.Items.Placeables.Yharon3Musicbox;
|
||||
|
||||
namespace CalamityModMusic
|
||||
{
|
||||
public class CalamityModMusic : Mod
|
||||
{
|
||||
public static CalamityModMusic Instance;
|
||||
internal static CalamityMusicConfig Config => CalamityMusicConfig.Instance;
|
||||
public class CalamityModMusic : Mod
|
||||
{
|
||||
public static CalamityModMusic Instance;
|
||||
internal static CalamityMusicConfig Config => CalamityMusicConfig.Instance;
|
||||
|
||||
private bool stopTitleMusic;
|
||||
private ManualResetEvent titleMusicStopped;
|
||||
private bool stopTitleMusic;
|
||||
private ManualResetEvent titleMusicStopped;
|
||||
|
||||
private int customTitleMusicSlot;
|
||||
private int customTitleMusicSlot;
|
||||
|
||||
private void TitleMusicIL(ILContext il)
|
||||
{
|
||||
var c = new ILCursor(il);
|
||||
c.GotoNext(MoveType.After, i => i.MatchLdfld<Main>("newMusic"));
|
||||
c.EmitDelegate<Func<int, int>>(newMusic =>
|
||||
newMusic == MusicID.Title ? customTitleMusicSlot : newMusic);
|
||||
}
|
||||
private void TitleMusicIL(ILContext il)
|
||||
{
|
||||
var c = new ILCursor(il);
|
||||
c.GotoNext(MoveType.After, i => i.MatchLdfld<Main>("newMusic"));
|
||||
c.EmitDelegate<Func<int, int>>(newMusic =>
|
||||
newMusic == MusicID.Title ? customTitleMusicSlot : newMusic);
|
||||
}
|
||||
|
||||
public CalamityModMusic()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
public CalamityModMusic()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// Boss Music - Alphabetised.
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AdultEidolonWyrm"), ModContent.ItemType<AdultEidolonWyrmMusicbox>(), ModContent.TileType<Tiles.AdultEidolonWyrmMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Anahita"), ModContent.ItemType<SirenMusicbox>(), ModContent.TileType<Tiles.SirenMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AnahitaPreboss"), ModContent.ItemType<SirenIdleMusicbox>(), ModContent.TileType<Tiles.SirenIdleMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AquaticScourge"), ModContent.ItemType<AquaticScourgeMusicbox>(), ModContent.TileType<Tiles.AquaticScourgeMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumAureus"), ModContent.ItemType<AstrageldonMusicbox>(), ModContent.TileType<Tiles.AstrageldonMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumDeus"), ModContent.ItemType<AstrumDeusMusicbox>(), ModContent.TileType<Tiles.AstrumDeusMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BrimstoneElemental"), ModContent.ItemType<BrimmyMusicbox>(), ModContent.TileType<Tiles.BrimmyMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Calamitas"), ModContent.ItemType<CalamitasMusicbox>(), ModContent.TileType<Tiles.CalamitasMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Void"), ModContent.ItemType<CeaselessVoidMusicbox>(), ModContent.TileType<Tiles.CeaselessVoidMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Crabulon"), ModContent.ItemType<CrabulonMusicbox>(), ModContent.TileType<Tiles.CrabulonMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Cryogen"), ModContent.ItemType<CryogenMusicbox>(), ModContent.TileType<Tiles.CryogenMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DesertScourge"), ModContent.ItemType<DesertScourgeMusicbox>(), ModContent.TileType<Tiles.DesertScourgeMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DevourerOfGodsP1"), ModContent.ItemType<DoGMusicbox>(), ModContent.TileType<Tiles.DoGMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DevourerOfGodsP2"), ModContent.ItemType<DoGP2Musicbox>(), ModContent.TileType<Tiles.DoGP2Musicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Dragonfolly"), ModContent.ItemType<BumblebirbMusicbox>(), ModContent.TileType<Tiles.BumblebirbMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/ExoMechs"), ModContent.ItemType<ExoMechsMusicboxItem>(), ModContent.TileType<Tiles.ExoMechsMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/HiveMind"), ModContent.ItemType<HiveMindMusicbox>(), ModContent.TileType<Tiles.HiveMindMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/LeviathanAndAnahita"), ModContent.ItemType<LeviathanMusicbox>(), ModContent.TileType<Tiles.LeviathanMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BoomerDuke"), ModContent.ItemType<BoomerDukeMusicbox>(), ModContent.TileType<Tiles.BoomerDukeMusicboxTile>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Perforators"), ModContent.ItemType<PerforatorMusicbox>(), ModContent.TileType<Tiles.PerforatorMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/PlaguebringerGoliath"), ModContent.ItemType<PlaguebringerMusicbox>(), ModContent.TileType<Tiles.PlaguebringerMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Polterghast"), ModContent.ItemType<PolterghastMusicbox>(), ModContent.TileType<Tiles.PolterghastMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Guardians"), ModContent.ItemType<ProfanedGuardianMusicbox>(), ModContent.TileType<Tiles.ProfanedGuardianMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Providence"), ModContent.ItemType<ProvidenceMusicbox>(), ModContent.TileType<Tiles.ProvidenceMusicbox>()); //Seamless
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Ravager"), ModContent.ItemType<RavagerMusicbox>(), ModContent.TileType<Tiles.RavagerMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas1"), ModContent.ItemType<SCalGMusicbox>(), ModContent.TileType<Tiles.SCalGMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas2"), ModContent.ItemType<SCalLMusicbox>(), ModContent.TileType<Tiles.SCalLMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas3"), ModContent.ItemType<SCalEMusicbox>(), ModContent.TileType<Tiles.SCalEMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas4"), ModContent.ItemType<SCalAMusicbox>(), ModContent.TileType<Tiles.SCalAMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Signus"), ModContent.ItemType<SignusMusicbox>(), ModContent.TileType<Tiles.SignusMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SlimeGod"), ModContent.ItemType<SlimeGodMusicbox>(), ModContent.TileType<Tiles.SlimeGodMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Weaver"), ModContent.ItemType<StormWeaverMusicbox>(), ModContent.TileType<Tiles.StormWeaverMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonLegacy"), ModContent.ItemType<Yharon1Musicbox>(), ModContent.TileType<Tiles.Yharon1Musicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonP1"), ModContent.ItemType<Yharon2Musicbox>(), ModContent.TileType<Tiles.Yharon2Musicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonP2"), ModContent.ItemType<Yharon3Musicbox>(), ModContent.TileType<Tiles.Yharon3Musicbox>());
|
||||
public override void Load()
|
||||
{
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// Boss Music - Alphabetised.
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AdultEidolonWyrm"), ModContent.ItemType<AdultEidolonWyrmMusicbox>(), ModContent.TileType<Tiles.AdultEidolonWyrmMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Anahita"), ModContent.ItemType<SirenMusicbox>(), ModContent.TileType<Tiles.SirenMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AnahitaPreboss"), ModContent.ItemType<SirenIdleMusicbox>(), ModContent.TileType<Tiles.SirenIdleMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AquaticScourge"), ModContent.ItemType<AquaticScourgeMusicbox>(), ModContent.TileType<Tiles.AquaticScourgeMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumAureus"), ModContent.ItemType<AstrageldonMusicbox>(), ModContent.TileType<Tiles.AstrageldonMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumDeus"), ModContent.ItemType<AstrumDeusMusicbox>(), ModContent.TileType<Tiles.AstrumDeusMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BrimstoneElemental"), ModContent.ItemType<BrimmyMusicbox>(), ModContent.TileType<Tiles.BrimmyMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Calamitas"), ModContent.ItemType<CalamitasMusicbox>(), ModContent.TileType<Tiles.CalamitasMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Void"), ModContent.ItemType<CeaselessVoidMusicbox>(), ModContent.TileType<Tiles.CeaselessVoidMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Crabulon"), ModContent.ItemType<CrabulonMusicbox>(), ModContent.TileType<Tiles.CrabulonMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Cryogen"), ModContent.ItemType<CryogenMusicbox>(), ModContent.TileType<Tiles.CryogenMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DesertScourge"), ModContent.ItemType<DesertScourgeMusicbox>(), ModContent.TileType<Tiles.DesertScourgeMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DevourerOfGodsP1"), ModContent.ItemType<DoGMusicbox>(), ModContent.TileType<Tiles.DoGMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DevourerOfGodsP2"), ModContent.ItemType<DoGP2Musicbox>(), ModContent.TileType<Tiles.DoGP2Musicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Dragonfolly"), ModContent.ItemType<BumblebirbMusicbox>(), ModContent.TileType<Tiles.BumblebirbMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/ExoMechs"), ModContent.ItemType<ExoMechsMusicboxItem>(), ModContent.TileType<Tiles.ExoMechsMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/HiveMind"), ModContent.ItemType<HiveMindMusicbox>(), ModContent.TileType<Tiles.HiveMindMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/LeviathanAndAnahita"), ModContent.ItemType<LeviathanMusicbox>(), ModContent.TileType<Tiles.LeviathanMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BoomerDuke"), ModContent.ItemType<BoomerDukeMusicbox>(), ModContent.TileType<Tiles.BoomerDukeMusicboxTile>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Perforators"), ModContent.ItemType<PerforatorMusicbox>(), ModContent.TileType<Tiles.PerforatorMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/PlaguebringerGoliath"), ModContent.ItemType<PlaguebringerMusicbox>(), ModContent.TileType<Tiles.PlaguebringerMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Polterghast"), ModContent.ItemType<PolterghastMusicbox>(), ModContent.TileType<Tiles.PolterghastMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Guardians"), ModContent.ItemType<ProfanedGuardianMusicbox>(), ModContent.TileType<Tiles.ProfanedGuardianMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Providence"), ModContent.ItemType<ProvidenceMusicbox>(), ModContent.TileType<Tiles.ProvidenceMusicbox>()); //Seamless
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Ravager"), ModContent.ItemType<RavagerMusicbox>(), ModContent.TileType<Tiles.RavagerMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas1"), ModContent.ItemType<SCalGMusicbox>(), ModContent.TileType<Tiles.SCalGMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas2"), ModContent.ItemType<SCalLMusicbox>(), ModContent.TileType<Tiles.SCalLMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas3"), ModContent.ItemType<SCalEMusicbox>(), ModContent.TileType<Tiles.SCalEMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SupremeCalamitas4"), ModContent.ItemType<SCalAMusicbox>(), ModContent.TileType<Tiles.SCalAMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Signus"), ModContent.ItemType<SignusMusicbox>(), ModContent.TileType<Tiles.SignusMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SlimeGod"), ModContent.ItemType<SlimeGodMusicbox>(), ModContent.TileType<Tiles.SlimeGodMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Weaver"), ModContent.ItemType<StormWeaverMusicbox>(), ModContent.TileType<Tiles.StormWeaverMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonLegacy"), ModContent.ItemType<Yharon1Musicbox>(), ModContent.TileType<Tiles.Yharon1Musicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonP1"), ModContent.ItemType<Yharon2Musicbox>(), ModContent.TileType<Tiles.Yharon2Musicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/YharonP2"), ModContent.ItemType<Yharon3Musicbox>(), ModContent.TileType<Tiles.Yharon3Musicbox>());
|
||||
|
||||
// Biome Music.
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss1"), ModContent.ItemType<HigherAbyssMusicbox>(), ModContent.TileType<Tiles.HigherAbyssMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss2"), ModContent.ItemType<AbyssLowerMusicbox>(), ModContent.TileType<Tiles.AbyssLowerMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss3"), ModContent.ItemType<VoidMusicbox>(), ModContent.TileType<Tiles.VoidMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Astral"), ModContent.ItemType<AstralMusicbox>(), ModContent.TileType<Tiles.AstralMusicbox>()); //Seamless
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstralUnderground"), ModContent.ItemType<AstralUndergroundMusicbox>(), ModContent.TileType<Tiles.AstralUndergroundMusicboxTile>()); //Seamless
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Crag"), ModContent.ItemType<CragMusicbox>(), ModContent.TileType<Tiles.CragMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity"), ModContent.ItemType<CalamityMusicbox>(), ModContent.TileType<Tiles.CalamityMusicbox>()); //Seamless
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SulphurousSea"), ModContent.ItemType<SulphurousMusicbox>(), ModContent.TileType<Tiles.SulphurousMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SunkenSea"), ModContent.ItemType<SunkenSeaMusicbox>(), ModContent.TileType<Tiles.SunkenSeaMusicbox>());
|
||||
// Biome Music.
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss1"), ModContent.ItemType<HigherAbyssMusicbox>(), ModContent.TileType<Tiles.HigherAbyssMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss2"), ModContent.ItemType<AbyssLowerMusicbox>(), ModContent.TileType<Tiles.AbyssLowerMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Abyss3"), ModContent.ItemType<VoidMusicbox>(), ModContent.TileType<Tiles.VoidMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Astral"), ModContent.ItemType<AstralMusicbox>(), ModContent.TileType<Tiles.AstralMusicbox>()); //Seamless
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstralUnderground"), ModContent.ItemType<AstralUndergroundMusicbox>(), ModContent.TileType<Tiles.AstralUndergroundMusicboxTile>()); //Seamless
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Crag"), ModContent.ItemType<CragMusicbox>(), ModContent.TileType<Tiles.CragMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity"), ModContent.ItemType<CalamityMusicbox>(), ModContent.TileType<Tiles.CalamityMusicbox>()); //Seamless
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SulphurousSea"), ModContent.ItemType<SulphurousMusicbox>(), ModContent.TileType<Tiles.SulphurousMusicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/SunkenSea"), ModContent.ItemType<SunkenSeaMusicbox>(), ModContent.TileType<Tiles.SunkenSeaMusicbox>());
|
||||
|
||||
// Event Music.
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AcidRain1"), ModContent.ItemType<AcidRain1Musicbox>(), ModContent.TileType<AcidRain1MusicboxTile>()); //Seamless
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AcidRain2"), ModContent.ItemType<AcidRain2Musicbox>(), ModContent.TileType<AcidRain2MusicboxTile>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier1"), ModContent.ItemType<BossRush1Musicbox>(), ModContent.TileType<BossRushTier1Musicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier2"), ModContent.ItemType<BossRush2Musicbox>(), ModContent.TileType<BossRushTier2Musicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier3"), ModContent.ItemType<BossRush3Musicbox>(), ModContent.TileType<BossRushTier3Musicbox>());
|
||||
//AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier4"), ModContent.ItemType<BossRush4Musicbox>(), ModContent.TileType<BossRushTier4Musicbox>());
|
||||
//AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier5"), ModContent.ItemType<BossRush5Musicbox>(), ModContent.TileType<BossRushTier5Musicbox>());
|
||||
// Event Music.
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AcidRain1"), ModContent.ItemType<AcidRain1Musicbox>(), ModContent.TileType<AcidRain1MusicboxTile>()); //Seamless
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AcidRain2"), ModContent.ItemType<AcidRain2Musicbox>(), ModContent.TileType<AcidRain2MusicboxTile>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier1"), ModContent.ItemType<BossRush1Musicbox>(), ModContent.TileType<BossRushTier1Musicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier2"), ModContent.ItemType<BossRush2Musicbox>(), ModContent.TileType<BossRushTier2Musicbox>());
|
||||
AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier3"), ModContent.ItemType<BossRush3Musicbox>(), ModContent.TileType<BossRushTier3Musicbox>());
|
||||
//AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier4"), ModContent.ItemType<BossRush4Musicbox>(), ModContent.TileType<BossRushTier4Musicbox>());
|
||||
//AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/BossRushTier5"), ModContent.ItemType<BossRush5Musicbox>(), ModContent.TileType<BossRushTier5Musicbox>());
|
||||
|
||||
|
||||
stopTitleMusic = false;
|
||||
titleMusicStopped = new ManualResetEvent(false);
|
||||
}
|
||||
}
|
||||
stopTitleMusic = false;
|
||||
titleMusicStopped = new ManualResetEvent(false);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
IL.Terraria.Main.UpdateAudio -= TitleMusicIL;
|
||||
customTitleMusicSlot = MusicID.Title;
|
||||
Close();
|
||||
titleMusicStopped?.Set();
|
||||
Instance = null;
|
||||
titleMusicStopped = null;
|
||||
}
|
||||
public override void Unload()
|
||||
{
|
||||
IL.Terraria.Main.UpdateAudio -= TitleMusicIL;
|
||||
customTitleMusicSlot = MusicID.Title;
|
||||
Close();
|
||||
titleMusicStopped?.Set();
|
||||
Instance = null;
|
||||
titleMusicStopped = null;
|
||||
}
|
||||
|
||||
private void SetTitleMusic()
|
||||
{
|
||||
if (Config.ReplaceTitleMusic)
|
||||
{
|
||||
customTitleMusicSlot = GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity");
|
||||
IL.Terraria.Main.UpdateAudio += TitleMusicIL;
|
||||
}
|
||||
}
|
||||
private void SetTitleMusic()
|
||||
{
|
||||
if (Config.ReplaceTitleMusic)
|
||||
{
|
||||
customTitleMusicSlot = GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity");
|
||||
IL.Terraria.Main.UpdateAudio += TitleMusicIL;
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostSetupContent()
|
||||
{
|
||||
Mod calamity = ModLoader.GetMod("CalamityMod");
|
||||
Mod bossChecklist = ModLoader.GetMod("BossChecklist");
|
||||
Mod overhaul = ModLoader.GetMod("TerrariaOverhaul");
|
||||
public override void PostSetupContent()
|
||||
{
|
||||
Mod calamity = ModLoader.GetMod("CalamityMod");
|
||||
Mod bossChecklist = ModLoader.GetMod("BossChecklist");
|
||||
Mod overhaul = ModLoader.GetMod("TerrariaOverhaul");
|
||||
|
||||
// Overhaul insists on IL editing Calamity Music Mod to disable our music regardless of player choice in the Calamity music config.
|
||||
// Since it's not worth fighting over this, just don't register the IL hook if Overhaul is loaded.
|
||||
// The config notifies players that they cannot hear Calamity title music if Overhaul is enabled.
|
||||
if(overhaul is null)
|
||||
SetTitleMusic();
|
||||
// Overhaul insists on IL editing Calamity Music Mod to disable our music regardless of player choice in the Calamity music config.
|
||||
// Since it's not worth fighting over this, just don't register the IL hook if Overhaul is loaded.
|
||||
// The config notifies players that they cannot hear Calamity title music if Overhaul is enabled.
|
||||
if(overhaul is null)
|
||||
SetTitleMusic();
|
||||
|
||||
if (calamity != null && bossChecklist != null)
|
||||
{
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Desert Scourge",
|
||||
ModContent.ItemType<DesertScourgeMusicbox>());
|
||||
if (calamity != null && bossChecklist != null)
|
||||
{
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Desert Scourge",
|
||||
ModContent.ItemType<DesertScourgeMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Giant Clam",
|
||||
ModContent.ItemType<SunkenSeaMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Giant Clam",
|
||||
ModContent.ItemType<SunkenSeaMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Crabulon",
|
||||
ModContent.ItemType<CrabulonMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Crabulon",
|
||||
ModContent.ItemType<CrabulonMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Hive Mind",
|
||||
ModContent.ItemType<HiveMindMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Hive Mind",
|
||||
ModContent.ItemType<HiveMindMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"The Perforators",
|
||||
ModContent.ItemType<PerforatorMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"The Perforators",
|
||||
ModContent.ItemType<PerforatorMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Slime God",
|
||||
ModContent.ItemType<SlimeGodMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Slime God",
|
||||
ModContent.ItemType<SlimeGodMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Cryogen",
|
||||
ModContent.ItemType<CryogenMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Cryogen",
|
||||
ModContent.ItemType<CryogenMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Brimstone Elemental",
|
||||
ModContent.ItemType<BrimmyMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Brimstone Elemental",
|
||||
ModContent.ItemType<BrimmyMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Aquatic Scourge",
|
||||
ModContent.ItemType<AquaticScourgeMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Aquatic Scourge",
|
||||
ModContent.ItemType<AquaticScourgeMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Calamitas",
|
||||
ModContent.ItemType<CalamitasMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Calamitas",
|
||||
ModContent.ItemType<CalamitasMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Leviathan",
|
||||
new List<int>() {ModContent.ItemType<LeviathanMusicbox>(), ModContent.ItemType<SirenMusicbox>()});
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Leviathan",
|
||||
new List<int>() {ModContent.ItemType<LeviathanMusicbox>(), ModContent.ItemType<SirenMusicbox>()});
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Astrum Aureus",
|
||||
ModContent.ItemType<AstrageldonMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Astrum Aureus",
|
||||
ModContent.ItemType<AstrageldonMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Plaguebringer Goliath",
|
||||
ModContent.ItemType<PlaguebringerMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Plaguebringer Goliath",
|
||||
ModContent.ItemType<PlaguebringerMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Ravager",
|
||||
ModContent.ItemType<RavagerMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Ravager",
|
||||
ModContent.ItemType<RavagerMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Astrum Deus",
|
||||
ModContent.ItemType<AstrumDeusMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Astrum Deus",
|
||||
ModContent.ItemType<AstrumDeusMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Profaned Guardians",
|
||||
ModContent.ItemType<ProfanedGuardianMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Profaned Guardians",
|
||||
ModContent.ItemType<ProfanedGuardianMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Dragonfolly",
|
||||
ModContent.ItemType<BumblebirbMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Dragonfolly",
|
||||
ModContent.ItemType<BumblebirbMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Providence",
|
||||
ModContent.ItemType<ProvidenceMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Providence",
|
||||
ModContent.ItemType<ProvidenceMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Ceaseless Void",
|
||||
ModContent.ItemType<CeaselessVoidMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Ceaseless Void",
|
||||
ModContent.ItemType<CeaselessVoidMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Storm Weaver",
|
||||
ModContent.ItemType<StormWeaverMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Storm Weaver",
|
||||
ModContent.ItemType<StormWeaverMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Signus",
|
||||
ModContent.ItemType<SignusMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Signus",
|
||||
ModContent.ItemType<SignusMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Polterghast",
|
||||
ModContent.ItemType<PolterghastMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Polterghast",
|
||||
ModContent.ItemType<PolterghastMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Devourer of Gods",
|
||||
new List<int>() {ModContent.ItemType<DoGMusicbox>(), ModContent.ItemType<DoGP2Musicbox>()});
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Devourer of Gods",
|
||||
new List<int>() {ModContent.ItemType<DoGMusicbox>(), ModContent.ItemType<DoGP2Musicbox>()});
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Yharon",
|
||||
new List<int>() {ModContent.ItemType<Yharon2Musicbox>(), ModContent.ItemType<Yharon3Musicbox>()});
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Yharon",
|
||||
new List<int>() {ModContent.ItemType<Yharon2Musicbox>(), ModContent.ItemType<Yharon3Musicbox>()});
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Exo Mechs",
|
||||
new List<int>() { ModContent.ItemType<ExoMechsMusicbox>() });
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Exo Mechs",
|
||||
new List<int>() { ModContent.ItemType<ExoMechsMusicbox>() });
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Supreme Calamitas",
|
||||
new List<int>() {ModContent.ItemType<SCalGMusicbox>(), ModContent.ItemType<SCalLMusicbox>(), ModContent.ItemType<SCalEMusicbox>(), ModContent.ItemType<SCalAMusicbox>()});
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Supreme Calamitas",
|
||||
new List<int>() {ModContent.ItemType<SCalGMusicbox>(), ModContent.ItemType<SCalLMusicbox>(), ModContent.ItemType<SCalEMusicbox>(), ModContent.ItemType<SCalAMusicbox>()});
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Adult Eidolon Wyrm",
|
||||
ModContent.ItemType<AdultEidolonWyrmMusicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Adult Eidolon Wyrm",
|
||||
ModContent.ItemType<AdultEidolonWyrmMusicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Acid Rain",
|
||||
ModContent.ItemType<AcidRain1Musicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Acid Rain",
|
||||
ModContent.ItemType<AcidRain1Musicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Acid Rain (Post-AS)",
|
||||
ModContent.ItemType<AcidRain1Musicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Acid Rain (Post-AS)",
|
||||
ModContent.ItemType<AcidRain1Musicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Acid Rain (Post-Polter)",
|
||||
ModContent.ItemType<AcidRain2Musicbox>());
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Acid Rain (Post-Polter)",
|
||||
ModContent.ItemType<AcidRain2Musicbox>());
|
||||
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Old Duke",
|
||||
ModContent.ItemType<BoomerDukeMusicbox>());
|
||||
}
|
||||
}
|
||||
bossChecklist.Call(
|
||||
"AddToBossCollection",
|
||||
calamity.Name,
|
||||
"Old Duke",
|
||||
ModContent.ItemType<BoomerDukeMusicbox>());
|
||||
}
|
||||
}
|
||||
|
||||
public override void Close()
|
||||
{
|
||||
var slot = GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity");
|
||||
public override void Close()
|
||||
{
|
||||
var slot = GetSoundSlot(SoundType.Music, "Sounds/Music/Calamity");
|
||||
|
||||
if (Main.music.IndexInRange(slot) && Main.music[slot]?.IsPlaying == true)
|
||||
{
|
||||
Main.music[slot].Stop(AudioStopOptions.Immediate);
|
||||
}
|
||||
base.Close();
|
||||
}
|
||||
if (Main.music.IndexInRange(slot) && Main.music[slot]?.IsPlaying == true)
|
||||
{
|
||||
Main.music[slot].Stop(AudioStopOptions.Immediate);
|
||||
}
|
||||
base.Close();
|
||||
}
|
||||
|
||||
public override void UpdateMusic(ref int music, ref MusicPriority priority)
|
||||
{
|
||||
if (stopTitleMusic || (!Main.gameMenu && customTitleMusicSlot != MusicID.Title && Main.ActivePlayerFileData != null && Main.ActiveWorldFileData != null))
|
||||
{
|
||||
if (!stopTitleMusic)
|
||||
{
|
||||
music = MusicID.Title;
|
||||
}
|
||||
public override void UpdateMusic(ref int music, ref MusicPriority priority)
|
||||
{
|
||||
if (stopTitleMusic || (!Main.gameMenu && customTitleMusicSlot != MusicID.Title && Main.ActivePlayerFileData != null && Main.ActiveWorldFileData != null))
|
||||
{
|
||||
if (!stopTitleMusic)
|
||||
{
|
||||
music = MusicID.Title;
|
||||
}
|
||||
|
||||
// prevent our IL hook trying to play the track anymore
|
||||
// we could just remove our IL hook, but then we'd have to save it in a variable. tML removes it for us anyway
|
||||
customTitleMusicSlot = MusicID.Title;
|
||||
// prevent our IL hook trying to play the track anymore
|
||||
// we could just remove our IL hook, but then we'd have to save it in a variable. tML removes it for us anyway
|
||||
customTitleMusicSlot = MusicID.Title;
|
||||
|
||||
// stop the music if it's playing (which it probably is)
|
||||
var m = GetMusic("Sounds/Music/Calamity");
|
||||
if (m.IsPlaying)
|
||||
m.Stop(AudioStopOptions.Immediate);
|
||||
// stop the music if it's playing (which it probably is)
|
||||
var m = GetMusic("Sounds/Music/Calamity");
|
||||
if (m.IsPlaying)
|
||||
m.Stop(AudioStopOptions.Immediate);
|
||||
|
||||
titleMusicStopped.Set();
|
||||
stopTitleMusic = false;
|
||||
}
|
||||
}
|
||||
titleMusicStopped.Set();
|
||||
stopTitleMusic = false;
|
||||
}
|
||||
}
|
||||
|
||||
public override void PreSaveAndQuit()
|
||||
{
|
||||
Mod overhaul = ModLoader.GetMod("TerrariaOverhaul");
|
||||
if(overhaul is null)
|
||||
SetTitleMusic();
|
||||
}
|
||||
public override void PreSaveAndQuit()
|
||||
{
|
||||
Mod overhaul = ModLoader.GetMod("TerrariaOverhaul");
|
||||
if(overhaul is null)
|
||||
SetTitleMusic();
|
||||
}
|
||||
|
||||
internal static void SaveConfig(CalamityMusicConfig CalamityMusicConfig)
|
||||
{
|
||||
// in-game ModConfig saving from mod code is not supported yet in tmodloader, and subject to change, so we need to be extra careful.
|
||||
// This code only supports client configs, and doesn't call onchanged. It also doesn't support ReloadRequired or anything else.
|
||||
MethodInfo saveMethodInfo = typeof(ConfigManager).GetMethod("Save", BindingFlags.Static | BindingFlags.NonPublic);
|
||||
if (saveMethodInfo != null)
|
||||
saveMethodInfo.Invoke(null, new object[] { CalamityMusicConfig });
|
||||
else
|
||||
Instance.Logger.Warn("In-game SaveConfig failed, code update required");
|
||||
}
|
||||
}
|
||||
internal static void SaveConfig(CalamityMusicConfig CalamityMusicConfig)
|
||||
{
|
||||
// in-game ModConfig saving from mod code is not supported yet in tmodloader, and subject to change, so we need to be extra careful.
|
||||
// This code only supports client configs, and doesn't call onchanged. It also doesn't support ReloadRequired or anything else.
|
||||
MethodInfo saveMethodInfo = typeof(ConfigManager).GetMethod("Save", BindingFlags.Static | BindingFlags.NonPublic);
|
||||
if (saveMethodInfo != null)
|
||||
saveMethodInfo.Invoke(null, new object[] { CalamityMusicConfig });
|
||||
else
|
||||
Instance.Logger.Warn("In-game SaveConfig failed, code update required");
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
-15
@@ -3,22 +3,22 @@ using Terraria.ModLoader.Config;
|
||||
|
||||
namespace CalamityModMusic
|
||||
{
|
||||
[Label("Config")]
|
||||
[BackgroundColor(49, 32, 36, 216)]
|
||||
public class CalamityMusicConfig : ModConfig
|
||||
{
|
||||
public static CalamityMusicConfig Instance;
|
||||
public override ConfigScope Mode => ConfigScope.ClientSide;
|
||||
[Label("Config")]
|
||||
[BackgroundColor(49, 32, 36, 216)]
|
||||
public class CalamityMusicConfig : ModConfig
|
||||
{
|
||||
public static CalamityMusicConfig Instance;
|
||||
public override ConfigScope Mode => ConfigScope.ClientSide;
|
||||
|
||||
[Header("Music Changes")]
|
||||
[Header("Music Changes")]
|
||||
|
||||
[Label("Replace Title Music")]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
[ReloadRequired]
|
||||
[Tooltip("Replaces the vanilla Terraria title screen music with 'The Tale of a Cruel World'.\nThis option does nothing if Terraria Overhaul is enabled.\nThis option requires a reload to take effect.")]
|
||||
public bool ReplaceTitleMusic { get; set; }
|
||||
[Label("Replace Title Music")]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
[ReloadRequired]
|
||||
[Tooltip("Replaces the vanilla Terraria title screen music with 'The Tale of a Cruel World'.\nThis option does nothing if Terraria Overhaul is enabled.\nThis option requires a reload to take effect.")]
|
||||
public bool ReplaceTitleMusic { get; set; }
|
||||
|
||||
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref string message) => true;
|
||||
}
|
||||
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref string message) => true;
|
||||
}
|
||||
}
|
||||
@@ -4,10 +4,10 @@ using Terraria.Utilities;
|
||||
|
||||
namespace CalamityModMusic.Items
|
||||
{
|
||||
public class CalamityMusicGlobalItem : GlobalItem
|
||||
{
|
||||
// No items from this mod are capable of receiving reforges.
|
||||
public override bool? PrefixChance(Item item, int pre, UnifiedRandom rand) =>
|
||||
item.modItem != null && item.modItem.mod == CalamityModMusic.Instance ? false : (bool?)null;
|
||||
}
|
||||
public class CalamityMusicGlobalItem : GlobalItem
|
||||
{
|
||||
// No items from this mod are capable of receiving reforges.
|
||||
public override bool? PrefixChance(Item item, int pre, UnifiedRandom rand) =>
|
||||
item.modItem != null && item.modItem.mod == CalamityModMusic.Instance ? false : (bool?)null;
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class AbyssLowerMusicbox : ModItem
|
||||
public class AbyssLowerMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using CalamityModMusic.Tiles;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class AcidRain2Musicbox : ModItem
|
||||
public class AcidRain2Musicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class AdultEidolonWyrmMusicbox : ModItem
|
||||
public class AdultEidolonWyrmMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class AquaticScourgeMusicbox: ModItem
|
||||
public class AquaticScourgeMusicbox: ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class AstrageldonMusicbox : ModItem
|
||||
public class AstrageldonMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class AstralMusicbox : ModItem
|
||||
public class AstralMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class AstrumDeusMusicbox : ModItem
|
||||
public class AstrumDeusMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class BrimmyMusicbox : ModItem
|
||||
public class BrimmyMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class BumblebirbMusicbox : ModItem
|
||||
public class BumblebirbMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class CalamitasMusicbox : ModItem
|
||||
public class CalamitasMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class CalamityMusicbox : ModItem
|
||||
public class CalamityMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class CeaselessVoidMusicbox : ModItem
|
||||
public class CeaselessVoidMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class CrabulonMusicbox : ModItem
|
||||
public class CrabulonMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class CragMusicbox : ModItem
|
||||
public class CragMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class CryogenMusicbox : ModItem
|
||||
public class CryogenMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class DesertScourgeMusicbox : ModItem
|
||||
public class DesertScourgeMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class DoGMusicbox : ModItem
|
||||
public class DoGMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class DoGP2Musicbox : ModItem
|
||||
public class DoGP2Musicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -3,27 +3,27 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class ExoMechsMusicboxItem : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Music Box (Exo Mechs)");
|
||||
}
|
||||
public class ExoMechsMusicboxItem : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Music Box (Exo Mechs)");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.ExoMechsMusicbox>();
|
||||
item.width = 24;
|
||||
item.height = 24;
|
||||
item.rare = ItemRarityID.LightRed;
|
||||
item.value = 100000;
|
||||
item.accessory = true;
|
||||
}
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.ExoMechsMusicbox>();
|
||||
item.width = 24;
|
||||
item.height = 24;
|
||||
item.rare = ItemRarityID.LightRed;
|
||||
item.value = 100000;
|
||||
item.accessory = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class HigherAbyssMusicbox : ModItem
|
||||
public class HigherAbyssMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class HiveMindMusicbox : ModItem
|
||||
public class HiveMindMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class LeviathanMusicbox : ModItem
|
||||
public class LeviathanMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class PerforatorMusicbox : ModItem
|
||||
public class PerforatorMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class PlaguebringerMusicbox : ModItem
|
||||
public class PlaguebringerMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class PolterghastMusicbox : ModItem
|
||||
public class PolterghastMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class ProfanedGuardianMusicbox: ModItem
|
||||
public class ProfanedGuardianMusicbox: ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class ProvidenceMusicbox: ModItem
|
||||
public class ProvidenceMusicbox: ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class RavagerMusicbox: ModItem
|
||||
public class RavagerMusicbox: ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class SCalAMusicbox : ModItem
|
||||
public class SCalAMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class SCalEMusicbox : ModItem
|
||||
public class SCalEMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class SCalGMusicbox : ModItem
|
||||
public class SCalGMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class SCalLMusicbox : ModItem
|
||||
public class SCalLMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class SignusMusicbox : ModItem
|
||||
public class SignusMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class SirenIdleMusicbox : ModItem
|
||||
public class SirenIdleMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class SirenMusicbox : ModItem
|
||||
public class SirenMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class SlimeGodMusicbox : ModItem
|
||||
public class SlimeGodMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class StormWeaverMusicbox : ModItem
|
||||
public class StormWeaverMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class SulphurousMusicbox : ModItem
|
||||
public class SulphurousMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class SunkenSeaMusicbox : ModItem
|
||||
public class SunkenSeaMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class VoidMusicbox : ModItem
|
||||
public class VoidMusicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -3,42 +3,42 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class Yharon1Musicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Music Box (Infernal Catharsis)");
|
||||
}
|
||||
public class Yharon1Musicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Music Box (Infernal Catharsis)");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.useStyle = 1;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.Yharon1Musicbox>();
|
||||
item.width = 24;
|
||||
item.height = 24;
|
||||
item.rare = 4;
|
||||
item.value = 100000;
|
||||
item.accessory = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.useStyle = 1;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.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(ItemID.MusicBox);
|
||||
recipe.AddIngredient(calamityMod.ItemType("DarksunFragment"), 5);
|
||||
recipe.AddIngredient(calamityMod.ItemType("CosmiliteBar"), 3);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddTile(calamityMod.TileType("CosmicAnvil"));
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Mod calamityMod = ModLoader.GetMod("CalamityMod");
|
||||
if (calamityMod != null)
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.MusicBox);
|
||||
recipe.AddIngredient(calamityMod.ItemType("DarksunFragment"), 5);
|
||||
recipe.AddIngredient(calamityMod.ItemType("CosmiliteBar"), 3);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddTile(calamityMod.TileType("CosmicAnvil"));
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,27 +2,27 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class Yharon2Musicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Music Box (Yharon)");
|
||||
}
|
||||
public class Yharon2Musicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Music Box (Yharon)");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.useStyle = 1;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.Yharon2Musicbox>();
|
||||
item.width = 24;
|
||||
item.height = 24;
|
||||
item.rare = 4;
|
||||
item.value = 100000;
|
||||
item.accessory = true;
|
||||
}
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.useStyle = 1;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.Yharon2Musicbox>();
|
||||
item.width = 24;
|
||||
item.height = 24;
|
||||
item.rare = 4;
|
||||
item.value = 100000;
|
||||
item.accessory = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,27 +2,27 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic.Items.Placeables
|
||||
{
|
||||
public class Yharon3Musicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Music Box (Yharon Phase 2)");
|
||||
}
|
||||
public class Yharon3Musicbox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Music Box (Yharon 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 = ModContent.TileType<Tiles.Yharon3Musicbox>();
|
||||
item.width = 24;
|
||||
item.height = 24;
|
||||
item.rare = 4;
|
||||
item.value = 100000;
|
||||
item.accessory = true;
|
||||
}
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.useStyle = 1;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<Tiles.Yharon3Musicbox>();
|
||||
item.width = 24;
|
||||
item.height = 24;
|
||||
item.rare = 4;
|
||||
item.value = 100000;
|
||||
item.accessory = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class AbyssLowerMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class AbyssLowerMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.AbyssLowerMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.AbyssLowerMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -7,10 +7,10 @@ using CalamityModMusic.Items.Placeables;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class AcidRain1MusicboxTile : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class AcidRain1MusicboxTile : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<AcidRain1Musicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<AcidRain1Musicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -7,10 +7,10 @@ using CalamityModMusic.Items.Placeables;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class AcidRain2MusicboxTile : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class AcidRain2MusicboxTile : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<AcidRain2Musicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<AcidRain2Musicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class AdultEidolonWyrmMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class AdultEidolonWyrmMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.AdultEidolonWyrmMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.AdultEidolonWyrmMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class AquaticScourgeMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class AquaticScourgeMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.AquaticScourgeMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.AquaticScourgeMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class AstrageldonMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class AstrageldonMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.AstrageldonMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.AstrageldonMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class AstralMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class AstralMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.AstralMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.AstralMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -7,10 +7,10 @@ using CalamityModMusic.Items.Placeables;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class AstralUndergroundMusicboxTile : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class AstralUndergroundMusicboxTile : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<AstralUndergroundMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<AstralUndergroundMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class AstrumDeusMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class AstrumDeusMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.AstrumDeusMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.AstrumDeusMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -7,10 +7,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class BossRushTier1Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class BossRushTier1Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<BossRushTier1MusicboxItem>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<BossRushTier1MusicboxItem>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -7,10 +7,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class BossRushTier2Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class BossRushTier2Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<BossRushTier2MusicboxItem>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<BossRushTier2MusicboxItem>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -7,10 +7,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class BossRushTier3Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class BossRushTier3Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<BossRushTier3MusicboxItem>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<BossRushTier3MusicboxItem>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -7,10 +7,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class BossRushTier4Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class BossRushTier4Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<BossRushTier4MusicboxItem>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<BossRushTier4MusicboxItem>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -7,10 +7,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class BossRushTier5Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class BossRushTier5Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -24,10 +24,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<BossRushTier5MusicboxItem>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<BossRushTier5MusicboxItem>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class BrimmyMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class BrimmyMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.BrimmyMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.BrimmyMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class BumblebirbMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class BumblebirbMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.BumblebirbMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.BumblebirbMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class CalamitasMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class CalamitasMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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 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)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class CalamityMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class CalamityMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.CalamityMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.CalamityMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class CeaselessVoidMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class CeaselessVoidMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.CeaselessVoidMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.CeaselessVoidMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class CrabulonMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class CrabulonMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.CrabulonMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.CrabulonMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class CragMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class CragMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.CragMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.CragMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class CryogenMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class CryogenMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.CryogenMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.CryogenMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class DesertScourgeMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class DesertScourgeMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.DesertScourgeMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.DesertScourgeMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class DoGMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class DoGMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.DoGMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.DoGMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class DoGP2Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class DoGP2Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.DoGP2Musicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.DoGP2Musicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
+28
-28
@@ -7,34 +7,34 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class ExoMechsMusicbox : 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 class ExoMechsMusicbox : 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, ModContent.ItemType<ExoMechsMusicboxItem>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<ExoMechsMusicboxItem>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
player.noThrow = 2;
|
||||
player.showItemIcon = true;
|
||||
player.showItemIcon2 = ModContent.ItemType<ExoMechsMusicboxItem>();
|
||||
}
|
||||
}
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
player.noThrow = 2;
|
||||
player.showItemIcon = true;
|
||||
player.showItemIcon2 = ModContent.ItemType<ExoMechsMusicboxItem>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class HigherAbyssMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class HigherAbyssMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.HigherAbyssMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.HigherAbyssMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class HiveMindMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class HiveMindMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.HiveMindMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.HiveMindMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class LeviathanMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class LeviathanMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.LeviathanMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.LeviathanMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class PerforatorMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class PerforatorMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.PerforatorMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.PerforatorMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class PlaguebringerMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class PlaguebringerMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.PlaguebringerMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.PlaguebringerMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class PolterghastMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class PolterghastMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.PolterghastMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.PolterghastMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class ProfanedGuardianMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class ProfanedGuardianMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.ProfanedGuardianMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.ProfanedGuardianMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class ProvidenceMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class ProvidenceMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.ProvidenceMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.ProvidenceMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class RavagerMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class RavagerMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.RavagerMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.RavagerMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class SCalAMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class SCalAMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.SCalAMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.SCalAMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class SCalEMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class SCalEMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.SCalEMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.SCalEMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class SCalGMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class SCalGMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.SCalGMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.SCalGMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class SCalLMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class SCalLMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.SCalLMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.SCalLMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class SignusMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class SignusMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.SignusMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.SignusMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class SirenIdleMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class SirenIdleMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.SirenIdleMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.SirenIdleMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class SirenMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class SirenMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.SirenMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.SirenMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class SlimeGodMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class SlimeGodMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.SlimeGodMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.SlimeGodMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class StormWeaverMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class StormWeaverMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.StormWeaverMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.StormWeaverMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class SulphurousMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class SulphurousMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.SulphurousMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.SulphurousMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class SunkenSeaMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class SunkenSeaMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.SunkenSeaMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.SunkenSeaMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class VoidMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class VoidMusicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.VoidMusicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.VoidMusicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class Yharon1Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class Yharon1Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.Yharon1Musicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.Yharon1Musicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class Yharon2Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class Yharon2Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.Yharon2Musicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.Yharon2Musicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@ using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityModMusic.Tiles
|
||||
{
|
||||
public class Yharon3Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public class Yharon3Musicbox : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
@@ -23,10 +23,10 @@ namespace CalamityModMusic.Tiles
|
||||
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, ModContent.ItemType<Items.Placeables.Yharon3Musicbox>());
|
||||
}
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 48, ModContent.ItemType<Items.Placeables.Yharon3Musicbox>());
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user