calculateCost method
Calculates the cost of the skill
Implementation
String calculateCost() {
if (_cost == null) {
return '-';
} else if (_cost! < 100) {
return "$_cost% HP";
}
return "${_cost! ~/ 100}% SP";
}
Calculates the cost of the skill
String calculateCost() {
if (_cost == null) {
return '-';
} else if (_cost! < 100) {
return "$_cost% HP";
}
return "${_cost! ~/ 100}% SP";
}