Fixed demon to patron ratio issue.
This commit is contained in:
parent
e5d23e27fa
commit
7559650d35
8 changed files with 12 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ public class Patron : MonoBehaviour {
|
|||
else
|
||||
Debug.Log("Cannot find GameController script.");
|
||||
|
||||
if (Random.value > 0.6 && gameController.currentNumberOfDemons < (gameController.maxPatrons / 4)) {
|
||||
if (Random.value >= 0.75 || gameController.currentNumberOfDemons < (gameController.patronCounter / 4)) {
|
||||
isDemon = true;
|
||||
gameController.currentNumberOfDemons++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue