Example #1
0
 public void Load(EnemySelection enemy)
 {
     titleText.text = enemy.encounterName;
     infoText.text  = enemy.infoAboutEnemy;
     infoText.text += "\n\n\nHealth: " + enemy.maximumHP + "\nEXP gain: " + enemy.experiencePoints;
     infoText.text += "\n\n";
     if (adjectives [Mathf.Clamp(enemy.dodge.getValue() / 20, 0, adjectives.Length - 1)] != "")
     {
         infoText.text += adjectives [Mathf.Clamp(enemy.dodge.getValue() / 20, 0, adjectives.Length - 1)] + " agile.\n";
     }
     if (adjectives [Mathf.Clamp(enemy.strength.getValue() / 8, 0, adjectives.Length - 1)] != "")
     {
         infoText.text += adjectives [Mathf.Clamp(enemy.strength.getValue() / 8, 0, adjectives.Length - 1)] + " strong.\n";
     }
     if (adjectives [Mathf.Clamp(enemy.damageMultiplier.getValue() / (20 + (15 * enemy.getLevel())), 0, adjectives.Length - 1)] != "")
     {
         infoText.text += adjectives [Mathf.Clamp(enemy.damageMultiplier.getValue() / (20 + (15 * enemy.getLevel())), 0, adjectives.Length - 1)] + " dangerous.\n";
     }
     if (adjectives [Mathf.Clamp(enemy.regeneration.getValue() / 15, 0, adjectives.Length - 1)] != "")
     {
         infoText.text += adjectives [Mathf.Clamp(enemy.regeneration.getValue() / 15, 0, adjectives.Length - 1)] + " self-restorative.\n";
     }
     for (int i = 0; i < enemy.resistances.Length; i++)
     {
         if (adjectives [Mathf.Clamp(enemy.resistances[i].getValue() / 20, 0, adjectives.Length - 1)] != "")
         {
             infoText.text += adjectives [Mathf.Clamp(enemy.resistances[i].getValue() / 20, 0, adjectives.Length - 1)] + " resistant against " + types[i] + " gems.\n";
         }
     }
 }
 public void Create()
 {
     created  = true;
     Instance = this;
 }