menu entry swapper: add Tempoross leave swap

This commit is contained in:
molo-pl
2021-05-02 17:18:19 +02:00
committed by GitHub
parent 2e5d2a9b5f
commit 37895bd554
2 changed files with 19 additions and 0 deletions

View File

@@ -661,4 +661,15 @@ public interface MenuEntrySwapperConfig extends Config
{
return false;
}
@ConfigItem(
keyName = "swapTemporossLeave",
name = "Tempoross Leave",
description = "Swap Talk-to with Leave after subduing Tempoross",
section = npcSection
)
default boolean swapTemporossLeave()
{
return false;
}
}

View File

@@ -131,6 +131,13 @@ public class MenuEntrySwapperPlugin extends Plugin
"brimstail"
);
private static final Set<String> TEMPOROSS_NPCS = ImmutableSet.of(
"captain dudi",
"captain pudi",
"first mate deri",
"first mate peri"
);
@Inject
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", "collect", config::swapCollectMiscellania);
swap("talk-to", "deposit-items", config::swapDepositItems);
swap("talk-to", TEMPOROSS_NPCS::contains, "leave", config::swapTemporossLeave);
swap("leave tomb", "quick-leave", config::swapQuickLeave);
swap("tomb door", "quick-leave", config::swapQuickLeave);