itemdrop removal fixes
This commit is contained in:
1 parent
63869014f9
commit
dd55be6cda
29 files changed
+33
-39
No files matched your search
@@ -17,8 +17,7 @@ namespace CalamityMod.Tiles.Abyss
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(29, 37, 58), CalamityUtils.GetItemName<AbyssShellFossil>());
|
||||
DustType = 33;
|
||||
|
||||
ItemDrop = ModContent.ItemType<AbyssShellFossil>();
|
||||
RegisterItemDrop(ModContent.ItemType<AbyssShellFossil>());
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
|
||||
@@ -19,7 +19,6 @@ namespace CalamityMod.Tiles.Abyss
|
||||
AddMapEntry(new Color(0, 150, 200), CalamityUtils.GetItemName<Lumenyl>());
|
||||
HitSound = SoundID.Item27;
|
||||
DustType = 67;
|
||||
ItemDrop = ModContent.ItemType<Lumenyl>();
|
||||
Main.tileSpelunker[Type] = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
CalamityUtils.SetMerge(Type, TileID.CrimsonGrass);
|
||||
|
||||
DustType = ModContent.DustType<AstralBasic>();
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.AstralDirt>();
|
||||
RegisterItemDrop(ModContent.ItemType<AstralDirt>());
|
||||
|
||||
AddMapEntry(new Color(133, 109, 140));
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.Crags
|
||||
HitSound = SoundID.Dig;
|
||||
MineResist = 1f;
|
||||
MinPick = 100;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.ScorchedRemains>();
|
||||
RegisterItemDrop(ModContent.ItemType<Items.Placeables.ScorchedRemains>());
|
||||
AddMapEntry(new Color(212, 82, 227));
|
||||
|
||||
TileFraming.SetUpUniversalMerge(Type, ModContent.TileType<BrimstoneSlag>(), out tileAdjacency);
|
||||
|
||||
@@ -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<Items.Placeables.ScorchedBone>();
|
||||
RegisterItemDrop(ModContent.ItemType<ScorchedBone>());
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.OpenDoor };
|
||||
DustType = 8;
|
||||
ItemDrop = ModContent.ItemType<AgedLaboratoryDoorItem>();
|
||||
RegisterItemDrop(ModContent.ItemType<AgedLaboratoryDoorItem>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<AgedLaboratoryDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -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<PowerCellFactoryItem>();
|
||||
|
||||
RegisterItemDrop(ModContent.ItemType<PowerCellFactoryItem>());
|
||||
}
|
||||
|
||||
public override bool CanExplode(int i, int j) => false;
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.DraedonStructures
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.OpenDoor };
|
||||
DustType = 8;
|
||||
ItemDrop = ModContent.ItemType<LaboratoryDoorItem>();
|
||||
RegisterItemDrop(ModContent.ItemType<LaboratoryDoorItem>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<LaboratoryDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -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<OnyxExcavatorKey>();
|
||||
RegisterItemDrop(ModContent.ItemType<OnyxExcavatorKey>());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -45,8 +45,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(43, 19, 42), CalamityUtils.GetItemName<Items.Placeables.Furniture.CraftingStations.AltarOfTheAccursedItem>());
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
|
||||
ItemDrop = ModContent.ItemType<AltarOfTheAccursedItem>();
|
||||
RegisterItemDrop(ModContent.ItemType<AltarOfTheAccursedItem>());
|
||||
}
|
||||
|
||||
public override bool CanExplode(int i, int j) => false;
|
||||
|
||||
@@ -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<AbyssDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<AbyssDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<AbyssDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureAcidwood
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen();
|
||||
ItemDrop = ModContent.ItemType<AcidwoodDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<AcidwoodDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<AcidwoodDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -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<AncientDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<AncientDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<AncientDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -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<AshenDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<AshenDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<AshenDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Tiles.FurnitureBotanic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen(true);
|
||||
ItemDrop = ModContent.ItemType<BotanicDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<BotanicDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<BotanicDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen(true);
|
||||
ItemDrop = ModContent.ItemType<CosmiliteDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<CosmiliteDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<CosmiliteDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen();
|
||||
ItemDrop = ModContent.ItemType<EutrophicDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<EutrophicDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<EutrophicDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.FurnitureExo
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
AdjTiles = new int[] { TileID.OpenDoor };
|
||||
DustType = 8;
|
||||
ItemDrop = ModContent.ItemType<ExoDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<ExoDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<ExoDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureMonolith
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen(true);
|
||||
ItemDrop = ModContent.ItemType<MonolithDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<MonolithDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<MonolithDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.FurnitureOtherworldly
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen(true);
|
||||
ItemDrop = ModContent.ItemType<OtherworldlyDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<OtherworldlyDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<OtherworldlyDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen(true);
|
||||
ItemDrop = ModContent.ItemType<PlaguedPlateDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<PlaguedPlateDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<PlaguedPlateDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen(true);
|
||||
ItemDrop = ModContent.ItemType<ProfanedDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<ProfanedDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<ProfanedDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureSacrilegious
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen(true);
|
||||
ItemDrop = ModContent.ItemType<SacrilegiousDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<SacrilegiousDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<SacrilegiousDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Tiles.FurnitureSilva
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen(true);
|
||||
ItemDrop = ModContent.ItemType<SilvaDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<SilvaDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<SilvaDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureStatigel
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen();
|
||||
ItemDrop = ModContent.ItemType<StatigelDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<StatigelDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<StatigelDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureStratus
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen(true);
|
||||
ItemDrop = ModContent.ItemType<StratusDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<StratusDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<StratusDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureVoid
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.SetUpDoorOpen(true);
|
||||
ItemDrop = ModContent.ItemType<VoidDoor>();
|
||||
RegisterItemDrop(ModContent.ItemType<VoidDoor>());
|
||||
TileID.Sets.CloseDoorID[Type] = ModContent.TileType<VoidDoorClosed>();
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -21,8 +21,7 @@ namespace CalamityMod.Tiles
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(240, 77, 7), CalamityUtils.GetItemName<Roxcalibur>());
|
||||
TileID.Sets.DisableSmartCursor[Type] = true;
|
||||
|
||||
ItemDrop = ModContent.ItemType<Roxcalibur>();
|
||||
RegisterItemDrop(ModContent.ItemType<Roxcalibur>());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,6 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
AddMapEntry(new Color(0, 150, 200), CalamityUtils.GetItemName<PrismShard>());
|
||||
HitSound = SoundID.Item27;
|
||||
DustType = 67;
|
||||
ItemDrop = ModContent.ItemType<PrismShard>();
|
||||
Main.tileSpelunker[Type] = true;
|
||||
MinPick = 55;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user