From 6db188406ad68f4919abed0dda6f1efff13ebc8a Mon Sep 17 00:00:00 2001
From: TabletopGeneral <56438137+jjayers99@users.noreply.github.com>
Date: Sun, 7 Jan 2024 23:10:54 -0500
Subject: [PATCH 1/4] Adventure - Quest fixes (#4490)
Correction for empty dialog textboxes displaying on what should be silent quest triggers
Bugfixes within Library Of Varsil dungeon
---
.../util/AdventureQuestController.java | 7 ++++
.../res/adventure/Shandalar/world/quests.json | 2 +-
.../library_of_varsil_3.tmx | 35 +++++++++++--------
.../library_of_varsil_4.tmx | 12 +++----
4 files changed, 35 insertions(+), 21 deletions(-)
diff --git a/forge-gui-mobile/src/forge/adventure/util/AdventureQuestController.java b/forge-gui-mobile/src/forge/adventure/util/AdventureQuestController.java
index 7d66efaff13..aa1138b687f 100644
--- a/forge-gui-mobile/src/forge/adventure/util/AdventureQuestController.java
+++ b/forge-gui-mobile/src/forge/adventure/util/AdventureQuestController.java
@@ -226,6 +226,13 @@ public void displayNextDialog(MapStage stage){
DialogData data = dialogQueue.remove();
MapDialog dialog = new MapDialog(data, stage, -1, null);
+
+ if (data.options == null || data.options.length == 0) {
+ dialog.setEffects(data.action);
+ displayNextDialog(stage);
+ return;
+ }
+
stage.showDialog();
dialog.activate();
ChangeListener listen = new ChangeListener() {
diff --git a/forge-gui/res/adventure/Shandalar/world/quests.json b/forge-gui/res/adventure/Shandalar/world/quests.json
index c496670d4b9..af6d58bcd5a 100644
--- a/forge-gui/res/adventure/Shandalar/world/quests.json
+++ b/forge-gui/res/adventure/Shandalar/world/quests.json
@@ -10033,8 +10033,8 @@
"name": "Locate The Research",
"description": "Search $(poi_1) for research about the mechanics of summoning spells",
"mapFlag": "foundLibraryOfVarsilResearch",
+ "anyPOI": true,
"mapFlagValue": 1,
- "here": true,
"objective": "QuestFlag",
"prologue": {
"text": "The structure before you is enormous, looking more like an ancient fortress than a library.",
diff --git a/forge-gui/res/adventure/common/maps/map/main_story_explore/library_of_varsil_3.tmx b/forge-gui/res/adventure/common/maps/map/main_story_explore/library_of_varsil_3.tmx
index 593b271535e..27a3d85c4db 100644
--- a/forge-gui/res/adventure/common/maps/map/main_story_explore/library_of_varsil_3.tmx
+++ b/forge-gui/res/adventure/common/maps/map/main_story_explore/library_of_varsil_3.tmx
@@ -93,19 +93,26 @@
@@ -275,7 +282,7 @@
"getQuestFlag": {
"key": "exploreShand1",
"op": "=",
- "val": 5
+ "val": 4
}
},
{
diff --git a/forge-gui/res/adventure/common/maps/map/main_story_explore/library_of_varsil_4.tmx b/forge-gui/res/adventure/common/maps/map/main_story_explore/library_of_varsil_4.tmx
index accd596fe68..da733b53679 100644
--- a/forge-gui/res/adventure/common/maps/map/main_story_explore/library_of_varsil_4.tmx
+++ b/forge-gui/res/adventure/common/maps/map/main_story_explore/library_of_varsil_4.tmx
@@ -40,14 +40,14 @@