removeHealth method

int removeHealth(
  1. int damage
)

Removes damage from the current Health of the character and returns the remaining health.

Implementation

int removeHealth(int damage) {
  current -= damage;
  return current;
}