Implement use of PlaceholderProj and PlaceholderTile
This commit is contained in:
@@ -4,15 +4,20 @@ using Terraria.ID;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria.Localization;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Tiles.CraftingStations
|
||||
{
|
||||
public class HighTechMarvel : ModTile
|
||||
{
|
||||
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderTile";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = false;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
AdjTiles = new int[] {
|
||||
TileID.WorkBenches,
|
||||
TileID.Anvils,
|
||||
@@ -29,8 +34,11 @@ namespace ForgottenWawiTech.Content.Tiles.CraftingStations
|
||||
TileID.LunarCraftingStation
|
||||
|
||||
};
|
||||
AddMapEntry(new Color(150, 50, 250), Language.GetText("High Tech Marvel"));
|
||||
//TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
// Register the object data so TileObjectData lookups succeed.
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
AddMapEntry(new Color(120, 85, 60), Language.GetText("HighTechMarvel"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -4,15 +4,19 @@ using Terraria.ID;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria.Localization;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Tiles.CraftingStations
|
||||
{
|
||||
public class SingularitySealingUnit : ModTile
|
||||
{
|
||||
public override string Texture => "ForgottenWawiTech/Assets/PlaceholderTile"; // 2x2 placeholder tile
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = false;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
AdjTiles = new int[] {
|
||||
TileID.WorkBenches,
|
||||
TileID.Anvils,
|
||||
@@ -27,17 +31,11 @@ namespace ForgottenWawiTech.Content.Tiles.CraftingStations
|
||||
TileID.CrystalBall,
|
||||
TileID.TinkerersWorkbench
|
||||
};
|
||||
AddMapEntry(new Color(150, 50, 250), Language.GetText("SingularitySealingUnitItem"));
|
||||
//TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
// Register the tile's placement data so the loader doesn't throw.
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
AddMapEntry(new Color(120, 85, 60), Language.GetText("SingularitySealingUnit"));
|
||||
}
|
||||
|
||||
|
||||
/* public override void NearbyEffects(int i, int j, bool closer)
|
||||
{
|
||||
if (closer)
|
||||
{
|
||||
Main.LocalPlayer.AddBuff(BuffID.WellFed, 60);
|
||||
}
|
||||
} */
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user