menu swapper: essence mine teleport menu, swap talk-to with teleport on distentor and aubury

This commit is contained in:
Cody Brown
2020-03-11 19:06:35 -05:00
committed by ThatGamerBlue
parent 27adfd4f11
commit 7b4387a920
2 changed files with 23 additions and 0 deletions

View File

@@ -411,4 +411,14 @@ public interface MenuEntrySwapperConfig extends Config
{
return ShiftDepositMode.OFF;
}
@ConfigItem(
keyName = "swapEssenceMineTeleport",
name = "Essence Mine Teleport",
description = "Swaps Talk-To with Teleport for Wizard Distentor and Aubury."
)
default boolean swapEssenceMineTeleport()
{
return false;
}
}

View File

@@ -105,6 +105,14 @@ public class MenuEntrySwapperPlugin extends Plugin
MenuAction.NPC_FIFTH_OPTION,
MenuAction.EXAMINE_NPC);
private static final Set<String> ESSENCE_MINE_NPCS = ImmutableSet.of(
"aubury",
"wizard sedridor",
"wizard distentor",
"wizard cromperty",
"brimstail"
);
@Inject
private Client client;
@@ -525,6 +533,11 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("start-minigame", option, target, index);
}
if (config.swapEssenceMineTeleport() && ESSENCE_MINE_NPCS.contains(target))
{
swap("teleport", option, target, index);
}
}
else if (config.swapQuickLeave() && option.equals("leave tomb") && target.equals("tomb door"))
{