[
  {
    "id": [ "TALK_FRIEND" ],
    "type": "talk_topic",
    "responses": [
      {
        "text": "[Telepathy] *Read <npc_name>'s mind*",
        "topic": "TALK_FRIEND_FOLLOWER_scan",
        "condition": { "u_has_trait": "TELEPATH" }
      },
      {
        "text": "[Vitakinesis] I noticed that you're really sick.",
        "topic": "TALK_FRIEND_VITAKINETIC_CURE_ILLNESS",
        "condition": {
          "and": [
            {
              "or": [
                { "npc_has_trait": "ASTHMA" },
                { "npc_has_trait": "CHEMIMBALANCE" },
                { "npc_has_trait": "SCHIZOPHRENIC" },
                { "npc_has_trait": "JITTERY" },
                { "npc_has_trait": "MOODSWINGS" },
                { "npc_has_trait": "WEAKENING" },
                { "npc_has_trait": "NARCOLEPTIC" },
                { "npc_has_trait": "SEASONAL_ALLERGIES" },
                { "npc_has_trait": "SEASONAL_AFFECTIVE" }
              ]
            },
            { "u_has_trait": "VITAKINETIC" }
          ]
        }
      },
      {
        "text": "[Vitakinesis] You don't look so good.",
        "topic": "TALK_FRIEND_VITAKINETIC_CURE_DISEASE_LUNGS",
        "condition": {
          "and": [
            {
              "or": [
                { "npc_has_effect": "pre_common_cold" },
                { "npc_has_effect": "common_cold" },
                { "npc_has_effect": "pre_flu" },
                { "npc_has_effect": "flu" }
              ]
            },
            { "u_has_trait": "VITAKINETIC" }
          ]
        }
      },
      {
        "text": "[Vitakinesis] Is there something wrong with your eyes?",
        "topic": "TALK_FRIEND_VITAKINETIC_CURE_DISEASE_EYES",
        "condition": {
          "and": [
            {
              "or": [
                { "npc_has_effect": "pre_conjunctivitis_viral" },
                { "npc_has_effect": "conjunctivitis_viral" },
                { "npc_has_effect": "pre_conjunctivitis_bacterial" },
                { "npc_has_effect": "conjunctivitis_bacterial" }
              ]
            },
            { "u_has_trait": "VITAKINETIC" }
          ]
        }
      }
    ]
  },
  {
    "id": [ "TALK_FRIEND_FOLLOWER_scan" ],
    "type": "talk_topic",
    "dynamic_line": [ "<telepathy_generic>", "<telepathy_follower>" ],
    "responses": [ { "text": "…", "topic": "TALK_FRIEND" } ]
  },
  {
    "id": [ "TALK_FRIEND_VITAKINETIC_CURE_ILLNESS" ],
    "//": "Debug Mind Control will lead to auto-failure due to the formatting below.  Be careful when testing!",
    "type": "talk_topic",
    "dynamic_line": [
      "And?",
      "Yeah, it is what it is.",
      "Those storms at the end of world…  I was fine before them.",
      "You noticed, did you?",
      "Yeah, I've had it for years at this point.  Not much I can do about it now, though.",
      "Really wish I had gotten some more treatment before, you know."
    ],
    "responses": [
      {
        "text": "I can cure your illness for you.",
        "condition": { "and": [ { "not": "is_by_radio" }, { "not": { "npc_has_trait": "HALLUCINATION" } } ] },
        "trial": {
          "type": "CONDITION",
          "condition": {
            "or": [
              { "npc_need": "thirst", "amount": 80 },
              { "npc_need": "hunger", "amount": 160 },
              { "npc_need": "fatigue", "level": "TIRED" },
              "u_driving",
              "npc_driving",
              { "npc_has_effect": "asked_to_vitakinetic_heal" }
            ]
          }
        },
        "success": { "topic": "TALK_DENY_VITAKINETIC_HEALING" },
        "failure": { "topic": "TALK_PERSUADE_VITAKINETIC_HEALING" }
      }
    ]
  },
  {
    "id": "TALK_DENY_VITAKINETIC_HEALING",
    "type": "talk_topic",
    "dynamic_line": {
      "u_driving": "We'll talk about that after you're done operating that vehicle.",
      "no": {
        "npc_driving": "I don't want to talk about that while I'm operating a vehicle!",
        "no": {
          "npc_need": "thirst",
          "amount": 80,
          "no": {
            "npc_need": "hunger",
            "amount": 160,
            "no": {
              "npc_need": "fatigue",
              "level": "TIRED",
              "no": {
                "npc_has_effect": "asked_to_vitakinetic_heal",
                "no": "I have some reason to refuse healing.",
                "yes": "I already told you no.  Let it go."
              },
              "yes": "I'm too tired, let me rest first."
            },
            "yes": "I'm too hungry, give me something to eat."
          },
          "yes": "I'm too thirsty, give me something to drink."
        }
      }
    },
    "responses": [ { "text": "Ah, okay.", "topic": "TALK_FRIEND" } ]
  },
  {
    "id": [ "TALK_FRIEND_VITAKINETIC_CURE_DISEASE_LUNGS" ],
    "type": "talk_topic",
    "dynamic_line": [
      "* coughs.  \"Yeah, I'm not feeling so great",
      "No.  No I don't.",
      "Yeah, I think I'm coming down with something.",
      "Ugh, yeah.  If only I could call in sick, you know?"
    ],
    "responses": [
      {
        "text": "I can cure it for you.",
        "condition": { "and": [ { "not": "is_by_radio" }, { "not": { "npc_has_trait": "HALLUCINATION" } } ] },
        "trial": {
          "type": "CONDITION",
          "condition": {
            "or": [
              { "npc_need": "thirst", "amount": 80 },
              { "npc_need": "hunger", "amount": 160 },
              { "npc_need": "fatigue", "level": "TIRED" },
              "u_driving",
              "npc_driving",
              { "npc_has_effect": "asked_to_vitakinetic_heal" }
            ]
          }
        },
        "success": { "topic": "TALK_DENY_VITAKINETIC_HEALING" },
        "failure": { "topic": "TALK_PERSUADE_VITAKINETIC_HEALING" }
      }
    ]
  },
  {
    "id": [ "TALK_FRIEND_VITAKINETIC_CURE_DISEASE_EYES" ],
    "type": "talk_topic",
    "dynamic_line": [
      "They just itch like crazy at all time lately.",
      "Yeah, I guess.  Must have got something in them.",
      "Yeah, I think I'm coming down with something.",
      "Ugh, yeah.  If only I could call in sick, you know?"
    ],
    "responses": [
      {
        "text": "I can cure it for you.",
        "condition": { "and": [ { "not": "is_by_radio" }, { "not": { "npc_has_trait": "HALLUCINATION" } } ] },
        "trial": {
          "type": "CONDITION",
          "condition": {
            "or": [
              { "npc_need": "thirst", "amount": 80 },
              { "npc_need": "hunger", "amount": 160 },
              { "npc_need": "fatigue", "level": "TIRED" },
              "u_driving",
              "npc_driving",
              { "npc_has_effect": "asked_to_vitakinetic_heal" }
            ]
          }
        },
        "success": { "topic": "TALK_DENY_VITAKINETIC_HEALING" },
        "failure": { "topic": "TALK_PERSUADE_VITAKINETIC_HEALING" }
      }
    ]
  },
  {
    "id": "TALK_PERSUADE_VITAKINETIC_HEALING",
    "type": "talk_topic",
    "dynamic_line": "You're going to what?  How are you going to do that?",
    "responses": [
      {
        "text": "You've seen what I can do, right?  Let me try.  (Note: By doing this you will absorb <npc_name>'s disease into yourself.)",
        "trial": { "type": "PERSUADE", "difficulty": 0, "mod": [ [ "TRUST", 6 ], [ "VALUE", 2 ], [ "ANGER", -6 ] ] },
        "success": { "topic": "TALK_ACCEPT_VITAKINETIC_HEALING" },
        "failure": {
          "topic": "TALK_DENY_VITAKINETIC_HEALING_NON_PERSUADE",
          "effect": { "npc_add_effect": "asked_to_vitakinetic_heal", "duration": 86400 }
        }
      },
      { "text": "Never mind then.", "topic": "TALK_FRIEND" },
      { "text": "Forget it, let's get going.", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": "TALK_DENY_VITAKINETIC_HEALING_NON_PERSUADE",
    "type": "talk_topic",
    "dynamic_line": "I don't think so.  I know there are zombies out there and the world is all fucked up, but I'd rather keep that fucked-up-ness as far away from me as possible.  No offense.",
    "responses": [ { "text": "Alright, if you insist.", "topic": "TALK_DONE" } ]
  },
  {
    "id": "TALK_ACCEPT_VITAKINETIC_HEALING",
    "type": "talk_topic",
    "dynamic_line": [
      "Alright, it can't be worse than what I'm already going through.",
      "Sure, I'll try anything at this point.",
      "Okay.  The medicine's going to run out someday and then I'll really be fucked.  If this works…",
      "Yeah, I feel awful.  What have I got to lose?"
    ],
    "responses": [
      {
        "text": "Hold still.  *Remove <npc_name>'s cold*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_effect": "pre_common_cold" } ] },
        "effect": [
          { "npc_lose_effect": "pre_common_cold" },
          { "u_add_effect": "pre_common_cold", "duration": "36 hours" },
          { "queue_eocs": "EOC_MINDOVERMATTER_PRE_COLD_TO_COLD", "time_in_future": [ "18 hours", "36 hours" ] },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their lungs, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s cold*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_effect": "common_cold" } ] },
        "effect": [
          { "npc_lose_effect": "common_cold" },
          { "u_add_effect": "common_cold", "duration": { "math": [ "rng(86400,1209600)" ] } },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their lungs, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s flu*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_effect": "pre_flu" } ] },
        "effect": [
          { "npc_lose_effect": "pre_flu" },
          { "u_add_effect": "pre_flu", "duration": "36 hours" },
          { "queue_eocs": "EOC_MINDOVERMATTER_PRE_FLU_TO_FLU", "time_in_future": [ "18 hours", "36 hours" ] },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their lungs, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s flu*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_effect": "flu" } ] },
        "effect": [
          { "npc_lose_effect": "flu" },
          { "u_add_effect": "flu", "duration": { "math": [ "rng(259200,864000)" ] } },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their lungs, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s pinkeye*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_effect": "pre_conjunctivitis_viral" } ] },
        "effect": [
          { "npc_lose_effect": "pre_conjunctivitis_viral" },
          { "u_add_effect": "pre_conjunctivitis_viral", "duration": "72 hours" },
          {
            "queue_eocs": "EOC_MINDOVERMATTER_PRE_CONJUNCTIVITIS_VIRAL_TO_CONJUNCTIVITIS_VIRAL",
            "time_in_future": [ "24 hours", "72 hours" ]
          },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their eyes, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s pinkeye*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_effect": "conjunctivitis_viral" } ] },
        "effect": [
          { "npc_lose_effect": "conjunctivitis_viral" },
          { "u_add_effect": "conjunctivitis_viral", "duration": { "math": [ "rand(259200) + 432000" ] } },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their eyes, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s pinkeye*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_effect": "pre_conjunctivitis_bacterial" } ] },
        "effect": [
          { "npc_lose_effect": "pre_conjunctivitis_bacterial" },
          { "u_add_effect": "pre_conjunctivitis_bacterial", "duration": "72 hours" },
          {
            "queue_eocs": "EOC_MINDOVERMATTER_PRE_CONJUNCTIVITIS_BACTERIAL_TO_CONJUNCTIVITIS_BACTERIAL",
            "time_in_future": [ "24 hours", "72 hours" ]
          },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their eyes, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s pinkeye*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_effect": "conjunctivitis_bacterial" } ] },
        "effect": [
          { "npc_lose_effect": "conjunctivitis_bacterial" },
          { "u_add_effect": "conjunctivitis_bacterial", "duration": { "math": [ "rand(259200) + 432000" ] } },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their eyes, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s asthma*",
        "topic": "TALK_DONE",
        "condition": {
          "and": [
            { "npc_has_trait": "ASTHMA" },
            { "not": { "u_has_trait": "ASTHMA" } },
            { "not": { "u_has_bionics": "bio_synlungs" } }
          ]
        },
        "effect": [
          { "npc_lose_trait": "ASTHMA" },
          { "u_add_trait": "ASTHMA" },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their lungs, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s asthma*",
        "topic": "TALK_DONE",
        "condition": {
          "and": [
            { "npc_has_trait": "ASTHMA" },
            { "not": { "u_has_effect": "effect_asthma_disease_absorbed" } },
            { "u_has_bionics": "bio_synlungs" }
          ]
        },
        "effect": [
          { "npc_lose_trait": "ASTHMA" },
          { "u_add_effect": "effect_asthma_disease_absorbed", "duration": "60 days" },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their lungs, and draw it into yourself.  It tries to find purchase in your lungs, but it can't; plastic and steel are immune to the weaknesses of the flesh.  Denied purchase there, it settles into the surrounding tissue.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s chemical imbalance*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_trait": "CHEMIMBALANCE" }, { "not": { "u_has_trait": "CHEMIMBALANCE" } } ] },
        "effect": [
          { "npc_lose_trait": "CHEMIMBALANCE" },
          { "u_add_trait": "CHEMIMBALANCE" },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their mind, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "15 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s kaluptic psychosis*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_trait": "SCHIZOPHRENIC" }, { "not": { "u_has_trait": "SCHIZOPHRENIC" } } ] },
        "effect": [
          { "npc_lose_trait": "SCHIZOPHRENIC" },
          { "u_add_trait": "SCHIZOPHRENIC" },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their mind, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "30 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s muscle jitters*",
        "topic": "TALK_DONE",
        "condition": { "npc_has_trait": "JITTERY" },
        "effect": [
          { "npc_lose_trait": "JITTERY" },
          { "u_add_trait": "JITTERY" },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their limbs, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "15 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s mood swings*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_trait": "MOODSWINGS" }, { "not": { "u_has_trait": "MOODSWINGS" } } ] },
        "effect": [
          { "npc_lose_trait": "MOODSWINGS" },
          { "u_add_trait": "MOODSWINGS" },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their mind, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "20 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s weakening sickness*",
        "topic": "TALK_DONE",
        "condition": { "npc_has_trait": "WEAKENING" },
        "effect": [
          { "npc_lose_trait": "WEAKENING" },
          { "u_add_trait": "WEAKENING" },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their entire body, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "20 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s narcolepsy*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_trait": "NARCOLEPTIC" }, { "not": { "u_has_trait": "NARCOLEPTIC" } } ] },
        "effect": [
          { "npc_lose_trait": "NARCOLEPTIC" },
          { "u_add_trait": "NARCOLEPTIC" },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their mind, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s seasonal allergies*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_trait": "SEASONAL_ALLERGIES" }, { "not": { "u_has_trait": "SEASONAL_ALLERGIES" } } ] },
        "effect": [
          { "npc_lose_trait": "SEASONAL_ALLERGIES" },
          { "u_add_trait": "SEASONAL_ALLERGIES" },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their head and lungs, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "10 minutes" }
        ]
      },
      {
        "text": "Hold still.  *Remove <npc_name>'s seasonal affective disorder*",
        "topic": "TALK_DONE",
        "condition": { "and": [ { "npc_has_trait": "SEASONAL_AFFECTIVE" }, { "not": { "u_has_trait": "SEASONAL_AFFECTIVE" } } ] },
        "effect": [
          { "npc_lose_trait": "SEASONAL_AFFECTIVE" },
          { "u_add_trait": "SEASONAL_AFFECTIVE" },
          {
            "u_message": "You touch <npc_name> and reach out with your powers, looking for the illness within them.  You soon find it, a shadow over their mind, and draw it into yourself.",
            "popup": true
          },
          { "u_assign_activity": "ACT_VITAKIN_BANISH_FOLLOWER_ILLNESS", "duration": "20 minutes" }
        ]
      },
      { "text": "Actually, maybe now's not the best time.", "topic": "TALK_DONE" }
    ]
  }
]
