calculateCost method

String calculateCost()

Calculates the cost of the skill

Implementation

String calculateCost() {
  if (_cost == null) {
    return '-';
  } else if (_cost! < 100) {
    return "$_cost% HP";
  }
  return "${_cost! ~/ 100}% SP";
}