fix checkstyle violations
This commit is contained in:
@@ -33,6 +33,7 @@ import net.runelite.client.config.ConfigItem;
|
|||||||
@ConfigGroup("slayer")
|
@ConfigGroup("slayer")
|
||||||
public interface SlayerConfig extends Config
|
public interface SlayerConfig extends Config
|
||||||
{
|
{
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 1,
|
position = 1,
|
||||||
keyName = "infobox",
|
keyName = "infobox",
|
||||||
@@ -105,7 +106,8 @@ public interface SlayerConfig extends Config
|
|||||||
name = "Superior Color",
|
name = "Superior Color",
|
||||||
description = "Color of the highlighted superior slayer creatures"
|
description = "Color of the highlighted superior slayer creatures"
|
||||||
)
|
)
|
||||||
default Color getSuperiorColor() {
|
default Color getSuperiorColor()
|
||||||
|
{
|
||||||
return Color.MAGENTA;
|
return Color.MAGENTA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ import net.runelite.api.MessageNode;
|
|||||||
import net.runelite.api.NPC;
|
import net.runelite.api.NPC;
|
||||||
import net.runelite.api.NPCComposition;
|
import net.runelite.api.NPCComposition;
|
||||||
import static net.runelite.api.Skill.SLAYER;
|
import static net.runelite.api.Skill.SLAYER;
|
||||||
import net.runelite.api.NpcID;
|
|
||||||
import net.runelite.api.coords.WorldPoint;
|
import net.runelite.api.coords.WorldPoint;
|
||||||
import net.runelite.api.events.ChatMessage;
|
import net.runelite.api.events.ChatMessage;
|
||||||
import net.runelite.api.events.ConfigChanged;
|
import net.runelite.api.events.ConfigChanged;
|
||||||
@@ -153,7 +152,8 @@ public class SlayerPlugin extends Plugin
|
|||||||
"Night beast",
|
"Night beast",
|
||||||
"Nuclear smoke devil");
|
"Nuclear smoke devil");
|
||||||
|
|
||||||
static {
|
static
|
||||||
|
{
|
||||||
SUPERIOR_SLAYER_MONSTERS = SUPERIOR_SLAYER_MONSTERS.stream().map(name -> name.toLowerCase()).collect(Collectors.toList());
|
SUPERIOR_SLAYER_MONSTERS = SUPERIOR_SLAYER_MONSTERS.stream().map(name -> name.toLowerCase()).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -571,7 +571,8 @@ public class SlayerPlugin extends Plugin
|
|||||||
cachedXp = slayerExp;
|
cachedXp = slayerExp;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isSuperior(String name) {
|
boolean isSuperior(String name)
|
||||||
|
{
|
||||||
return SUPERIOR_SLAYER_MONSTERS.contains(name.toLowerCase());
|
return SUPERIOR_SLAYER_MONSTERS.contains(name.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,8 @@ public class TargetClickboxOverlay extends Overlay
|
|||||||
for (NPC target : targets)
|
for (NPC target : targets)
|
||||||
{
|
{
|
||||||
Color coloration = config.getTargetColor();
|
Color coloration = config.getTargetColor();
|
||||||
if (plugin.isSuperior(target.getName())) {
|
if (plugin.isSuperior(target.getName()))
|
||||||
|
{
|
||||||
coloration = config.getSuperiorColor();
|
coloration = config.getSuperiorColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user