Changed black robot to give its party a buff instead of attacking
This commit is contained in:
@@ -28,6 +28,7 @@ public class GMScript : MonoBehaviour
|
||||
|
||||
private bool noRepeat = true;
|
||||
private bool sheild = false;
|
||||
private bool buff = false;
|
||||
private bool gameover = false;
|
||||
private bool victory = false;
|
||||
private int partyHealth = 16;
|
||||
@@ -424,7 +425,9 @@ public class GMScript : MonoBehaviour
|
||||
break;
|
||||
}
|
||||
|
||||
if(partyMember == Colours.Grey || partyMember == Colours.White)
|
||||
if(partyMember == Colours.Grey ||
|
||||
partyMember == Colours.White ||
|
||||
partyMember == Colours.Black)
|
||||
{
|
||||
|
||||
modifier = 0;
|
||||
@@ -441,6 +444,16 @@ public class GMScript : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
if(partyMember == Colours.Black)
|
||||
{
|
||||
StartCoroutine(DisplayDamageText(0, PartyDamageText, partyMember));
|
||||
|
||||
print(partyMember + " buffed the team!");
|
||||
print("Party health is now: " + partyHealth + " HP");
|
||||
buff = true;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(sheild == true)
|
||||
@@ -448,7 +461,12 @@ public class GMScript : MonoBehaviour
|
||||
modifier = 0;
|
||||
}
|
||||
|
||||
if(buff)
|
||||
{
|
||||
modifiedAttack = (partyAttack * modifier) * 2;
|
||||
} else {
|
||||
modifiedAttack = partyAttack * modifier;
|
||||
}
|
||||
|
||||
StartCoroutine(DisplayDamageText((int)modifiedAttack, EnemyDamageText, partyMember));
|
||||
|
||||
@@ -487,6 +505,8 @@ public class GMScript : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
buff = false;
|
||||
|
||||
StartCoroutine(DisplayDamageText(modifiedAttack, PartyDamageText, enemyColour));
|
||||
|
||||
partyHealth -= modifiedAttack;
|
||||
|
||||
Reference in New Issue
Block a user