예제 #1
0
        //add modded chests
        public void SetDefaultsPostContent()
        {
            var tileObjectData = TileObjectData.GetTileData(Type, 0);
            var anchorTileList = new List <int>(tileObjectData.AnchorAlternateTiles);

            for (int i = TileID.Count; i < TileLoader.TileCount; i++)
            {
                if (TileLoader.ModChestName(i) != String.Empty)
                {
                    anchorTileList.Add(i);
                }
            }
            tileObjectData.AnchorAlternateTiles = anchorTileList.ToArray();
        }
예제 #2
0
 public static bool IsChest(int type)
 {
     return(type == 21 || TileLoader.ModChestName(type).Length > 0);
 }
예제 #3
0
 public static bool IsChest(this Tile tile) => tile.type == 21 || TileLoader.ModChestName(tile.type).Length > 0;