randomevents: Add missing events

This commit adds options and handling for the Beekeeper, Sandwich Lady,
and Jekyll & Hyde random events.
This commit is contained in:
Shawn Shadrix
2020-06-10 22:23:56 -04:00
committed by Jordan Atwood
parent 0fce0f75e2
commit f9ef48584b
2 changed files with 40 additions and 0 deletions

View File

@@ -161,4 +161,37 @@ public interface RandomEventConfig extends Config
{
return false;
}
@ConfigItem(
keyName = "notifyJekyll",
name = "Notify on Jekyll & Hyde",
description = "",
section = notificationSection
)
default boolean notifyJekyll()
{
return false;
}
@ConfigItem(
keyName = "notifyBeekeeper",
name = "Notify on Beekeeper",
description = "",
section = notificationSection
)
default boolean notifyBeekeeper()
{
return false;
}
@ConfigItem(
keyName = "notifySandwich",
name = "Notify on Sandwich Lady",
description = "",
section = notificationSection
)
default boolean notifySandwich()
{
return false;
}
}

View File

@@ -177,6 +177,8 @@ public class RandomEventPlugin extends Plugin
switch (id)
{
case NpcID.BEE_KEEPER_6747:
return config.notifyBeekeeper();
case NpcID.SERGEANT_DAMIEN_6743:
return config.notifyDemon();
case NpcID.FREAKY_FORESTER_6748:
@@ -186,6 +188,9 @@ public class RandomEventPlugin extends Plugin
case NpcID.GENIE:
case NpcID.GENIE_327:
return config.notifyGenie();
case NpcID.DR_JEKYLL:
case NpcID.DR_JEKYLL_314:
return config.notifyJekyll();
case NpcID.EVIL_BOB:
case NpcID.EVIL_BOB_6754:
return config.notifyBob();
@@ -200,6 +205,8 @@ public class RandomEventPlugin extends Plugin
return config.notifyQuiz();
case NpcID.DUNCE_6749:
return config.notifyDunce();
case NpcID.SANDWICH_LADY:
return config.notifySandwich();
default:
return false;
}