Merge pull request #1466 from jerwuqu/barrows-name-colors
Change barrows brother name color when killed
This commit is contained in:
@@ -266,6 +266,16 @@ public enum Varbits
|
||||
PYRAMID_PLUNDER_TIMER(2375),
|
||||
PYRAMID_PLUNDER_ROOM(2377),
|
||||
|
||||
/**
|
||||
* Barrows
|
||||
*/
|
||||
BARROWS_KILLED_AHRIM(457),
|
||||
BARROWS_KILLED_DHAROK(458),
|
||||
BARROWS_KILLED_GUTHAN(459),
|
||||
BARROWS_KILLED_KARIL(460),
|
||||
BARROWS_KILLED_TORAG(461),
|
||||
BARROWS_KILLED_VERAC(462),
|
||||
|
||||
/**
|
||||
* Spicy stew ingredients
|
||||
*/
|
||||
|
||||
@@ -26,20 +26,23 @@ package net.runelite.client.plugins.barrows;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import net.runelite.api.Varbits;
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public enum BarrowsBrothers
|
||||
{
|
||||
VERAC("V", new WorldPoint(3557, 3298, 0)),
|
||||
DHAROK("D", new WorldPoint(3575, 3298, 0)),
|
||||
AHRIM("A", new WorldPoint(3566, 3289, 0)),
|
||||
TORAG("T", new WorldPoint(3553, 3283, 0)),
|
||||
KARIL("K", new WorldPoint(3566, 3275, 0)),
|
||||
GUTHAN("G", new WorldPoint(3577, 3283, 0));
|
||||
VERAC("V", new WorldPoint(3557, 3298, 0), Varbits.BARROWS_KILLED_VERAC),
|
||||
DHAROK("D", new WorldPoint(3575, 3298, 0), Varbits.BARROWS_KILLED_DHAROK),
|
||||
AHRIM("A", new WorldPoint(3566, 3289, 0) , Varbits.BARROWS_KILLED_AHRIM),
|
||||
TORAG("T", new WorldPoint(3553, 3283, 0), Varbits.BARROWS_KILLED_TORAG),
|
||||
KARIL("K", new WorldPoint(3566, 3275, 0), Varbits.BARROWS_KILLED_KARIL),
|
||||
GUTHAN("G", new WorldPoint(3577, 3283, 0), Varbits.BARROWS_KILLED_GUTHAN);
|
||||
|
||||
@Getter
|
||||
private final String name;
|
||||
@Getter
|
||||
private final WorldPoint location;
|
||||
@Getter
|
||||
private final Varbits killedVarbit;
|
||||
}
|
||||
|
||||
@@ -177,7 +177,15 @@ class BarrowsOverlay extends Overlay
|
||||
graphics.setColor(Color.black);
|
||||
graphics.drawString(brother.getName(), minimapText.getX() + 1, minimapText.getY() + 1);
|
||||
|
||||
graphics.setColor(Color.cyan);
|
||||
if (client.getSetting(brother.getKilledVarbit()) > 0)
|
||||
{
|
||||
graphics.setColor(Color.red);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.setColor(Color.cyan);
|
||||
}
|
||||
|
||||
graphics.drawString(brother.getName(), minimapText.getX(), minimapText.getY());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user