Increased object spawn chance generally and in plain tiles specifically.
This commit is contained in:
@@ -62,7 +62,7 @@ public class Tile : MonoBehaviour
|
||||
newPoint = new Vector3(rand.Next(-40, 40) + 100 * position.x, 50, rand.Next(-40, 40) + 100 * position.z);
|
||||
foreach (Vector3 vector in list)
|
||||
{
|
||||
if (Vector3.Distance(vector, newPoint) < 12.5f)
|
||||
if (Vector3.Distance(vector, newPoint) < 2.5f)
|
||||
{
|
||||
canSpawn = false;
|
||||
break;
|
||||
@@ -85,7 +85,7 @@ public class Tile : MonoBehaviour
|
||||
{
|
||||
int chance = rand.Next(1, 101);
|
||||
|
||||
if (chance >= 25)
|
||||
if (chance >= 20)
|
||||
{
|
||||
GameObject content = contentGenerator.GetComponent<ContentGenerator>().generateContent(tiletype);
|
||||
if (content != null)
|
||||
|
||||
Reference in New Issue
Block a user