menu swapper: add enter-corrupted gauntlet swap

This commit is contained in:
Mitchell Kovacs
2020-05-11 15:12:28 -04:00
committed by GitHub
parent 1444ddcb67
commit 40a0525095
2 changed files with 14 additions and 0 deletions

View File

@@ -431,4 +431,14 @@ public interface MenuEntrySwapperConfig extends Config
{
return true;
}
@ConfigItem(
keyName = "swapGauntlet",
name = "Corrupted Gauntlet",
description = "Swap Enter with Enter-corrupted when entering The Gauntlet"
)
default boolean swapGauntlet()
{
return false;
}
}

View File

@@ -636,6 +636,10 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("empty", option, target, index);
}
else if (config.swapGauntlet() && option.equals("enter") && target.equals("the gauntlet"))
{
swap("enter-corrupted", option, target, index);
}
else if (config.swapQuick() && option.equals("enter"))
{
swap("quick-enter", option, target, index);