Increased object spawn chance generally and in plain tiles specifically.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user