Add more travel menu swap options and claim slime swap

Al Kharid gate and the gate near Ectofungus. Follow the gnome at gnome
maze. Claim slime from Morytania diaries.
This commit is contained in:
Samlof
2018-04-22 06:19:22 +03:00
committed by Adam
parent a2551538d3
commit e1988a3222
2 changed files with 25 additions and 0 deletions

View File

@@ -210,4 +210,15 @@ public interface MenuEntrySwapperConfig extends Config
{
return true;
}
@ConfigItem(
position = 16,
keyName = "claimSlime",
name = "Claim Slime",
description = "Swap Talk-to with Claim Slime from Morytania diaries"
)
default boolean claimSlime()
{
return true;
}
}

View File

@@ -356,6 +356,11 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("trade", option, target, true);
}
if (config.claimSlime() && target.equals("robin"))
{
swap("claim-slime", option, target, true);
}
if (config.swapTravel())
{
swap("travel", option, target, true);
@@ -366,6 +371,7 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("jatizso", option, target, true);
swap("neitiznot", option, target, true);
swap("rellekka", option, target, true);
swap("follow", option, target, true);
}
if (config.swapPay())
@@ -373,6 +379,14 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("pay", option, target, true);
}
}
else if (config.swapTravel() && option.equals("pass") && target.equals("energy barrier"))
{
swap("pay-toll(2-ecto)", option, target, true);
}
else if (config.swapTravel() && option.equals("open") && target.equals("gate"))
{
swap("pay-toll(10gp)", option, target, true);
}
else if (config.swapHarpoon() && option.equals("cage"))
{
swap("harpoon", option, target, true);