menu entry swapper: add Tempoross leave swap
This commit is contained in:
@@ -661,4 +661,15 @@ public interface MenuEntrySwapperConfig extends Config
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "swapTemporossLeave",
|
||||||
|
name = "Tempoross Leave",
|
||||||
|
description = "Swap Talk-to with Leave after subduing Tempoross",
|
||||||
|
section = npcSection
|
||||||
|
)
|
||||||
|
default boolean swapTemporossLeave()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,6 +131,13 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
"brimstail"
|
"brimstail"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
private static final Set<String> TEMPOROSS_NPCS = ImmutableSet.of(
|
||||||
|
"captain dudi",
|
||||||
|
"captain pudi",
|
||||||
|
"first mate deri",
|
||||||
|
"first mate peri"
|
||||||
|
);
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private Client client;
|
private Client client;
|
||||||
|
|
||||||
@@ -222,6 +229,7 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
swap("talk-to", ESSENCE_MINE_NPCS::contains, "teleport", config::swapEssenceMineTeleport);
|
swap("talk-to", ESSENCE_MINE_NPCS::contains, "teleport", config::swapEssenceMineTeleport);
|
||||||
swap("talk-to", "collect", config::swapCollectMiscellania);
|
swap("talk-to", "collect", config::swapCollectMiscellania);
|
||||||
swap("talk-to", "deposit-items", config::swapDepositItems);
|
swap("talk-to", "deposit-items", config::swapDepositItems);
|
||||||
|
swap("talk-to", TEMPOROSS_NPCS::contains, "leave", config::swapTemporossLeave);
|
||||||
|
|
||||||
swap("leave tomb", "quick-leave", config::swapQuickLeave);
|
swap("leave tomb", "quick-leave", config::swapQuickLeave);
|
||||||
swap("tomb door", "quick-leave", config::swapQuickLeave);
|
swap("tomb door", "quick-leave", config::swapQuickLeave);
|
||||||
|
|||||||
Reference in New Issue
Block a user