From b2a80e440ad93a13a4d00478ae16d00c96884092 Mon Sep 17 00:00:00 2001
From: Jonas Zohren <jonas.zohren@adesso.de>
Date: Tue, 6 Apr 2021 09:18:11 +0200
Subject: [PATCH] Finish kitchenWaste quest

---
 public/dialogs/pirat.json     | 16 ++++++++++++++++
 public/dialogs/wasteExit.json | 27 +++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 public/dialogs/wasteExit.json

diff --git a/public/dialogs/pirat.json b/public/dialogs/pirat.json
index 2fe1fb5..ce088a5 100644
--- a/public/dialogs/pirat.json
+++ b/public/dialogs/pirat.json
@@ -17,6 +17,22 @@
           "requiredFacts": ["kitchenWaste/attemptedToOpenWasteRoomDoor"],
           "forbiddenFacts": ["kitchenWaste/sentToOutsideWasteBin"],
           "linksToDialog": "askWhatToDoWasteRoomLocked"
+        },
+        {
+          "text": "Ich habe den Müll rausgebracht!",
+          "requiredFacts": ["kitchenWaste/ejectedWaste"],
+          "forbiddenFacts": ["kitchenWaste/finishedQuest"],
+          "linksToDialog": "ejectedWaste"
+        }
+      ]
+    },
+    "ejectedWaste": {
+      "text": "Toll. Hat den sonst immer deine Mutter raus gebracht, oder weshalb bist du da jetzt so stolz drauf? Aber wie dem auch sei, danke dir.",
+      "addFacts": ["kitchenWaste/finishedQuest"],
+      "options": [
+        {
+          "text": "Gern geschehen",
+          "linksToDialog": "start"
         }
       ]
     },
diff --git a/public/dialogs/wasteExit.json b/public/dialogs/wasteExit.json
new file mode 100644
index 0000000..94922c9
--- /dev/null
+++ b/public/dialogs/wasteExit.json
@@ -0,0 +1,27 @@
+{
+  "$schema": "../../src/dialogSet.schema.json",
+  "title": "Keller-Hinterausgang",
+  "imageUrl": "",
+  "startDialogName": "start",
+  "dialogs": {
+    "start": {
+      "text": "Du stehst vor dem Keller-Hinterausgang der OH14",
+      "options": [
+        {
+          "text": "Müll in die Mülltonne vor der Tür schmeißen",
+          "requiredFacts": [
+            "kitchenWaste/acceptedQuest",
+            "kitchenWaste/carriesStinkingBag"
+          ],
+          "linksToDialog": "ejectWaste"
+        }
+      ]
+    },
+    "ejectWaste": {
+      "addFacts": ["kitchenWaste/ejectedWaste"],
+      "removeFacts": ["kitchenWaste/carriesStinkingBag"],
+      "text": "Du hast den Müll entsorgt.",
+      "options": []
+    }
+  }
+}
-- 
GitLab