Reverted Blackhand's slick code injection
This commit is contained in:
1 parent
3769ca6f1b
commit
c8c5bca25f
1 file changed
+3
-6
@@ -1,8 +1,6 @@
|
||||
using CalamityMod.Dusts.Furniture;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
@@ -18,7 +16,6 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3);
|
||||
TileObjectData.addTile(Type);
|
||||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Profaned Piano");
|
||||
AddMapEntry(new Color(191, 142, 111), name);
|
||||
@@ -27,7 +24,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 246, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, mod.DustType("ProfanedTileRock"), 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, ModContent.DustType<ProfanedTileRock>(), 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -38,7 +35,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedPiano"));
|
||||
Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType<Items.Placeables.FurnitureProfaned.ProfanedPiano>());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user