Started on next update

Custom stage objective displays, chat message objectives
This commit is contained in:
Blackvein 2014-02-11 19:29:09 -08:00
parent a46ca7e0a8
commit 9cbe3663bf
2 changed files with 14 additions and 2 deletions

View File

@ -490,7 +490,7 @@ public class EventFactory implements ConversationAbandonedListener, ColorUtil{
private class CreateMenuPrompt extends FixedSetPrompt {
public CreateMenuPrompt() {
public CreateMenuPrompt() {
super("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19");
@ -581,7 +581,7 @@ public class EventFactory implements ConversationAbandonedListener, ColorUtil{
if (context.getSessionData(CK.E_MOB_TYPES) == null) {
text += BLUE + "" + BOLD + "19" + RESET + YELLOW + " - " + Lang.get("eventEditorSetMobSpawns") + GRAY + " (" + Lang.get("noneSet") + ")\n";
text += BLUE + "" + BOLD + "10" + RESET + YELLOW + " - " + Lang.get("eventEditorSetMobSpawns") + GRAY + " (" + Lang.get("noneSet") + ")\n";
} else {
LinkedList<String> types = (LinkedList<String>) context.getSessionData(CK.E_MOB_TYPES);

View File

@ -117,6 +117,7 @@ public class Stage {
public LinkedList<Integer> customObjectiveCounts = new LinkedList<Integer>();
public LinkedList<String> customObjectiveDisplays = new LinkedList<String>();
public LinkedList<Map<String, Object>> customObjectiveData = new LinkedList<Map<String, Object>>();
public LinkedList<String>
public String script;
public Event startEvent = null;
public Event deathEvent = null;
@ -127,6 +128,7 @@ public class Stage {
public String delayMessage = null;
public String completeMessage = null;
public String startMessage = null;
public String objectiveOverride = null;
@Override
public boolean equals(Object o) {
@ -330,6 +332,16 @@ public class Stage {
} else if (other.completeMessage == null && completeMessage != null) {
return false;
}
if (other.objectiveOverride != null && objectiveOverride != null) {
if (other.objectiveOverride.equals(objectiveOverride) == false) {
return false;
}
} else if (other.objectiveOverride != null && objectiveOverride == null) {
return false;
} else if (other.objectiveOverride == null && objectiveOverride != null) {
return false;
}
}