Increased object spawn chance generally and in plain tiles specifically.

This commit is contained in:
finnchen123
2026-02-06 13:38:09 +01:00
parent b657de5ea0
commit 2562321918
7 changed files with 118 additions and 124 deletions

View File

@@ -45,11 +45,11 @@ public class ContentGenerator : MonoBehaviour
public GameObject generateTileContent()
{
int chance = rand.Next(1, 101);
if (chance < 50)
if (chance < 25)
{
return null;
}
else if (chance >= 50 && chance < 90)
else if (chance >= 25 && chance < 80)
{
if (rand.Next(0, 2) == 0)
{
@@ -60,11 +60,11 @@ public class ContentGenerator : MonoBehaviour
return stones[rand.Next(0, stones.Length)];
}
}
else if (chance >= 90 && chance < 95)
else if (chance >= 80 && chance < 90)
{
return generateEnemy();
}
else if (chance >= 95 && chance < 99)
else if (chance >= 90 && chance < 95)
{
return boss;
}