menu swapper: add pyramid plunder start-minigame and quick-leave

Co-authored-by: MrH4mm3r <emil629b@edu.easj.dk>
This commit is contained in:
Adam
2019-10-27 16:20:37 -04:00
parent 53e56720fc
commit 5344cd6ddb
2 changed files with 29 additions and 0 deletions

View File

@@ -321,4 +321,24 @@ public interface MenuEntrySwapperConfig extends Config
{
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;
}
}

View File

@@ -458,6 +458,15 @@ public class MenuEntrySwapperPlugin extends Plugin
{
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"))
{