Added infernal eel to fishing plugin
This commit is contained in:
@@ -145,4 +145,14 @@ public interface FishingConfig extends Config
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "showInfernalEel",
|
||||||
|
name = "Show Infernal Eel",
|
||||||
|
description = "Configures whether infernal eel is displayed"
|
||||||
|
)
|
||||||
|
default boolean showInfernalEel()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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_7732;
|
||||||
import static net.runelite.api.NpcID.FISHING_SPOT_7733;
|
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_7734;
|
||||||
|
import static net.runelite.api.NpcID.FISHING_SPOT_7676;
|
||||||
|
|
||||||
public enum FishingSpot
|
public enum FishingSpot
|
||||||
{
|
{
|
||||||
@@ -87,7 +88,9 @@ public enum FishingSpot
|
|||||||
),
|
),
|
||||||
MINNOW("Minnow", ItemID.MINNOW,
|
MINNOW("Minnow", ItemID.MINNOW,
|
||||||
FISHING_SPOT_7730, FISHING_SPOT_7731, FISHING_SPOT_7732, FISHING_SPOT_7733, FISHING_SPOT_7734
|
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;
|
public static final int FLYING_FISH = FISHING_SPOT_7734;
|
||||||
private static final Map<Integer, FishingSpot> fishingSpots = new HashMap<>();
|
private static final Map<Integer, FishingSpot> fishingSpots = new HashMap<>();
|
||||||
|
|||||||
@@ -141,5 +141,9 @@ class FishingSpotOverlay extends Overlay
|
|||||||
{
|
{
|
||||||
ids.addAll(Ints.asList(FishingSpot.MINNOW.getIds()));
|
ids.addAll(Ints.asList(FishingSpot.MINNOW.getIds()));
|
||||||
}
|
}
|
||||||
|
if (config.showInfernalEel())
|
||||||
|
{
|
||||||
|
ids.addAll(Ints.asList(FishingSpot.INFERNAL_EEL.getIds()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user