Java Code Examples for net.runelite.api.Client#getBoostedSkillLevel()

The following examples show how to use net.runelite.api.Client#getBoostedSkillLevel() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HitPointsRenderer.java    From plugins with GNU General Public License v3.0 6 votes vote down vote up
@Override
protected void update(Client client, StatusBarsOverlay overlay)
{
	maximumValue = client.getRealSkillLevel(Skill.HITPOINTS);
	currentValue = client.getBoostedSkillLevel(Skill.HITPOINTS);
	restore = overlay.getRestoreValue(Skill.HITPOINTS.getName());

	final int poisonState = client.getVar(VarPlayer.IS_POISONED);

	if (poisonState > 0 && poisonState < 50)
	{
		standardColor = COLOR_POISON;
	}
	else if (poisonState >= 1000000)
	{
		standardColor = COLOR_VENOM;
	}
	else
	{
		standardColor = COLOR_STANDARD;
	}
}
 
Example 2
Source File: PrayerRenderer.java    From plugins with GNU General Public License v3.0 5 votes vote down vote up
@Override
protected void update(Client client, StatusBarsOverlay overlay)
{
	maximumValue = client.getRealSkillLevel(Skill.PRAYER);
	currentValue = client.getBoostedSkillLevel(Skill.PRAYER);
	standardColor = client.getVar(Varbits.QUICK_PRAYER) == 1 ? COLOR_ACTIVE : COLOR_STANDARD;
	restore = overlay.getRestoreValue(Skill.PRAYER.getName());
}
 
Example 3
Source File: SkillStat.java    From plugins with GNU General Public License v3.0 4 votes vote down vote up
@Override
public int getValue(Client client)
{
	return client.getBoostedSkillLevel(this.skill);
}
 
Example 4
Source File: SkillStat.java    From runelite with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public int getValue(Client client)
{
	return client.getBoostedSkillLevel(this.skill);
}