From dd55be6cda4b2aa874937cf659ecc0588b387ce4 Mon Sep 17 00:00:00 2001 From: GinYuH <> Date: Fri, 19 May 2023 02:05:16 -0700 Subject: [PATCH] itemdrop removal fixes --- Tiles/Abyss/AbyssFossilTile.cs | 3 +-- Tiles/Abyss/LumenylCrystals.cs | 1 - Tiles/Astral/AstralGrass.cs | 2 +- Tiles/Crags/ScorchedRemainsGrass.cs | 2 +- Tiles/Crags/Tree/SpineTree.cs | 2 +- Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs | 2 +- Tiles/DraedonStructures/InactivePowerCellFactory.cs | 6 +++--- Tiles/DraedonStructures/LaboratoryDoorOpen.cs | 2 +- Tiles/DraedonStructures/OnyxExcavatorTile.cs | 5 ++--- Tiles/Furniture/CraftingStations/SCalAltar.cs | 3 +-- Tiles/FurnitureAbyss/AbyssDoorOpen.cs | 4 ++-- Tiles/FurnitureAcidwood/AcidwoodDoorOpen.cs | 2 +- Tiles/FurnitureAncient/AncientDoorOpen.cs | 4 ++-- Tiles/FurnitureAshen/AshenDoorOpen.cs | 4 ++-- Tiles/FurnitureBotanic/BotanicDoorOpen.cs | 2 +- Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs | 2 +- Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs | 2 +- Tiles/FurnitureExo/ExoDoorOpen.cs | 2 +- Tiles/FurnitureMonolith/MonolithDoorOpen.cs | 2 +- Tiles/FurnitureOtherworldly/OtherworldlyDoorOpen.cs | 2 +- Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs | 2 +- Tiles/FurnitureProfaned/ProfanedDoorOpen.cs | 2 +- Tiles/FurnitureSacrilegious/SacrilegiousDoorOpen.cs | 2 +- Tiles/FurnitureSilva/SilvaDoorOpen.cs | 2 +- Tiles/FurnitureStatigel/StatigelDoorOpen.cs | 2 +- Tiles/FurnitureStratus/StratusDoorOpen.cs | 2 +- Tiles/FurnitureVoid/VoidDoorOpen.cs | 2 +- Tiles/RoxTile.cs | 3 +-- Tiles/SunkenSea/SeaPrismCrystals.cs | 1 - 29 files changed, 33 insertions(+), 39 deletions(-) diff --git a/Tiles/Abyss/AbyssFossilTile.cs b/Tiles/Abyss/AbyssFossilTile.cs index b4a5aadbe3..ebdad93c85 100644 --- a/Tiles/Abyss/AbyssFossilTile.cs +++ b/Tiles/Abyss/AbyssFossilTile.cs @@ -17,8 +17,7 @@ namespace CalamityMod.Tiles.Abyss TileObjectData.addTile(Type); AddMapEntry(new Color(29, 37, 58), CalamityUtils.GetItemName()); DustType = 33; - - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); } public override void NumDust(int i, int j, bool fail, ref int num) diff --git a/Tiles/Abyss/LumenylCrystals.cs b/Tiles/Abyss/LumenylCrystals.cs index 331a0770dd..2e826178c9 100644 --- a/Tiles/Abyss/LumenylCrystals.cs +++ b/Tiles/Abyss/LumenylCrystals.cs @@ -19,7 +19,6 @@ namespace CalamityMod.Tiles.Abyss AddMapEntry(new Color(0, 150, 200), CalamityUtils.GetItemName()); HitSound = SoundID.Item27; DustType = 67; - ItemDrop = ModContent.ItemType(); Main.tileSpelunker[Type] = true; } diff --git a/Tiles/Astral/AstralGrass.cs b/Tiles/Astral/AstralGrass.cs index cd9b2ed511..b78b7212ec 100644 --- a/Tiles/Astral/AstralGrass.cs +++ b/Tiles/Astral/AstralGrass.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.Astral CalamityUtils.SetMerge(Type, TileID.CrimsonGrass); DustType = ModContent.DustType(); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); AddMapEntry(new Color(133, 109, 140)); diff --git a/Tiles/Crags/ScorchedRemainsGrass.cs b/Tiles/Crags/ScorchedRemainsGrass.cs index 6885311858..bec80d76b1 100644 --- a/Tiles/Crags/ScorchedRemainsGrass.cs +++ b/Tiles/Crags/ScorchedRemainsGrass.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.Crags HitSound = SoundID.Dig; MineResist = 1f; MinPick = 100; - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); AddMapEntry(new Color(212, 82, 227)); TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out tileAdjacency); diff --git a/Tiles/Crags/Tree/SpineTree.cs b/Tiles/Crags/Tree/SpineTree.cs index ae316bf2fe..d63d339a54 100644 --- a/Tiles/Crags/Tree/SpineTree.cs +++ b/Tiles/Crags/Tree/SpineTree.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.Crags.Tree AddMapEntry(new Color(38, 25, 27), CreateMapEntryName()); DustType = 155; HitSound = SoundID.DD2_SkeletonHurt; - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); } public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) diff --git a/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs b/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs index dce92d5c50..1cfca45934 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; DustType = 8; - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/DraedonStructures/InactivePowerCellFactory.cs b/Tiles/DraedonStructures/InactivePowerCellFactory.cs index 74f7e89553..0a01eceb22 100644 --- a/Tiles/DraedonStructures/InactivePowerCellFactory.cs +++ b/Tiles/DraedonStructures/InactivePowerCellFactory.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.DraedonStructures; +using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -33,8 +33,8 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.LavaDeath = false; TileObjectData.addTile(Type); AddMapEntry(new Color(67, 72, 81), CreateMapEntryName()); - - ItemDrop = ModContent.ItemType(); + + RegisterItemDrop(ModContent.ItemType()); } public override bool CanExplode(int i, int j) => false; diff --git a/Tiles/DraedonStructures/LaboratoryDoorOpen.cs b/Tiles/DraedonStructures/LaboratoryDoorOpen.cs index 0998b86dee..48908409b4 100644 --- a/Tiles/DraedonStructures/LaboratoryDoorOpen.cs +++ b/Tiles/DraedonStructures/LaboratoryDoorOpen.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; DustType = 8; - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/DraedonStructures/OnyxExcavatorTile.cs b/Tiles/DraedonStructures/OnyxExcavatorTile.cs index 0aee4f60aa..5bd3009d0e 100644 --- a/Tiles/DraedonStructures/OnyxExcavatorTile.cs +++ b/Tiles/DraedonStructures/OnyxExcavatorTile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items.Mounts; using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; @@ -28,8 +28,7 @@ namespace CalamityMod.Tiles.DraedonStructures TileObjectData.newTile.DrawYOffset = 2; TileObjectData.addTile(Type); AddMapEntry(new Color(128, 0, 128), CreateMapEntryName()); - - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); } } } diff --git a/Tiles/Furniture/CraftingStations/SCalAltar.cs b/Tiles/Furniture/CraftingStations/SCalAltar.cs index 080d092476..33c2e44dd9 100644 --- a/Tiles/Furniture/CraftingStations/SCalAltar.cs +++ b/Tiles/Furniture/CraftingStations/SCalAltar.cs @@ -45,8 +45,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations TileObjectData.addTile(Type); AddMapEntry(new Color(43, 19, 42), CalamityUtils.GetItemName()); TileID.Sets.DisableSmartCursor[Type] = true; - - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); } public override bool CanExplode(int i, int j) => false; diff --git a/Tiles/FurnitureAbyss/AbyssDoorOpen.cs b/Tiles/FurnitureAbyss/AbyssDoorOpen.cs index f53f961c81..5537cb8be4 100644 --- a/Tiles/FurnitureAbyss/AbyssDoorOpen.cs +++ b/Tiles/FurnitureAbyss/AbyssDoorOpen.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.FurnitureAbyss; +using CalamityMod.Items.Placeables.FurnitureAbyss; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureAcidwood/AcidwoodDoorOpen.cs b/Tiles/FurnitureAcidwood/AcidwoodDoorOpen.cs index 3e94e62200..c45bf519d3 100644 --- a/Tiles/FurnitureAcidwood/AcidwoodDoorOpen.cs +++ b/Tiles/FurnitureAcidwood/AcidwoodDoorOpen.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood public override void SetStaticDefaults() { this.SetUpDoorOpen(); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureAncient/AncientDoorOpen.cs b/Tiles/FurnitureAncient/AncientDoorOpen.cs index ddd5115568..164984c8de 100644 --- a/Tiles/FurnitureAncient/AncientDoorOpen.cs +++ b/Tiles/FurnitureAncient/AncientDoorOpen.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.FurnitureAncient; +using CalamityMod.Items.Placeables.FurnitureAncient; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureAncient public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureAshen/AshenDoorOpen.cs b/Tiles/FurnitureAshen/AshenDoorOpen.cs index 40cd40ea6f..6bd626063e 100644 --- a/Tiles/FurnitureAshen/AshenDoorOpen.cs +++ b/Tiles/FurnitureAshen/AshenDoorOpen.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.FurnitureAshen; +using CalamityMod.Items.Placeables.FurnitureAshen; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureAshen public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureBotanic/BotanicDoorOpen.cs b/Tiles/FurnitureBotanic/BotanicDoorOpen.cs index 02e97f559d..dd63d58f5c 100644 --- a/Tiles/FurnitureBotanic/BotanicDoorOpen.cs +++ b/Tiles/FurnitureBotanic/BotanicDoorOpen.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs b/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs index 1f9d524e04..8806f79871 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteDoorOpen.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs b/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs index 5d2c71cad6..14c0539bb6 100644 --- a/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs +++ b/Tiles/FurnitureEutrophic/EutrophicDoorOpen.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic public override void SetStaticDefaults() { this.SetUpDoorOpen(); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureExo/ExoDoorOpen.cs b/Tiles/FurnitureExo/ExoDoorOpen.cs index 345a8133f8..49d4c6164c 100644 --- a/Tiles/FurnitureExo/ExoDoorOpen.cs +++ b/Tiles/FurnitureExo/ExoDoorOpen.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.FurnitureExo TileID.Sets.DisableSmartCursor[Type] = true; AdjTiles = new int[] { TileID.OpenDoor }; DustType = 8; - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureMonolith/MonolithDoorOpen.cs b/Tiles/FurnitureMonolith/MonolithDoorOpen.cs index d40ed8a217..0990a062ef 100644 --- a/Tiles/FurnitureMonolith/MonolithDoorOpen.cs +++ b/Tiles/FurnitureMonolith/MonolithDoorOpen.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureMonolith public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureOtherworldly/OtherworldlyDoorOpen.cs b/Tiles/FurnitureOtherworldly/OtherworldlyDoorOpen.cs index f60e32872c..bd5081c577 100644 --- a/Tiles/FurnitureOtherworldly/OtherworldlyDoorOpen.cs +++ b/Tiles/FurnitureOtherworldly/OtherworldlyDoorOpen.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureOtherworldly public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs index 40315f7917..35272db373 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateDoorOpen.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs b/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs index 2754e688ac..5bca5e32fa 100644 --- a/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs +++ b/Tiles/FurnitureProfaned/ProfanedDoorOpen.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureSacrilegious/SacrilegiousDoorOpen.cs b/Tiles/FurnitureSacrilegious/SacrilegiousDoorOpen.cs index 335b2c4f0a..7b50665bb0 100644 --- a/Tiles/FurnitureSacrilegious/SacrilegiousDoorOpen.cs +++ b/Tiles/FurnitureSacrilegious/SacrilegiousDoorOpen.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureSacrilegious public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureSilva/SilvaDoorOpen.cs b/Tiles/FurnitureSilva/SilvaDoorOpen.cs index bcedb30e22..9bfba9044f 100644 --- a/Tiles/FurnitureSilva/SilvaDoorOpen.cs +++ b/Tiles/FurnitureSilva/SilvaDoorOpen.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Tiles.FurnitureSilva public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureStatigel/StatigelDoorOpen.cs b/Tiles/FurnitureStatigel/StatigelDoorOpen.cs index 1a9db6c406..ff891eff62 100644 --- a/Tiles/FurnitureStatigel/StatigelDoorOpen.cs +++ b/Tiles/FurnitureStatigel/StatigelDoorOpen.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel public override void SetStaticDefaults() { this.SetUpDoorOpen(); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureStratus/StratusDoorOpen.cs b/Tiles/FurnitureStratus/StratusDoorOpen.cs index 71137ac1f6..b33e67c0a1 100644 --- a/Tiles/FurnitureStratus/StratusDoorOpen.cs +++ b/Tiles/FurnitureStratus/StratusDoorOpen.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureStratus public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/FurnitureVoid/VoidDoorOpen.cs b/Tiles/FurnitureVoid/VoidDoorOpen.cs index a4576b37ac..b93432ac6c 100644 --- a/Tiles/FurnitureVoid/VoidDoorOpen.cs +++ b/Tiles/FurnitureVoid/VoidDoorOpen.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureVoid public override void SetStaticDefaults() { this.SetUpDoorOpen(true); - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); } diff --git a/Tiles/RoxTile.cs b/Tiles/RoxTile.cs index 3c71d32a09..585add37ec 100644 --- a/Tiles/RoxTile.cs +++ b/Tiles/RoxTile.cs @@ -21,8 +21,7 @@ namespace CalamityMod.Tiles TileObjectData.addTile(Type); AddMapEntry(new Color(240, 77, 7), CalamityUtils.GetItemName()); TileID.Sets.DisableSmartCursor[Type] = true; - - ItemDrop = ModContent.ItemType(); + RegisterItemDrop(ModContent.ItemType()); } } } diff --git a/Tiles/SunkenSea/SeaPrismCrystals.cs b/Tiles/SunkenSea/SeaPrismCrystals.cs index 518172b806..287132b007 100644 --- a/Tiles/SunkenSea/SeaPrismCrystals.cs +++ b/Tiles/SunkenSea/SeaPrismCrystals.cs @@ -19,7 +19,6 @@ namespace CalamityMod.Tiles.SunkenSea AddMapEntry(new Color(0, 150, 200), CalamityUtils.GetItemName()); HitSound = SoundID.Item27; DustType = 67; - ItemDrop = ModContent.ItemType(); Main.tileSpelunker[Type] = true; MinPick = 55; }