public string Action(bool i) { string txt; txt = player.Action(enemy); if (enemy.HP <= 0) { txt += "The " + enemy.Name + " died\n"; txt += player.GainExp(enemy.Xp); fight = false; } else if (i == true) { int a = player.TakeDamage(enemy.Attack); txt += "The " + enemy.Name + " attacked and dealt " + a.ToString() + " damage\n"; if (player.HP <= 0) { txt += "You Died :( Game Over"; end = true; } } return(txt); }