Update BarrowsBrotherSlainOverlay.java

Accurately apply red color to X (brothers not killed yet) and green color to ✓ (brother has been killed)
This commit is contained in:
icyredstar
2019-07-02 16:33:15 -04:00
committed by GitHub
parent 269db34f11
commit 8a2bad0728

View File

@@ -84,7 +84,7 @@ public class BarrowsBrotherSlainOverlay extends Overlay
{
final boolean brotherSlain = client.getVar(brother.getKilledVarbit()) > 0;
String slain = brotherSlain ? "\u2713" : "\u2717";
tableComponent.addRow(brother.getName(), ColorUtil.prependColorTag(slain, brotherSlain ? Color.RED : Color.GREEN));
tableComponent.addRow(brother.getName(), ColorUtil.prependColorTag(slain, brotherSlain ? Color.GREEN : Color.RED));
}
float rewardPercent = client.getVar(Varbits.BARROWS_REWARD_POTENTIAL) / 10.0f;