Balancing #2
This commit is contained in:
parent
0466aebd04
commit
6eb299af15
1 changed files with 3 additions and 3 deletions
|
@ -457,7 +457,7 @@ public class DungeonGenerator {
|
||||||
case 0: {
|
case 0: {
|
||||||
// Scorpion Attack!!!!:
|
// Scorpion Attack!!!!:
|
||||||
List<GameObject> lg = new List<GameObject>();
|
List<GameObject> lg = new List<GameObject>();
|
||||||
int count = UnityEngine.Random.Range(1, ( int ) Math.Min(Mathf.Floor(r.GetSpawnpoints().Count), 5));
|
int count = Math.Min(UnityEngine.Random.Range(1, ( int ) Mathf.Floor(r.GetSpawnpoints().Count)), 5);
|
||||||
for ( int c = 0; c < count; c++ ) {
|
for ( int c = 0; c < count; c++ ) {
|
||||||
lg.Add(enemyPrefabs[Entity.Entities.SCORPION]);
|
lg.Add(enemyPrefabs[Entity.Entities.SCORPION]);
|
||||||
}
|
}
|
||||||
|
@ -468,7 +468,7 @@ public class DungeonGenerator {
|
||||||
case 1: {
|
case 1: {
|
||||||
// Bug Attack!!!!:
|
// Bug Attack!!!!:
|
||||||
List<GameObject> lg = new List<GameObject>();
|
List<GameObject> lg = new List<GameObject>();
|
||||||
int count = UnityEngine.Random.Range(1, ( int ) Math.Min(Mathf.Floor(r.GetSpawnpoints().Count), 10));
|
int count = Math.Min(UnityEngine.Random.Range(1, ( int ) Mathf.Floor(r.GetSpawnpoints().Count)), 10);
|
||||||
for ( int c = 0; c < count; c++ ) {
|
for ( int c = 0; c < count; c++ ) {
|
||||||
lg.Add(enemyPrefabs[Entity.Entities.BUG]);
|
lg.Add(enemyPrefabs[Entity.Entities.BUG]);
|
||||||
}
|
}
|
||||||
|
@ -479,7 +479,7 @@ public class DungeonGenerator {
|
||||||
case 2: {
|
case 2: {
|
||||||
// Coins!!!!:
|
// Coins!!!!:
|
||||||
List<GameObject> lg = new List<GameObject>();
|
List<GameObject> lg = new List<GameObject>();
|
||||||
int count = UnityEngine.Random.Range(1, (int) Math.Min(Mathf.Floor(r.GetSpawnpoints().Count), 20));
|
int count = Math.Min(UnityEngine.Random.Range(1, (int) Mathf.Floor(r.GetSpawnpoints().Count)), 20);
|
||||||
for ( int c = 0; c < count; c++ ) {
|
for ( int c = 0; c < count; c++ ) {
|
||||||
lg.Add(enemyPrefabs[Entity.Entities.COIN]);
|
lg.Add(enemyPrefabs[Entity.Entities.COIN]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue