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;
|
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 com.google.inject.Provides;
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@@ -52,15 +54,22 @@ import net.runelite.client.ui.overlay.OverlayManager;
|
|||||||
)
|
)
|
||||||
public class ImplingsPlugin extends Plugin
|
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)
|
@Getter(AccessLevel.PACKAGE)
|
||||||
private final List<NPC> implings = new ArrayList<>();
|
private final List<NPC> implings = new ArrayList<>();
|
||||||
|
|
||||||
@Inject
|
@Getter(AccessLevel.PACKAGE)
|
||||||
private OverlayManager overlayManager;
|
private Map<Integer, String> dynamicSpawns = new HashMap<>();
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private ImplingsOverlay overlay;
|
private ImplingsOverlay overlay;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private OverlayManager overlayManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private ImplingMinimapOverlay minimapOverlay;
|
private ImplingMinimapOverlay minimapOverlay;
|
||||||
|
|
||||||
@@ -73,10 +82,13 @@ public class ImplingsPlugin extends Plugin
|
|||||||
return configManager.getConfig(ImplingsConfig.class);
|
return configManager.getConfig(ImplingsConfig.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void startUp() throws Exception
|
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(overlay);
|
||||||
overlayManager.add(minimapOverlay);
|
overlayManager.add(minimapOverlay);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user