mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 03:55:35 +01:00
Started on next update
Custom stage objective displays, chat message objectives
This commit is contained in:
parent
a46ca7e0a8
commit
9cbe3663bf
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user