From 2b41e3b7e1d22c4f230e78b725f17c0a9efd77dc Mon Sep 17 00:00:00 2001
From: jc_gargma <jc_gargma@iserlohn-fortress.net>
Date: Mon, 19 Jul 2021 07:25:25 -0700
Subject: Add a background type for the maid npc

---
 npcs/TALK_MAID_ALLY.json |  2 +-
 npcs/backgrounds.json    | 32 ++++++++++++++++++++++++++++++++
 npcs/classes.json        |  1 +
 3 files changed, 34 insertions(+), 1 deletion(-)
 create mode 100644 npcs/backgrounds.json

diff --git a/npcs/TALK_MAID_ALLY.json b/npcs/TALK_MAID_ALLY.json
index f0107a9..6ccb492 100644
--- a/npcs/TALK_MAID_ALLY.json
+++ b/npcs/TALK_MAID_ALLY.json
@@ -48,7 +48,7 @@
         "topic": "TALK_MAID_CONVERSATION",
         "condition": "at_safe_space",
         "switch": true,
-        "effect": { "npc_add_trait": "BGSS_Confused_1" },
+        "effect": { "npc_add_trait": "BGSS_MAID_KAWAII_1" },
         "//": "If the NPC doesn't have a BG survival story flagged trait, and didn't start the game as a static NPC, give them a BG story.",
         "//2": "This is a stand-in for some kind of better system to add a random trait."
       },
diff --git a/npcs/backgrounds.json b/npcs/backgrounds.json
new file mode 100644
index 0000000..230de14
--- /dev/null
+++ b/npcs/backgrounds.json
@@ -0,0 +1,32 @@
+[
+  {
+    "type": "mutation",
+    "id": "BGSS_MAID_KAWAII_1",
+    "name": { "str": "Survivor Story" },
+    "points": 0,
+    "description": "This NPC could tell you about how they survived the Cataclysm",
+    "player_display": false,
+    "valid": false,
+    "purifiable": false,
+    "types": [ "BACKGROUND_SURVIVAL_STORY" ],
+    "flags": [ "BG_SURVIVAL_STORY" ]
+  },
+  {
+    "id": "BGSS_MAID_KAWAII_1_STORY1",
+    "type": "talk_topic",
+    "dynamic_line": "My history? You mean before I served you? ...I'm sorry, but...",
+    "responses": [ { "text": "<done_conversation_section>", "topic": "TALK_FRIEND" }, { "text": "<end_talking>", "topic": "TALK_DONE" } ]
+  },
+  {
+    "id": "TALK_FRIEND_CONVERSATION",
+    "type": "talk_topic",
+    "responses": [
+      {
+        "text": "<BGSS_intro_question>",
+        "topic": "BGSS_MAID_KAWAII_1_STORY1",
+        "condition": { "npc_has_trait": "BGSS_MAID_KAWAII_1"  },
+        "switch": true
+      }
+    ]
+  }
+]
diff --git a/npcs/classes.json b/npcs/classes.json
index 5598937..c072550 100644
--- a/npcs/classes.json
+++ b/npcs/classes.json
@@ -17,6 +17,7 @@
     "traits": [
       { "group": "NPC_starting_traits" },
       { "group": "Appearance_Germanic" },
+      [ "BGSS_MAID_KAWAII_1", 100 ],
       [ "PROF_MA_MAID", 100 ],
       [ "DEFT", 100 ],
       [ "FLEET", 100 ],
-- 
cgit v1.2.1