diff --git a/Assets/Scripts/Generation/DungeonGenerator.cs b/Assets/Scripts/Generation/DungeonGenerator.cs index 1bf1eb6..5f4adcc 100644 --- a/Assets/Scripts/Generation/DungeonGenerator.cs +++ b/Assets/Scripts/Generation/DungeonGenerator.cs @@ -444,10 +444,10 @@ public class DungeonGenerator { } float prob2 = 0.04f; if (UnityEngine.Random.value > 1 - prob2 - && x > r.bounds.x +1 - && x < r.bounds.x + r.bounds.width-1 - && y > r.bounds.y+1 - && y < r.bounds.y + r.bounds.height-1) + && x > r.bounds.x +2 + && x < r.bounds.x + r.bounds.width-2 + && y > r.bounds.y+2 + && y < r.bounds.y + r.bounds.height-2) { r.spawnpoints.Add(pos); } @@ -463,7 +463,6 @@ public class DungeonGenerator { int rand = UnityEngine.Random.Range(0, 7); switch (rand) { - case 0: case 1: { // Scorpion Attack!!!!: List lg = new List(); @@ -501,7 +500,8 @@ public class DungeonGenerator { o = eo; } break; - case 6: + case 6: + case 0: { // Coins!!!!: List lg = new List();