Revert "menu swapper: Add uncharged cell swap for gotr (#14795)"
This reverts commit 0609c246a5.
This is superseded by the new object swap
This commit is contained in:
@@ -849,23 +849,4 @@ public interface MenuEntrySwapperConfig extends Config
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum UnchargedCellsMode
|
|
||||||
{
|
|
||||||
TAKE,
|
|
||||||
TAKE_1,
|
|
||||||
TAKE_5,
|
|
||||||
TAKE_10
|
|
||||||
}
|
|
||||||
|
|
||||||
@ConfigItem(
|
|
||||||
keyName = "swapUnchargedCells",
|
|
||||||
name = "Uncharged Cells",
|
|
||||||
description = "Swap the take option for Uncharged Cells in Guardians of the Rift.",
|
|
||||||
section = objectSection
|
|
||||||
)
|
|
||||||
default UnchargedCellsMode swapUnchargedCells()
|
|
||||||
{
|
|
||||||
return UnchargedCellsMode.TAKE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ import static net.runelite.client.plugins.menuentryswapper.MenuEntrySwapperConfi
|
|||||||
import static net.runelite.client.plugins.menuentryswapper.MenuEntrySwapperConfig.KaramjaGlovesMode;
|
import static net.runelite.client.plugins.menuentryswapper.MenuEntrySwapperConfig.KaramjaGlovesMode;
|
||||||
import static net.runelite.client.plugins.menuentryswapper.MenuEntrySwapperConfig.MorytaniaLegsMode;
|
import static net.runelite.client.plugins.menuentryswapper.MenuEntrySwapperConfig.MorytaniaLegsMode;
|
||||||
import static net.runelite.client.plugins.menuentryswapper.MenuEntrySwapperConfig.RadasBlessingMode;
|
import static net.runelite.client.plugins.menuentryswapper.MenuEntrySwapperConfig.RadasBlessingMode;
|
||||||
import static net.runelite.client.plugins.menuentryswapper.MenuEntrySwapperConfig.UnchargedCellsMode;
|
|
||||||
import net.runelite.client.util.Text;
|
import net.runelite.client.util.Text;
|
||||||
|
|
||||||
@PluginDescriptor(
|
@PluginDescriptor(
|
||||||
@@ -442,10 +441,6 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
swap("climb", "climb-down", () -> (shiftModifier() ? config.swapStairsShiftClick() : config.swapStairsLeftClick()) == MenuEntrySwapperConfig.StairsMode.CLIMB_DOWN);
|
swap("climb", "climb-down", () -> (shiftModifier() ? config.swapStairsShiftClick() : config.swapStairsLeftClick()) == MenuEntrySwapperConfig.StairsMode.CLIMB_DOWN);
|
||||||
|
|
||||||
swap("deposit", "deposit-runes", config::swapDepositPool);
|
swap("deposit", "deposit-runes", config::swapDepositPool);
|
||||||
|
|
||||||
swap("take", "uncharged cells", "take-1", () -> config.swapUnchargedCells() == UnchargedCellsMode.TAKE_1);
|
|
||||||
swap("take", "uncharged cells", "take-5", () -> config.swapUnchargedCells() == UnchargedCellsMode.TAKE_5);
|
|
||||||
swap("take", "uncharged cells", "take-10", () -> config.swapUnchargedCells() == UnchargedCellsMode.TAKE_10);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void swap(String option, String swappedOption, Supplier<Boolean> enabled)
|
private void swap(String option, String swappedOption, Supplier<Boolean> enabled)
|
||||||
|
|||||||
Reference in New Issue
Block a user