From d327f2312a21f0f5294c54dc84028f7257c71a52 Mon Sep 17 00:00:00 2001 From: Gregory Campbell Date: Sat, 11 Apr 2020 10:50:02 -0400 Subject: [PATCH] Adjusted enemy builder so enemy cannot have arms, body, chest and weakpoints that are 'non-attack' colours --- Assets/Scripts/GMScript.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Scripts/GMScript.cs b/Assets/Scripts/GMScript.cs index d89f5b3..a7d8e61 100644 --- a/Assets/Scripts/GMScript.cs +++ b/Assets/Scripts/GMScript.cs @@ -527,35 +527,35 @@ public class GMScript : MonoBehaviour EnemyParts[2].transform.GetChild(0).GetComponent().sprite = EnemyBody[Random.Range(0, EnemyBody.Length)]; - EnemtyPartsColours[2] = Random.Range(0, 15); + EnemtyPartsColours[2] = Random.Range(0, 12); EnemyParts[2].transform.GetChild(0).GetComponent().color = SetColour(EnemtyPartsColours[2]); EnemyParts[3].transform.GetChild(0).GetComponent().sprite = EnemyArm[Random.Range(0, EnemyArm.Length)]; - EnemtyPartsColours[3] = Random.Range(0, 15); + EnemtyPartsColours[3] = Random.Range(0, 12); EnemyParts[3].transform.GetChild(0).GetComponent().color = SetColour(EnemtyPartsColours[3]); EnemyParts[4].transform.GetChild(0).GetComponent().sprite = EnemyArm[Random.Range(0, EnemyArm.Length)]; - EnemtyPartsColours[4] = Random.Range(0, 15); + EnemtyPartsColours[4] = Random.Range(0, 12); EnemyParts[4].transform.GetChild(0).GetComponent().color = SetColour(EnemtyPartsColours[4]); EnemyParts[5].transform.GetChild(0).GetComponent().sprite = EnemyChest[Random.Range(0, EnemyChest.Length)]; - EnemtyPartsColours[5] = Random.Range(0, 15); + EnemtyPartsColours[5] = Random.Range(0, 12); EnemyParts[5].transform.GetChild(0).GetComponent().color = SetColour(EnemtyPartsColours[5]); EnemyParts[6].transform.GetChild(0).GetComponent().sprite = EnemyWeakness[Random.Range(0, EnemyWeakness.Length)]; - EnemtyPartsColours[6] = Random.Range(0, 15); + EnemtyPartsColours[6] = Random.Range(0, 12); EnemyParts[6].transform.GetChild(0).GetComponent().color = SetColour(EnemtyPartsColours[6]);