Added infernal eel to fishing plugin

This commit is contained in:
SteveOSRS
2018-01-23 14:54:53 +00:00
committed by Adam
parent e647e05103
commit 8a3e11e4f7
3 changed files with 18 additions and 1 deletions

View File

@@ -145,4 +145,14 @@ public interface FishingConfig extends Config
return true;
}
@ConfigItem(
keyName = "showInfernalEel",
name = "Show Infernal Eel",
description = "Configures whether infernal eel is displayed"
)
default boolean showInfernalEel()
{
return true;
}
}

View File

@@ -57,6 +57,7 @@ import static net.runelite.api.NpcID.FISHING_SPOT_7731;
import static net.runelite.api.NpcID.FISHING_SPOT_7732;
import static net.runelite.api.NpcID.FISHING_SPOT_7733;
import static net.runelite.api.NpcID.FISHING_SPOT_7734;
import static net.runelite.api.NpcID.FISHING_SPOT_7676;
public enum FishingSpot
{
@@ -87,7 +88,9 @@ public enum FishingSpot
),
MINNOW("Minnow", ItemID.MINNOW,
FISHING_SPOT_7730, FISHING_SPOT_7731, FISHING_SPOT_7732, FISHING_SPOT_7733, FISHING_SPOT_7734
);
),
INFERNAL_EEL("Infernal Eel", ItemID.INFERNAL_EEL,
FISHING_SPOT_7676);
public static final int FLYING_FISH = FISHING_SPOT_7734;
private static final Map<Integer, FishingSpot> fishingSpots = new HashMap<>();

View File

@@ -141,5 +141,9 @@ class FishingSpotOverlay extends Overlay
{
ids.addAll(Ints.asList(FishingSpot.MINNOW.getIds()));
}
if (config.showInfernalEel())
{
ids.addAll(Ints.asList(FishingSpot.INFERNAL_EEL.getIds()));
}
}
}