Merge pull request #4093 from Nightfirecat/add-eel-fishing-spots

fishing plugin: Add cave eel and slimy eel spots
This commit is contained in:
Tomas Slusny
2018-06-30 13:36:19 +02:00
committed by GitHub
3 changed files with 40 additions and 1 deletions

View File

@@ -155,6 +155,26 @@ public interface FishingConfig extends Config
return true;
}
@ConfigItem(
keyName = "showCaveEel",
name = "Show Cave Eel",
description = "Configures whether cave eel is displayed"
)
default boolean showCaveEel()
{
return true;
}
@ConfigItem(
keyName = "showSlimyEel",
name = "Show Slimy Eel",
description = "Configures whether slimy eel is displayed"
)
default boolean showSlimyEel()
{
return true;
}
@ConfigItem(
keyName = "showKarambwanji",
name = "Show Karambwanji",

View File

@@ -173,11 +173,19 @@ public class FishingPlugin extends Plugin
if (config.showInfernalEel())
{
spotIds.addAll(Ints.asList(FishingSpot.INFERNAL_EEL.getIds()));
}
}
if (config.showSacredEel())
{
spotIds.addAll(Ints.asList(FishingSpot.SACRED_EEL.getIds()));
}
if (config.showCaveEel())
{
spotIds.addAll(Ints.asList(FishingSpot.CAVE_EEL.getIds()));
}
if (config.showSlimyEel())
{
spotIds.addAll(Ints.asList(FishingSpot.SLIMY_EEL.getIds()));
}
if (config.showKarambwanji())
{
spotIds.addAll(Ints.asList(FishingSpot.KARAMBWANJI.getIds()));

View File

@@ -27,6 +27,8 @@ package net.runelite.client.plugins.fishing;
import java.util.HashMap;
import java.util.Map;
import net.runelite.api.ItemID;
import static net.runelite.api.NpcID.FISHING_SPOT_1497;
import static net.runelite.api.NpcID.FISHING_SPOT_1498;
import static net.runelite.api.NpcID.FISHING_SPOT_1510;
import static net.runelite.api.NpcID.FISHING_SPOT_1511;
import static net.runelite.api.NpcID.FISHING_SPOT_1518;
@@ -41,6 +43,9 @@ import static net.runelite.api.NpcID.FISHING_SPOT_1528;
import static net.runelite.api.NpcID.FISHING_SPOT_1530;
import static net.runelite.api.NpcID.FISHING_SPOT_1542;
import static net.runelite.api.NpcID.FISHING_SPOT_1544;
import static net.runelite.api.NpcID.FISHING_SPOT_2653;
import static net.runelite.api.NpcID.FISHING_SPOT_2654;
import static net.runelite.api.NpcID.FISHING_SPOT_2655;
import static net.runelite.api.NpcID.FISHING_SPOT_3913;
import static net.runelite.api.NpcID.FISHING_SPOT_3914;
import static net.runelite.api.NpcID.FISHING_SPOT_3915;
@@ -137,6 +142,12 @@ public enum FishingSpot
),
SACRED_EEL("Sacred eel", ItemID.SACRED_EEL,
FISHING_SPOT_6488
),
CAVE_EEL("Cave eel", ItemID.RAW_CAVE_EEL,
FISHING_SPOT_1497, FISHING_SPOT_1498
),
SLIMY_EEL("Slimy eel", ItemID.RAW_SLIMY_EEL,
FISHING_SPOT_2653, FISHING_SPOT_2654, FISHING_SPOT_2655
);
private static final Map<Integer, FishingSpot> fishingSpots = new HashMap<>();