[
  {
    "id": "MISSION_CABIN_CHEMIST_GET_analytical_set_basic",
    "type": "mission_definition",
    "name": "Find A Basic Analysis Kit",
    "description": "Obtain a basic laboratory analysis kit for the chemist.",
    "goal": "MGOAL_FIND_ITEM",
    "item": "analytical_set_basic",
    "count": 1,
    "difficulty": 2,
    "value": 3000,
    "origins": [ "ORIGIN_SECONDARY" ],
    "followup": "MISSION_CABIN_CHEMIST_GET_60_chem_muriatic_acid",
    "has_generic_rewards": true,
    "dialogue": {
      "describe": "I need a basic laboratory analysis kit.",
      "offer": "I've checked the stock here at this house, and it turns out there's a few pieces of equipment I need.  Firstly, I need a reliable way to take measurements and verify results.  If you could get me a basic laboratory analysis kit just to get started, I'd be grateful.  That's the first step towards making everything I brought with me useful.",
      "advice": "One of those old labs might have one.",
      "accepted": "I'll be here when you get back.  Good luck!",
      "rejected": "Well, someone's got to do it.",
      "inquire": "Do you have it?",
      "success": "Thank you!  I can't wait to get started!",
      "success_lie": "Thanks for trying… I guess.",
      "failure": "That's unfortunate.  I guess I'll have to find it myself."
    }
  },
  {
    "id": "MISSION_CABIN_CHEMIST_GET_60_chem_muriatic_acid",
    "type": "mission_definition",
    "name": "Find Some Hydrochloric Acid",
    "description": "Obtain 15 liters of hydrochloric acid for the chemist.",
    "//": "Hydrochloric acid is used for basically everything the chemist sells, so trading with them is gated behind this quest.",
    "goal": "MGOAL_FIND_ITEM",
    "item": "chem_muriatic_acid",
    "count": 60,
    "difficulty": 7,
    "value": 10000,
    "origins": [ "ORIGIN_SECONDARY" ],
    "end": { "effect": [ { "npc_add_var": "mass_chem_tradeable", "type": "dialogue", "context": "trade", "value": "yes" } ] },
    "followup": "MISSION_CABIN_CHEMIST_GET_500_GAS",
    "has_generic_rewards": true,
    "dialogue": {
      "describe": "I need 15 liters of hydrochloric acid.",
      "offer": "The last thing I really need to get going is hydrochloric acid.  It's one of those chemicals that's just perfect for so many things.  An acidifying reagent, and one of the best.  With a large supply of hydrochloric acid, you and I are only a few steps removed from a stable source of antiseptic, fungicide, and even some light explosives!  As the only apparent health authority left, I do have to warn you not to get it on your skin, though.  Find this for me and I'll sell you whatever I can make.",
      "advice": "You might find large quantities in a warehouse somewhere, but it often got sold as a household cleaner, did you know that?",
      "accepted": "I'll be here when you get back.  Good luck!",
      "rejected": "Well, someone's got to do it.",
      "inquire": "Do you have the hydrochloric acid?",
      "success": "Wonderful!  I'm sure this will be quite helpful.",
      "success_lie": "Thanks for trying… I guess.",
      "failure": "That's unfortunate.  I guess I'll have to find it myself."
    }
  },
  {
    "id": "MISSION_CABIN_CHEMIST_GET_500_GAS",
    "type": "mission_definition",
    "name": "Find Some Gasoline",
    "description": "Obtain 100 liters of gasoline for the chemist.",
    "//": "Gasoline is absurdly valuable post-apocalypse and they're asking for a lot of gasoline.",
    "goal": "MGOAL_FIND_ITEM",
    "item": "gasoline",
    "count": 500,
    "difficulty": 10,
    "value": 1600000,
    "origins": [ "ORIGIN_SECONDARY" ],
    "followup": "MISSION_CABIN_CHEMIST_SET_TRADE_ROUTE",
    "has_generic_rewards": true,
    "dialogue": {
      "describe": "I need 100 liters of gas.",
      "offer": "I'm in a bit of a spot.  I keep a generator around here to power all my scientific equipment.  It has a bit of gas in it, but I've burned through that and I can't use most of my tools without power.  This may seem like a lot, but if you could get me 100 liters of gas, I'll pay you back any way I can.",
      "advice": "I bet the best place to find that much gas is still a gas station.  Bringing it all here is another problem.  You might want one of those big steel drums we used to use to haul off hazardous waste before <the_cataclysm>.",
      "accepted": "I'll be here when you get back.  Good luck!",
      "rejected": "Well, someone's got to do it.",
      "inquire": "Do you have it?",
      "success": "Wonderful!  Thank you so much!  This will keep me running for a long, long time.",
      "success_lie": "Thanks for trying…  I guess.",
      "failure": "That's unfortunate.  I guess I'll have to find it myself."
    }
  },
  {
    "id": "MISSION_CABIN_CHEMIST_SET_TRADE_ROUTE",
    "type": "mission_definition",
    "name": "Establish A Trade Route",
    "description": "Establish trade relations between the chemist and a refugee center, and bring back a writ of the agreement.",
    "goal": "MGOAL_FIND_ITEM",
    "item": "trade_writ",
    "count": 1,
    "difficulty": 30,
    "value": 20000,
    "origins": [ "ORIGIN_SECONDARY" ],
    "start": { "assign_mission_target": { "om_terrain": "evac_center_18", "om_special": "evac_center", "reveal_radius": 0 } },
    "has_generic_rewards": true,
    "dialogue": {
      "describe": "Go negotiate a trade agreement.",
      "offer": "I was out scavenging recently, and I found one of those old evac shelters.  Turns out the computer was still on and it had an address for a refugee center.  I think my skills might be useful to them, for helping maintain medical supplies and whatnot, so I want you to head over there and see if they're interested.  I'd do it myself, but I need to look after this place.",
      "advice": "It should be pretty simple making the deal, but I'd recommend taking a car over there myself.",
      "accepted": "I'll be here when you get back.  Good luck!",
      "rejected": "Please?  This is really important to me.",
      "inquire": "What did they say about it?",
      "success": "Thank you!",
      "success_lie": "How does this help me?",
      "failure": "That's unfortunate.  I guess I'll have to find other customers."
    }
  }
]
