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.   Closes #6015
This commit is contained in:
committed by
Tomas Slusny
parent
fb449283e2
commit
c40c6fb937
@@ -192,6 +192,16 @@ public interface MenuEntrySwapperConfig extends Config
|
|||||||
return true;
|
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(
|
@ConfigItem(
|
||||||
keyName = "swapQuick",
|
keyName = "swapQuick",
|
||||||
name = "Quick Pass/Start/Travel",
|
name = "Quick Pass/Start/Travel",
|
||||||
|
|||||||
@@ -487,6 +487,10 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
swap("spellbook", option, target, true);
|
swap("spellbook", option, target, true);
|
||||||
swap("perks", 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"))
|
else if (config.shiftClickCustomization() && shiftModifier && !option.equals("use"))
|
||||||
{
|
{
|
||||||
Integer customOption = getSwapConfig(itemId);
|
Integer customOption = getSwapConfig(itemId);
|
||||||
|
|||||||
Reference in New Issue
Block a user