public override void SetDefaults() { TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); TileObjectData.newTile.UsesCustomCanPlace = true; TileObjectData.newTile.StyleHorizontal = true; TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); TileObjectData.newAlternate.Origin = new Point16(0, 1); TileObjectData.addAlternate(0); TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); TileObjectData.newAlternate.Origin = new Point16(0, 2); TileObjectData.addAlternate(0); QuickBlock.QuickSetFurniture(this, 1, 3, dust, SoundID.Dig, false, color); Main.tileBlockLight[Type] = true; Main.tileSolid[Type] = true; Main.tileNoAttach[Type] = true; Main.tileLavaDeath[Type] = true; TileID.Sets.NotReallySolid[Type] = true; TileID.Sets.DrawsWalls[Type] = true; TileID.Sets.HasOutlines[Type] = true; AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor); disableSmartCursor = true; adjTiles = new int[] { TileID.ClosedDoor }; openDoorID = mod.TileType(name.Replace("Closed", "Open")); }
public override void SetDefaults() { TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 2, 0); QuickBlock.QuickSetFurniture(this, 2, 1, dust, SoundID.Dig, false, color); adjTiles = new int[] { TileID.WorkBenches }; AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable); }
public override void SetDefaults() { Main.tileLighted[Type] = true; TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, 1, 0); QuickBlock.QuickSetFurniture(this, 1, 2, dust, SoundID.Dig, false, color); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); }
public override void SetDefaults() { Main.tileLavaDeath[Type] = true; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 2, 0); QuickBlock.QuickSetFurniture(this, 2, 2, dust, SoundID.Dig, false, color); adjTiles = new int[] { TileID.Sinks }; }
public override void SetDefaults() { Main.tileLavaDeath[Type] = true; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 3, 0); TileObjectData.newTile.Origin = new Point16(0, 4); QuickBlock.QuickSetFurniture(this, 3, 4, dust, SoundID.Dig, false, color, true); adjTiles = new int[] { TileID.Bookcases }; }
public override void SetDefaults() { Main.tileLavaDeath[Type] = true; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 3, 0); QuickBlock.QuickSetFurniture(this, 3, 2, dust, SoundID.Dig, false, color, true); adjTiles = new int[] { TileID.Tables }; AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable); }
public override void SetDefaults() { Main.tileLavaDeath[Type] = true; Main.tileLighted[Type] = true; TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, 3, 0); QuickBlock.QuickSetFurniture(this, 3, 3, dust, SoundID.Dig, false, color, Origin: new Point16(1, 1)); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); adjTiles = new int[] { TileID.Chandeliers }; }
public override void SetDefaults() { Main.tileLavaDeath[Type] = true; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 2, 0); TileObjectData.newTile.Origin = new Point16(0, 5); QuickBlock.QuickSetFurniture(this, 2, 5, dust, SoundID.Dig, false, color); TileID.Sets.HasOutlines[Type] = true; disableSmartCursor = true; adjTiles = new int[] { TileID.GrandfatherClocks }; }
public override void SetDefaults() { TileObjectData.newTile.StyleHorizontal = true; TileObjectData.newTile.Direction = TileObjectDirection.PlaceLeft; TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight; TileObjectData.addAlternate(1); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 4, 0); QuickBlock.QuickSetFurniture(this, 4, 2, dust, SoundID.Dig, false, color); }
public override void SetDefaults() { Main.tileLavaDeath[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style4x2); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 4, 0); QuickBlock.QuickSetFurniture(this, 4, 2, dust, SoundID.Dig, false, color); TileID.Sets.HasOutlines[Type] = true; disableSmartCursor = true; adjTiles = new int[] { TileID.Beds }; bed = true; }
public override void SetDefaults() { Main.tileLavaDeath[Type] = true; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 3, 0); QuickBlock.QuickSetFurniture(this, 3, 2, dust, SoundID.Dig, false, color); if (name.Contains("Piano")) { adjTiles = new int[] { TileID.Pianos } } ; } }
public override void SetDefaults() { Main.tileContainer[Type] = true; Main.tileLavaDeath[Type] = true; TileID.Sets.HasOutlines[Type] = true; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 3, 0); TileObjectData.newTile.HookCheck = new PlacementHook(new Func <int, int, int, int, int, int>(Chest.FindEmptyChest), -1, 0, true); TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(new Func <int, int, int, int, int, int>(Chest.AfterPlacement_Hook), -1, 0, false); QuickBlock.QuickSetFurniture(this, 3, 2, dust, SoundID.Dig, false, color); disableSmartCursor = true; adjTiles = new int[] { TileID.Dressers }; dresser = name.Substring(0, name.Length - 7) + " Dresser"; dresserDrop = mod.ItemType(name); }
public override void SetDefaults() { Main.tileLavaDeath[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2xX); TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, 1, 0); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, 1, 0); TileObjectData.newTile.LavaDeath = true; TileObjectData.newTile.StyleHorizontal = true; TileObjectData.newTile.StyleMultiplier = 2; TileObjectData.newTile.StyleWrapLimit = 2; TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight; TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); TileObjectData.newAlternate.Origin = new Point16(0, 1); TileObjectData.addAlternate(0); TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); TileObjectData.newAlternate.Origin = new Point16(0, 2); TileObjectData.addAlternate(0); TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); TileObjectData.newAlternate.Origin = new Point16(1, 0); TileObjectData.newAlternate.AnchorTop = new AnchorData(AnchorType.SolidTile, 1, 1); TileObjectData.newAlternate.AnchorBottom = new AnchorData(AnchorType.SolidTile, 1, 1); TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceLeft; TileObjectData.addAlternate(1); TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); TileObjectData.newAlternate.Origin = new Point16(1, 1); TileObjectData.newAlternate.AnchorTop = new AnchorData(AnchorType.SolidTile, 1, 1); TileObjectData.newAlternate.AnchorBottom = new AnchorData(AnchorType.SolidTile, 1, 1); TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceLeft; TileObjectData.addAlternate(1); TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); TileObjectData.newAlternate.Origin = new Point16(1, 2); TileObjectData.newAlternate.AnchorTop = new AnchorData(AnchorType.SolidTile, 1, 1); TileObjectData.newAlternate.AnchorBottom = new AnchorData(AnchorType.SolidTile, 1, 1); TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceLeft; TileObjectData.addAlternate(1); QuickBlock.QuickSetFurniture(this, 2, 3, dust, SoundID.Dig, false, color, Origin: new Point16(0, 0)); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor); TileID.Sets.HousingWalls[Type] = true; TileID.Sets.HasOutlines[Type] = true; disableSmartCursor = true; adjTiles = new int[] { TileID.OpenDoor }; closeDoorID = mod.TileType(name.Replace("Open", "Closed")); }
public override void SetDefaults() { Main.tileLavaDeath[Type] = true; Main.tileNoAttach[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2); TileObjectData.newTile.CoordinateHeights = new[] { 16, 18 }; TileObjectData.newTile.Direction = TileObjectDirection.PlaceLeft; TileObjectData.newTile.StyleHorizontal = true; TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight; TileObjectData.addAlternate(1); TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 1, 0); QuickBlock.QuickSetFurniture(this, 1, 2, dust, SoundID.Dig, false, color); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair); adjTiles = new int[] { TileID.Chairs }; }
public override void SetDefaults() { TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 2, 0); QuickBlock.QuickSetFurniture(this, 2, 2, dust, SoundID.Dig, false, color); }