Progress on Dialogue Sketch to JSON Data conversion.

Opportunistic bug fix in JSON import wizard.
This commit is contained in:
Zukero
2016-12-16 09:41:04 +01:00
parent 6ac332834d
commit b1d0175a9d
5 changed files with 46 additions and 22 deletions

View File

@@ -224,10 +224,7 @@ public class Dialogue extends JSONElement {
if (replies != null) {
for (Reply reply : replies) {
if (reply.next_phrase_id != null) {
if (!reply.next_phrase_id.equals(Reply.EXIT_PHRASE_ID)
&& !reply.next_phrase_id.equals(Reply.FIGHT_PHRASE_ID)
&& !reply.next_phrase_id.equals(Reply.SHOP_PHRASE_ID)
&& !reply.next_phrase_id.equals(Reply.REMOVE_PHRASE_ID)) {
if (!Reply.KEY_PHRASE_ID.contains(reply.next_phrase_id)) {
reply.next_phrase = proj.getDialogue(reply.next_phrase_id);
}
}