Assets/Scripts/Battle/Fighters/Brady.cs (view raw)
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5public class Brady : BadGuy
6{
7 public override string Combat_AI()
8 {
9 //attack a random goodGuy
10 Fighter[] ggs = GameObject.Find("BattleManager").GetComponent<BattleManager>().getGuys(false);
11 List<Ability> abs = stats.GetAbilities();
12 bool output;
13 string str;
14 do
15 {
16 str = AbilityDB.Process(this, abs[Random.Range(0, abs.Count)], ggs[Random.Range(0, ggs.Length)], true, out output);
17 } while (output == false);
18 return str;
19 }
20
21 public Brady()
22 {
23 stats = new Stats("Brady");
24 description = "Son of the dark lord, he's not too bad.";
25
26 goldDrop = 150;
27 itemsDrop = new Inventory();
28 itemsDrop.generateItem(new ItemInfo(new BottledBlessing(), 1));
29
30 dead = defending = false;
31 }
32}