menu swapper: essence mine teleport menu, swap talk-to with teleport on distentor and aubury
This commit is contained in:
committed by
ThatGamerBlue
parent
27adfd4f11
commit
7b4387a920
@@ -411,4 +411,14 @@ public interface MenuEntrySwapperConfig extends Config
|
|||||||
{
|
{
|
||||||
return ShiftDepositMode.OFF;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,6 +105,14 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
MenuAction.NPC_FIFTH_OPTION,
|
MenuAction.NPC_FIFTH_OPTION,
|
||||||
MenuAction.EXAMINE_NPC);
|
MenuAction.EXAMINE_NPC);
|
||||||
|
|
||||||
|
private static final Set<String> ESSENCE_MINE_NPCS = ImmutableSet.of(
|
||||||
|
"aubury",
|
||||||
|
"wizard sedridor",
|
||||||
|
"wizard distentor",
|
||||||
|
"wizard cromperty",
|
||||||
|
"brimstail"
|
||||||
|
);
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private Client client;
|
private Client client;
|
||||||
|
|
||||||
@@ -525,6 +533,11 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
swap("start-minigame", option, target, index);
|
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"))
|
else if (config.swapQuickLeave() && option.equals("leave tomb") && target.equals("tomb door"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user