Add Sacred Eels and Barehand Fishing (#1857)

- Add Sacred Eels to fishing plugin
- Add barehanded fishing animation to idle notifier plugin

Closes #1852 and closes #1354 and closes #1859
This commit is contained in:
Trees
2018-04-24 05:27:49 -04:00
committed by Tomas Slusny
parent 3caf182b0b
commit 642c36212a
5 changed files with 20 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ public final class AnimationID
public static final int FISHING_OILY_ROD = 622;
public static final int FISHING_KARAMBWAN = 1193;
public static final int FISHING_CRUSHING_INFERNAL_EELS = 7553;
public static final int FISHING_BAREHAND = 6709;
public static final int MINING_BRONZE_PICKAXE = 625;
public static final int MINING_IRON_PICKAXE = 626;
public static final int MINING_STEEL_PICKAXE = 627;

View File

@@ -145,6 +145,16 @@ public interface FishingConfig extends Config
return true;
}
@ConfigItem(
keyName = "showSacredEel",
name = "Show Sacred Eel",
description = "Configures whether sacred eel is displayed"
)
default boolean showSacredEel()
{
return true;
}
@ConfigItem(
keyName = "showKarambwanji",
name = "Show Karambwanji",

View File

@@ -167,6 +167,10 @@ 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.showKarambwanji())
{

View File

@@ -43,6 +43,7 @@ import static net.runelite.api.NpcID.FISHING_SPOT_4316;
import static net.runelite.api.NpcID.FISHING_SPOT_4710;
import static net.runelite.api.NpcID.FISHING_SPOT_4712;
import static net.runelite.api.NpcID.FISHING_SPOT_4713;
import static net.runelite.api.NpcID.FISHING_SPOT_6488;
import static net.runelite.api.NpcID.FISHING_SPOT_7155;
import static net.runelite.api.NpcID.FISHING_SPOT_7199;
import static net.runelite.api.NpcID.FISHING_SPOT_7200;
@@ -103,6 +104,9 @@ public enum FishingSpot
),
KARAMBWANJI("Karambwanji, Shrimp", ItemID.KARAMBWANJI,
FISHING_SPOT_4710
),
SACRED_EEL("Sacred eel", ItemID.SACRED_EEL,
FISHING_SPOT_6488
);
private static final Map<Integer, FishingSpot> fishingSpots = new HashMap<>();

View File

@@ -148,6 +148,7 @@ public class IdleNotifierPlugin extends Plugin
case FISHING_OILY_ROD:
case FISHING_KARAMBWAN:
case FISHING_CRUSHING_INFERNAL_EELS:
case FISHING_BAREHAND:
/* Mining(Normal) */
case MINING_BRONZE_PICKAXE:
case MINING_IRON_PICKAXE: