Cleanup thunder action prompt

This commit is contained in:
PikaMug 2019-07-04 17:09:36 -04:00
parent ed0beae1ec
commit 8b0a23255c
2 changed files with 4 additions and 4 deletions

View File

@ -1500,8 +1500,9 @@ public class ActionFactory implements ConversationAbandonedListener {
if (input.intValue() < 1) { if (input.intValue() < 1) {
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("invalidMinimum").replace("<number>", "1")); context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("invalidMinimum").replace("<number>", "1"));
return new StormDurationPrompt(); return new StormDurationPrompt();
} else {
context.setSessionData(CK.E_WORLD_STORM_DURATION, input.intValue());
} }
context.setSessionData(CK.E_WORLD_STORM_DURATION, input.intValue());
return new StormPrompt(); return new StormPrompt();
} }
} }
@ -1517,7 +1518,7 @@ public class ActionFactory implements ConversationAbandonedListener {
String text = ChatColor.GOLD + Lang.get("eventEditorThunderTitle") + "\n"; String text = ChatColor.GOLD + Lang.get("eventEditorThunderTitle") + "\n";
if (context.getSessionData(CK.E_WORLD_THUNDER) == null) { if (context.getSessionData(CK.E_WORLD_THUNDER) == null) {
text += ChatColor.BLUE + "" + ChatColor.BOLD + "1" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("eventEditorSetWorld") + " (" + Lang.get("noneSet") + ")\n"; text += ChatColor.BLUE + "" + ChatColor.BOLD + "1" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("eventEditorSetWorld") + " (" + Lang.get("noneSet") + ")\n";
text += ChatColor.GRAY + "2 - " + Lang.get("eventEditorSetDuration") + " " + Lang.get("eventEditorNoWorld") + "\n"; text += ChatColor.GRAY + "" + ChatColor.BOLD + "2" + ChatColor.RESET + ChatColor.GRAY + " - " + Lang.get("eventEditorSetDuration") + " " + Lang.get("eventEditorNoWorld") + "\n";
text += ChatColor.BLUE + "" + ChatColor.BOLD + "3" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("clear") + "\n"; text += ChatColor.BLUE + "" + ChatColor.BOLD + "3" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("clear") + "\n";
text += ChatColor.BLUE + "" + ChatColor.BOLD + "4" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("done"); text += ChatColor.BLUE + "" + ChatColor.BOLD + "4" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("done");
} else { } else {
@ -1599,7 +1600,7 @@ public class ActionFactory implements ConversationAbandonedListener {
@Override @Override
protected Prompt acceptValidatedInput(ConversationContext context, Number input) { protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
if (input.intValue() < 1) { if (input.intValue() < 1) {
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("eventEditorAtLeastOneSecond")); context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("invalidMinimum").replace("<number>", "1"));
return new ThunderDurationPrompt(); return new ThunderDurationPrompt();
} else { } else {
context.setSessionData(CK.E_WORLD_THUNDER_DURATION, input.intValue()); context.setSessionData(CK.E_WORLD_THUNDER_DURATION, input.intValue());

View File

@ -52,7 +52,6 @@ public class StageTimer implements Runnable {
} }
quest.completeQuest(quester); quest.completeQuest(quester);
} else { } else {
System.out.println("get delay = " + quester.getCurrentStage(quest).getDelay());
Stage currentStage = quester.getCurrentStage(quest); Stage currentStage = quester.getCurrentStage(quest);
int stageNum = quester.getCurrentQuests().get(quest) + 1; int stageNum = quester.getCurrentQuests().get(quest) + 1;
quester.hardQuit(quest); quester.hardQuit(quest);