Merge pull request #5005 from MagicfTail/Debug-npc-indicator

Add debugging to npc highlighter plugin
This commit is contained in:
Tomas Slusny
2018-08-20 08:51:27 +02:00
committed by GitHub

View File

@@ -41,6 +41,7 @@ import java.util.regex.Pattern;
import javax.inject.Inject; import javax.inject.Inject;
import lombok.AccessLevel; import lombok.AccessLevel;
import lombok.Getter; import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import net.runelite.api.Client; import net.runelite.api.Client;
import net.runelite.api.GameState; import net.runelite.api.GameState;
import net.runelite.api.GraphicID; import net.runelite.api.GraphicID;
@@ -70,6 +71,7 @@ import net.runelite.client.util.WildcardMatcher;
description = "Highlight NPCs on-screen and/or on the minimap", description = "Highlight NPCs on-screen and/or on the minimap",
tags = {"highlight", "minimap", "npcs", "overlay", "respawn", "tags"} tags = {"highlight", "minimap", "npcs", "overlay", "respawn", "tags"}
) )
@Slf4j
public class NpcIndicatorsPlugin extends Plugin public class NpcIndicatorsPlugin extends Plugin
{ {
private static final int MAX_ACTOR_VIEW_RANGE = 15; private static final int MAX_ACTOR_VIEW_RANGE = 15;
@@ -503,6 +505,7 @@ public class NpcIndicatorsPlugin extends Plugin
if (!mn.getPossibleRespawnLocations().isEmpty()) if (!mn.getPossibleRespawnLocations().isEmpty())
{ {
log.debug("Starting {} tick countdown for {}", mn.getRespawnTime(), mn.getNpcName());
deadNpcsToDisplay.put(mn.getNpcIndex(), mn); deadNpcsToDisplay.put(mn.getNpcIndex(), mn);
} }
} }