Merge pull request #5442 from ItsSebas/fishing-darkcrab
fishing plugin: Add Dark Crab fishing spots
This commit is contained in:
@@ -207,11 +207,22 @@ public interface FishingConfig extends Config
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showDarkCrab",
|
||||
name = "Show Dark Crab",
|
||||
description = "Configures whether dark crab is displayed",
|
||||
position = 17
|
||||
)
|
||||
default boolean showDarkCrab()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showFishingStats",
|
||||
name = "Show Fishing session stats",
|
||||
description = "Configures whether to display the fishing session stats",
|
||||
position = 17
|
||||
position = 18
|
||||
)
|
||||
default boolean showFishingStats()
|
||||
{
|
||||
@@ -222,7 +233,7 @@ public interface FishingConfig extends Config
|
||||
keyName = "showMinnowOverlay",
|
||||
name = "Show Minnow Movement overlay",
|
||||
description = "Configures whether to display the minnow progress pie overlay",
|
||||
position = 18
|
||||
position = 19
|
||||
)
|
||||
default boolean showMinnowOverlay()
|
||||
{
|
||||
|
||||
@@ -265,6 +265,10 @@ public class FishingPlugin extends Plugin
|
||||
{
|
||||
spotIds.addAll(Ints.asList(FishingSpot.KARAMBWAN.getIds()));
|
||||
}
|
||||
if (config.showDarkCrab())
|
||||
{
|
||||
spotIds.addAll(Ints.asList(FishingSpot.DARK_CRAB.getIds()));
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
|
||||
@@ -41,6 +41,7 @@ import static net.runelite.api.NpcID.FISHING_SPOT_1524;
|
||||
import static net.runelite.api.NpcID.FISHING_SPOT_1525;
|
||||
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_1536;
|
||||
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;
|
||||
@@ -148,6 +149,9 @@ public enum FishingSpot
|
||||
),
|
||||
SLIMY_EEL("Slimy eel", ItemID.RAW_SLIMY_EEL,
|
||||
FISHING_SPOT_2653, FISHING_SPOT_2654, FISHING_SPOT_2655
|
||||
),
|
||||
DARK_CRAB("Dark Crab", ItemID.RAW_DARK_CRAB,
|
||||
FISHING_SPOT_1536
|
||||
);
|
||||
|
||||
private static final Map<Integer, FishingSpot> fishingSpots = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user