Skip to content
Snippets Groups Projects
Commit ff43e2ac authored by Jonas Zohren's avatar Jonas Zohren :speech_balloon:
Browse files

Slightly improved Hans dialog

parent b32712dd
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
] ]
}, },
"firstContact": { "firstContact": {
"text": "Oh, nett dass sie fragen, haben sie schon einmal darüber nachgedacht, bei den Alumni Mitglied zu werden? ", "text": "Oh, nett dass sie fragen. Ich habe hier mein Büro.\nHaben sie schon einmal darüber nachgedacht, bei den Alumni Mitglied zu werden? ",
"options": [ "options": [
{ {
"text": "Nein, darf ich fragen, wer sie sind?", "text": "Nein, darf ich fragen, wer sie sind?",
...@@ -54,6 +54,16 @@ ...@@ -54,6 +54,16 @@
"options": [ "options": [
{ {
"text": "Später vielleicht", "text": "Später vielleicht",
"linksToDialog": "declineToBecomeAlumniMember"
}
]
},
"declineToBecomeAlumniMember": {
"text": "Na gut, aber wenn sie es sich doch noch anders überlegen, melden sie sich gerne bei mir.",
"addFacts": ["hans/madeFirstContact"],
"options": [
{
"text": "Versprochen.",
"linksToDialog": "start" "linksToDialog": "start"
} }
] ]
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
.flat(); .flat();
// Deduplicate entries // Deduplicate entries
const factsSet = new Set(allFacts); const factsSet = new Set(allFacts);
return [...factsSet].filter(e => e !== undefined); return [...factsSet].filter((e) => e !== undefined);
} }
let seenFactIds = new Set<String>([ let seenFactIds = new Set<String>([
...@@ -93,7 +93,9 @@ ...@@ -93,7 +93,9 @@
addFactInputValue = ""; addFactInputValue = "";
}}>Add</button }}>Add</button
> >
<button style="width: 13rem;" on:click={() => gameFactsStore.set([])}>Reset facts</button> <button style="width: 13rem;" on:click={() => gameFactsStore.set([])}
>Reset facts</button
>
</div> </div>
<style> <style>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment