menu swapper: add pyramid plunder start-minigame and quick-leave
Co-authored-by: MrH4mm3r <emil629b@edu.easj.dk>
This commit is contained in:
@@ -321,4 +321,24 @@ public interface MenuEntrySwapperConfig extends Config
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "swapStartMinigame",
|
||||||
|
name = "Pyramid Plunder Start-minigame",
|
||||||
|
description = "Swap Talk-to with Start-minigame at the Guardian Mummy"
|
||||||
|
)
|
||||||
|
default boolean swapStartMinigame()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "swapQuickleave",
|
||||||
|
name = "Quick-Leave",
|
||||||
|
description = "Swap Leave Tomb with Quick-Leave at Pyramid Plunder"
|
||||||
|
)
|
||||||
|
default boolean swapQuickLeave()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -458,6 +458,15 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
swap("enchant", option, target, index);
|
swap("enchant", option, target, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.swapStartMinigame())
|
||||||
|
{
|
||||||
|
swap("start-minigame", option, target, index);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (config.swapQuickLeave() && option.equals("leave tomb") && target.equals("tomb door"))
|
||||||
|
{
|
||||||
|
swap("quick-leave", option, target, index);
|
||||||
}
|
}
|
||||||
else if (config.swapTravel() && option.equals("pass") && target.equals("energy barrier"))
|
else if (config.swapTravel() && option.equals("pass") && target.equals("energy barrier"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user