-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the Building Mode UI position on screen and more
Added the 4 crafting stations that make up the MultiCraftingStation. Updated the MultiCraftingStation Tile sprite.
- Loading branch information
Kirtle
committed
Jun 12, 2020
1 parent
cb58314
commit 6971f28
Showing
26 changed files
with
254 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
20 changes: 14 additions & 6 deletions
20
Items/HardmodeCraftingStation.cs → Items/Placeable/HardmodeCraftingStation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 14 additions & 6 deletions
20
Items/PreHardmodeCraftingStation.cs → ...s/Placeable/PreHardmodeCraftingStation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 14 additions & 6 deletions
20
Items/SpecializedCraftingStation.cs → ...s/Placeable/SpecializedCraftingStation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 14 additions & 6 deletions
20
Items/ThemedFurnitureCraftingStation.cs → ...aceable/ThemedFurnitureCraftingStation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
using Terraria.ObjectData; | ||
using static Terraria.ModLoader.ModContent; | ||
|
||
namespace BuilderEssentials.Tiles | ||
{ | ||
class HardmodeCraftingStation : ModTile | ||
{ | ||
public override void SetDefaults() | ||
{ | ||
Main.tileSolidTop[Type] = true; | ||
Main.tileFrameImportant[Type] = true; | ||
Main.tileNoAttach[Type] = true; | ||
Main.tileTable[Type] = true; | ||
Main.tileLavaDeath[Type] = false; | ||
animationFrameHeight = 54; | ||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); | ||
TileObjectData.newTile.CoordinateHeights = new[] { 16, 16 }; | ||
TileObjectData.newTile.Height = 2; | ||
TileObjectData.newTile.CoordinateWidth = 16; | ||
TileObjectData.newTile.Width = 2; | ||
//TileObjectData.newTile.Direction = TileObjectDirection.PlaceLeft; | ||
//TileObjectData.newTile.StyleWrapLimit = 2; | ||
//TileObjectData.newTile.StyleMultiplier = 2; | ||
//TileObjectData.newTile.StyleHorizontal = true; | ||
//TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); | ||
//TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight; | ||
//TileObjectData.addAlternate(1); | ||
TileObjectData.addTile(Type); | ||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable); | ||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair); | ||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); | ||
disableSmartCursor = true; | ||
adjTiles = new int[] { TileID.MythrilAnvil, TileID.AdamantiteForge, TileID.Bookcases, | ||
TileID.CrystalBall, TileID.Autohammer, TileID.LunarCraftingStation }; | ||
} | ||
|
||
public override void KillMultiTile(int i, int j, int frameX, int frameY) | ||
{ | ||
Item.NewItem(i * 16, j * 16, 32, 16, ItemType<Items.Placeable.HardmodeCraftingStation>()); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
using Terraria.ObjectData; | ||
using static Terraria.ModLoader.ModContent; | ||
|
||
namespace BuilderEssentials.Tiles | ||
{ | ||
class PreHardmodeCraftingStation : ModTile | ||
{ | ||
public override void SetDefaults() | ||
{ | ||
Main.tileSolidTop[Type] = true; | ||
Main.tileFrameImportant[Type] = true; | ||
Main.tileNoAttach[Type] = true; | ||
Main.tileTable[Type] = true; | ||
Main.tileLavaDeath[Type] = false; | ||
animationFrameHeight = 54; | ||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); | ||
TileObjectData.newTile.CoordinateHeights = new[] { 16, 16 }; | ||
TileObjectData.newTile.Height = 2; | ||
TileObjectData.newTile.CoordinateWidth = 16; | ||
TileObjectData.newTile.Width = 2; | ||
//TileObjectData.newTile.Direction = TileObjectDirection.PlaceLeft; | ||
//TileObjectData.newTile.StyleWrapLimit = 2; | ||
//TileObjectData.newTile.StyleMultiplier = 2; | ||
//TileObjectData.newTile.StyleHorizontal = true; | ||
//TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); | ||
//TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight; | ||
//TileObjectData.addAlternate(1); | ||
TileObjectData.addTile(Type); | ||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable); | ||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair); | ||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); | ||
disableSmartCursor = true; | ||
adjTiles = new int[] { TileID.WorkBenches, TileID.Furnaces, TileID.Hellforge, TileID.Anvils, TileID.AlchemyTable, TileID.Sinks, | ||
TileID.Sawmill, TileID.Loom, TileID.Chairs, TileID.Tables, TileID.Tables2, TileID.CookingPots, TileID.TinkerersWorkbench, | ||
TileID.ImbuingStation, TileID.DyeVat, TileID.HeavyWorkBench, TileID.DemonAltar }; | ||
} | ||
|
||
public override void KillMultiTile(int i, int j, int frameX, int frameY) | ||
{ | ||
Item.NewItem(i * 16, j * 16, 32, 16, ItemType<Items.Placeable.PreHardmodeCraftingStation>()); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
using Terraria.ObjectData; | ||
using static Terraria.ModLoader.ModContent; | ||
|
||
namespace BuilderEssentials.Tiles | ||
{ | ||
class SpecializedCraftingStation : ModTile | ||
{ | ||
public override void SetDefaults() | ||
{ | ||
Main.tileSolidTop[Type] = true; | ||
Main.tileFrameImportant[Type] = true; | ||
Main.tileNoAttach[Type] = true; | ||
Main.tileTable[Type] = true; | ||
Main.tileLavaDeath[Type] = false; | ||
animationFrameHeight = 54; | ||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); | ||
TileObjectData.newTile.CoordinateHeights = new[] { 16, 16 }; | ||
TileObjectData.newTile.Height = 2; | ||
TileObjectData.newTile.CoordinateWidth = 16; | ||
TileObjectData.newTile.Width = 2; | ||
//TileObjectData.newTile.Direction = TileObjectDirection.PlaceLeft; | ||
//TileObjectData.newTile.StyleWrapLimit = 2; | ||
//TileObjectData.newTile.StyleMultiplier = 2; | ||
//TileObjectData.newTile.StyleHorizontal = true; | ||
//TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); | ||
//TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight; | ||
//TileObjectData.addAlternate(1); | ||
TileObjectData.addTile(Type); | ||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable); | ||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair); | ||
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); | ||
disableSmartCursor = true; | ||
adjTiles = new int[] { TileID.Campfire, TileID.Kegs, TileID.Blendomatic, TileID.MeatGrinder }; | ||
} | ||
|
||
public override void KillMultiTile(int i, int j, int frameX, int frameY) | ||
{ | ||
Item.NewItem(i * 16, j * 16, 32, 16, ItemType<Items.Placeable.SpecializedCraftingStation>()); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.