Add swap for "Admire" and "Teleport/Spellbook" for mounted capes (#5994)

Add swap that swaps "Admire" with either "Teleport" or "Spellbook" (for
magic) for mounted POH skill capes.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-10-19 10:01:16 +02:00
committed by GitHub
parent 66e09665e2
commit ef9013faa8
2 changed files with 15 additions and 0 deletions

View File

@@ -42,6 +42,16 @@ public interface MenuEntrySwapperConfig extends Config
return true;
}
@ConfigItem(
keyName = "swapAdmire",
name = "Admire",
description = "Swap Admire with Teleport or Spellbook for mounted skill capes."
)
default boolean swapAdmire()
{
return true;
}
@ConfigItem(
keyName = "swapAssignment",
name = "Assignment",

View File

@@ -477,6 +477,11 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("quick-pass", option, target, true);
}
else if (config.swapAdmire() && option.equals("admire"))
{
swap("teleport", option, target, true);
swap("spellbook", option, target, true);
}
else if (config.shiftClickCustomization() && shiftModifier && !option.equals("use"))
{
Integer customOption = getSwapConfig(itemId);