Skip to content

Commit

Permalink
menu swapper: add shift click swap for npc contact
Browse files Browse the repository at this point in the history
  • Loading branch information
Rami-J authored and Adam- committed Jan 15, 2020
1 parent 4845560 commit 2fb75b8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,4 +391,14 @@ default boolean swapBankOp()
{
return false;
}

@ConfigItem(
keyName = "swapNpcContact",
name = "NPC Contact",
description = "Swap NPC Contact with last contacted NPC when shift-clicking"
)
default boolean swapNpcContact()
{
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,30 @@ else if (shiftModifier && option.equals("view offer") && config.swapGEAbort())
{
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);
Expand Down

0 comments on commit 2fb75b8

Please sign in to comment.