From 1ff484d6d6a5c34af1878f638dc8fa3ee5c2e114 Mon Sep 17 00:00:00 2001
From: Robin Ruud Kristensen <robin1998@hotmail.no>
Date: Fri, 9 Dec 2022 10:48:56 +0100
Subject: [PATCH] added a little offset to center creation of stairs to match
 tile location

---
 MrBigsock/Assets/Code/Map/TilemapGenerator.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MrBigsock/Assets/Code/Map/TilemapGenerator.cs b/MrBigsock/Assets/Code/Map/TilemapGenerator.cs
index d78f5262..2cf2f94a 100644
--- a/MrBigsock/Assets/Code/Map/TilemapGenerator.cs
+++ b/MrBigsock/Assets/Code/Map/TilemapGenerator.cs
@@ -355,8 +355,8 @@ namespace Bigsock
 
         public void SpawnStairs(int[,] bossRoom, int roomNr)
         {
-            Instantiate(Stairs, new Vector3(FloorTilemap[roomNr].transform.position.x + bossRoom.GetUpperBound(0) / 2,
-                    FloorTilemap[roomNr].transform.position.y + bossRoom.GetUpperBound(1) - 3, 0), Quaternion.identity);
+            Instantiate(Stairs, new Vector3(FloorTilemap[roomNr].transform.position.x + bossRoom.GetUpperBound(0) / 2 + 0.5f,
+                    FloorTilemap[roomNr].transform.position.y + bossRoom.GetUpperBound(1) - 3 + 0.5f, 0), Quaternion.identity);
         }
 
         //Spawns a chest in the middle of the room
-- 
GitLab