Add dynamic impling spawns. credit to github.com/Juzzed
This commit is contained in:
@@ -310,4 +310,15 @@ public interface ImplingsConfig extends Config
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 26,
|
||||
keyName = "spawnColorDynamic",
|
||||
name = "Impling dynamic spawn color",
|
||||
description = "Text color for dynamic impling spawns in Puro Puro"
|
||||
)
|
||||
default Color getDynamicSpawnColor()
|
||||
{
|
||||
return Color.WHITE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,9 @@ package net.runelite.client.plugins.implings;
|
||||
import com.google.inject.Provides;
|
||||
import java.awt.Color;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import javax.inject.Inject;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Getter;
|
||||
@@ -52,15 +54,22 @@ import net.runelite.client.ui.overlay.OverlayManager;
|
||||
)
|
||||
public class ImplingsPlugin extends Plugin
|
||||
{
|
||||
private static final int DYNAMIC_SPAWN_NATURE_DRAGON = 1618;
|
||||
private static final int DYNAMIC_SPAWN_ECLECTIC = 1633;
|
||||
private static final int DYNAMIC_SPAWN_BABY_ESSENCE = 1634;
|
||||
|
||||
@Getter(AccessLevel.PACKAGE)
|
||||
private final List<NPC> implings = new ArrayList<>();
|
||||
|
||||
@Inject
|
||||
private OverlayManager overlayManager;
|
||||
@Getter(AccessLevel.PACKAGE)
|
||||
private Map<Integer, String> dynamicSpawns = new HashMap<>();
|
||||
|
||||
@Inject
|
||||
private ImplingsOverlay overlay;
|
||||
|
||||
@Inject
|
||||
private OverlayManager overlayManager;
|
||||
|
||||
@Inject
|
||||
private ImplingMinimapOverlay minimapOverlay;
|
||||
|
||||
@@ -73,10 +82,13 @@ public class ImplingsPlugin extends Plugin
|
||||
return configManager.getConfig(ImplingsConfig.class);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void startUp() throws Exception
|
||||
{
|
||||
dynamicSpawns.put(DYNAMIC_SPAWN_NATURE_DRAGON, "T3 Nature-Lucky Dynamic");
|
||||
dynamicSpawns.put(DYNAMIC_SPAWN_ECLECTIC, "T2 Eclectic Dynamic");
|
||||
dynamicSpawns.put(DYNAMIC_SPAWN_BABY_ESSENCE, "T1 Baby-Essence Dynamic");
|
||||
|
||||
overlayManager.add(overlay);
|
||||
overlayManager.add(minimapOverlay);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user