Swap pick with pick-lots in CoX (#7563)

Fixes #1756
Closes #2845
This commit is contained in:
winterdaze
2019-01-28 02:52:49 -05:00
committed by Tomas Slusny
parent 180dcd3f48
commit 2975365cac
2 changed files with 15 additions and 1 deletions

View File

@@ -195,13 +195,23 @@ public interface MenuEntrySwapperConfig extends Config
@ConfigItem(
keyName = "swapPrivate",
name = "Private",
description = "Swap Shared with Private on the Chamber of Xeric storage units."
description = "Swap Shared with Private on the Chambers of Xeric storage units."
)
default boolean swapPrivate()
{
return false;
}
@ConfigItem(
keyName = "swapPick",
name = "Pick",
description = "Swap Pick with Pick-lots of the Gourd tree in the Chambers of Xeric"
)
default boolean swapPick()
{
return false;
}
@ConfigItem(
keyName = "swapQuick",
name = "Quick Pass/Open/Start/Travel",

View File

@@ -511,6 +511,10 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("private", option, target, true);
}
else if (config.swapPick() && option.equals("pick"))
{
swap("pick-lots", option, target, true);
}
else if (config.shiftClickCustomization() && shiftModifier && !option.equals("use"))
{
Integer customOption = getSwapConfig(eventId);