menu swapper: add Hardwood Grove menu swap option

This commit is contained in:
Jared N
2019-05-25 00:46:13 +09:00
committed by Adam
parent 4f3cc91c26
commit f1176d5a8a
2 changed files with 19 additions and 0 deletions

View File

@@ -162,6 +162,16 @@ public interface MenuEntrySwapperConfig extends Config
return FairyRingMode.LAST_DESTINATION;
}
@ConfigItem(
keyName = "swapHardWoodGrove",
name = "Hardwood Grove",
description = "Swap Quick-Pay(100) and Send-Parcel at Hardwood Grove"
)
default boolean swapHardWoodGrove()
{
return true;
}
@ConfigItem(
keyName = "swapHarpoon",
name = "Harpoon",

View File

@@ -383,6 +383,11 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("teleport", option, target, true);
}
if (config.swapHardWoodGrove() && target.contains("rionasta"))
{
swap("send-parcel", option, target, true);
}
if (config.swapBank())
{
swap("bank", option, target, true);
@@ -458,6 +463,10 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("pay-toll(10gp)", option, target, true);
}
else if (config.swapHardWoodGrove() && option.equals("open") && target.equals("hardwood grove doors"))
{
swap("quick-pay(100)", option, target, true);
}
else if (config.swapTravel() && option.equals("inspect") && target.equals("trapdoor"))
{
swap("travel", option, target, true);