Add option to swap "Private" and "Shared" on CoX chest (#6388)

Add a config option that will swap `Shared` and `Private` on Raids storage units.

![](https://i.imgur.com/JhmMPgq.png)
![](https://i.imgur.com/FLyRI0X.png)

Closes #6015
This commit is contained in:
TheStonedTurtle
2018-11-12 08:51:04 -08:00
committed by Tomas Slusny
parent fb449283e2
commit c40c6fb937
2 changed files with 14 additions and 0 deletions

View File

@@ -192,6 +192,16 @@ public interface MenuEntrySwapperConfig extends Config
return true;
}
@ConfigItem(
keyName = "swapPrivate",
name = "Private",
description = "Swap Shared with Private on the Chamber of Xeric storage units."
)
default boolean swapPrivate()
{
return false;
}
@ConfigItem(
keyName = "swapQuick",
name = "Quick Pass/Start/Travel",

View File

@@ -487,6 +487,10 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("spellbook", option, target, true);
swap("perks", option, target, true);
}
else if (config.swapPrivate() && option.equals("shared"))
{
swap("private", option, target, true);
}
else if (config.shiftClickCustomization() && shiftModifier && !option.equals("use"))
{
Integer customOption = getSwapConfig(itemId);