rl-api, rl-client: rename getHealth to getHealthScale
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -165,7 +165,7 @@ class PrayerBarOverlay extends Overlay
|
||||
return;
|
||||
}
|
||||
|
||||
if (config.hideIfOutOfCombat() && localPlayer.getHealth() == -1)
|
||||
if (config.hideIfOutOfCombat() && localPlayer.getHealthScale() == -1)
|
||||
{
|
||||
showingPrayerBar = false;
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user