rl-api, rl-client: rename getHealth to getHealthScale

This commit is contained in:
Max Weber
2020-04-28 23:14:09 -06:00
parent 06d8a217c8
commit d6bb219c79
4 changed files with 13 additions and 12 deletions

View File

@@ -100,10 +100,10 @@ class OpponentInfoOverlay extends OverlayPanel
return null;
}
if (opponent.getName() != null && opponent.getHealth() > 0)
if (opponent.getName() != null && opponent.getHealthScale() > 0)
{
lastRatio = opponent.getHealthRatio();
lastHealthScale = opponent.getHealth();
lastHealthScale = opponent.getHealthScale();
opponentName = Text.removeTags(opponent.getName());
lastMaxHealth = null;

View File

@@ -165,7 +165,7 @@ class PrayerBarOverlay extends Overlay
return;
}
if (config.hideIfOutOfCombat() && localPlayer.getHealth() == -1)
if (config.hideIfOutOfCombat() && localPlayer.getHealthScale() == -1)
{
showingPrayerBar = false;
}

View File

@@ -106,7 +106,7 @@ class TargetWeaknessOverlay extends Overlay
return -1;
}
final int healthScale = target.getHealth();
final int healthScale = target.getHealthScale();
final int healthRatio = target.getHealthRatio();
final Integer maxHealth = npcManager.getHealth(target.getId());