menu swapper: add shift click swap for npc contact

This commit is contained in:
Rami-J
2020-01-08 17:09:24 -05:00
committed by Adam
parent 4845560cb8
commit 2fb75b8b16
2 changed files with 34 additions and 0 deletions

View File

@@ -391,4 +391,14 @@ public interface MenuEntrySwapperConfig extends Config
{
return false;
}
@ConfigItem(
keyName = "swapNpcContact",
name = "NPC Contact",
description = "Swap NPC Contact with last contacted NPC when shift-clicking"
)
default boolean swapNpcContact()
{
return false;
}
}

View File

@@ -662,6 +662,30 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("abort offer", option, target, index);
}
else if (shiftModifier && target.equals("npc contact") && config.swapNpcContact())
{
swap("honest jimmy", option, target, index);
swap("bert the sandman", option, target, index);
swap("advisor ghrim", option, target, index);
swap("dark mage", option, target, index);
swap("lanthus", option, target, index);
swap("turael", option, target, index);
swap("mazchna", option, target, index);
swap("vannaka", option, target, index);
swap("chaeldar", option, target, index);
swap("nieve", option, target, index);
swap("steve", option, target, index);
swap("duradel", option, target, index);
swap("krystilia", option, target, index);
swap("konar", option, target, index);
swap("murphy", option, target, index);
swap("cyrisus", option, target, index);
swap("smoggy", option, target, index);
swap("ginea", option, target, index);
swap("watson", option, target, index);
swap("barbarian guard", option, target, index);
swap("random", option, target, index);
}
else if (config.shiftClickCustomization() && shiftModifier && !option.equals("use"))
{
Integer customOption = getSwapConfig(eventId);