[
  {
    "type": "npc",
    "id": "isherwood_eddie",
    "//": "Dairy farmer of the Isherwood family.",
    "//2": "Brother of Carlos, BIL of Jesse.  Uncle of Lisa and Chris, father of Luke.  Son of Claire and Jack, nephew of Barry.",
    "name_unique": "Eddie Isherwood",
    "gender": "male",
    "class": "NC_ISHERWOOD_EDDIE",
    "attitude": 0,
    "mission": 7,
    "age": 41,
    "height": 179,
    "str": 9,
    "dex": 7,
    "int": 7,
    "per": 8,
    "personality": { "aggression": -4, "bravery": -1, "collector": 1, "altruism": 1 },
    "chat": "TALK_ISHERWOOD_EDDIE",
    "mission_offered": "MISSION_ISHERWOOD_EDDIE_1",
    "faction": "isherwood_family"
  },
  {
    "type": "npc_class",
    "id": "NC_ISHERWOOD_EDDIE",
    "name": { "str": "Eddie Isherwood" },
    "job_description": "I'm a dairy farmer, part of the Isherwood family",
    "traits": [
      { "trait": "ASTHMA" },
      { "trait": "JITTERY" },
      { "trait": "OPTIMISTIC" },
      { "trait": "SKIN_TAN" },
      { "trait": "eye_color", "variant": "hazel" },
      { "trait": "hair_short", "variant": "black" },
      { "trait": "NO_BASH" },
      { "trait": "RETURN_TO_START_POS" }
    ],
    "common": false,
    "bonus_per": { "one_in": 4 },
    "worn_override": "NC_Isherwood_male_worn",
    "weapon_override": "NC_ISHERWOOD_rifle",
    "shopkeeper_item_group": "NC_ISHERWOOD_EDDIE_misc",
    "skills": [
      {
        "skill": "ALL",
        "level": { "mul": [ { "one_in": 3 }, { "sum": [ { "dice": [ 2, 2 ] }, { "constant": -2 }, { "one_in": 4 } ] } ] }
      },
      { "skill": "speech", "bonus": { "rng": [ 2, 4 ] } },
      { "skill": "melee", "bonus": { "rng": [ 3, 6 ] } },
      { "skill": "survival", "bonus": { "rng": [ 3, 6 ] } },
      { "skill": "gun", "bonus": { "rng": [ 3, 6 ] } },
      { "skill": "rifle", "bonus": { "rng": [ 4, 8 ] } },
      { "skill": "archery", "bonus": { "rng": [ 4, 8 ] } }
    ]
  },
  {
    "type": "item_group",
    "id": "NC_ISHERWOOD_EDDIE_misc",
    "subtype": "distribution",
    "entries": [
      { "prob": 55, "group": "cheese_hard_wrapper_8" },
      { "prob": 55, "group": "cheese_bag_plastic" },
      { "prob": 55, "group": "butter_wrapper_32" },
      { "item": "meat_smoked", "prob": 45 },
      { "item": "fish_smoked", "prob": 25 },
      { "item": "milk", "prob": 70, "charges": 12, "container-item": "jar_3l_glass_sealed" }
    ]
  },
  {
    "type": "talk_topic",
    "id": [ "TALK_ISHERWOOD_EDDIE", "TALK_ISHERWOOD_EDDIE_ConvincedMarshal" ],
    "responses": [
      {
        "text": "Nice dairy, must be tough keeping it running.",
        "topic": "TALK_ISHERWOOD_EDDIE_TALK1",
        "effect": [ { "u_add_var": "u_met_Eddie_Isherwood", "value": "yes" }, { "u_add_var": "u_met_an_isherwood", "value": "yes" } ],
        "condition": { "not": { "u_is_wearing": "badge_marshal" } }
      },
      {
        "text": "Can I do anything for you?",
        "topic": "TALK_MISSION_LIST",
        "condition": { "not": { "u_is_wearing": "badge_marshal" } }
      },
      {
        "text": "Have anything to trade?",
        "topic": "TALK_ISHERWOOD_EDDIE",
        "effect": "start_trade",
        "condition": { "not": { "u_is_wearing": "badge_marshal" } }
      },
      { "text": "When will your cows produce again?", "topic": "TALK_ISHERWOOD_EDDIE_RESTOCK" },
      {
        "text": "<end_talking_leave>",
        "topic": "TALK_DONE",
        "condition": { "not": { "u_is_wearing": "badge_marshal" } }
      }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_ISHERWOOD_EDDIE",
    "dynamic_line": {
      "concatenate": [
        "*is a sun-worn, middle-aged man with crows feet and graying hair.  He looks up as you approach, ",
        {
          "u_is_wearing": "badge_marshal",
          "yes": "then sneers as he spots the Old Guard Marshal badge gleaming on your chest.  \"I already told your kind not to come around here.  You need to keep on walking, straight off this property.\"",
          "no": {
            "u_male": true,
            "yes": "then gives you a little greeting wave.  \"Hello Sir, what brings you here?\"",
            "no": "then gives you a little greeting wave.  \"Hello Ma'am, what brings you here?\""
          }
        }
      ]
    },
    "responses": [
      {
        "text": "Yeah, I'm a Marshal, what are you going to do about it?",
        "topic": "TALK_LEAVE_NOW_MARSHAL",
        "effect": "hostile",
        "opinion": { "trust": -20, "value": -20 },
        "condition": { "u_is_wearing": "badge_marshal" }
      },
      {
        "text": "…[Leave.]",
        "topic": "TALK_DONE",
        "opinion": { "trust": -20, "value": -20 },
        "effect": { "npc_first_topic": "TALK_ISHERWOOD_EDDIE_SawMarshal" },
        "condition": { "u_is_wearing": "badge_marshal" }
      },
      {
        "text": "Luke said you guys have some issues with the Old Guard.  What's up with that?",
        "topic": "TALK_ISHERWOOD_EDDIE_Marshal",
        "condition": {
          "and": [
            { "compare_string": [ "known", { "u_val": "isherwood_luke_marshal_questions" } ] },
            { "not": { "u_is_wearing": "badge_marshal" } }
          ]
        }
      }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_ISHERWOOD_EDDIE_SawMarshal",
    "dynamic_line": {
      "u_is_wearing": "badge_marshal",
      "yes": "*glares at your marshal badge.  \"I said, keep *walking*, G-man.\"",
      "no": "*spits on the ground, glancing at where your marshal badge would have been, and shaking his head.  \"Nice try.  You can take off the badge, but I know what you are, I'm not some country rube.  Get out.\""
    },
    "responses": [
      {
        "text": "<color_green>[Social 3]</color> I swear, I'm not here to cause trouble.  I just volunteer with those guys to help travelers, things like that.  I don't speak for them.",
        "topic": "TALK_ISHERWOOD_EDDIE_MarshalOff_Convince",
        "condition": { "and": [ { "not": { "u_is_wearing": "badge_marshal" } }, { "math": [ "u_skill('speech') >= 3" ] } ] }
      },
      {
        "text": "<color_yellow>[Social <3]</color> I took it off man, what more do you want from me?",
        "topic": "TALK_ISHERWOOD_EDDIE_MarshalOff_GoAway",
        "condition": { "and": [ { "not": { "u_is_wearing": "badge_marshal" } }, { "math": [ "u_skill('speech') < 3" ] } ] }
      },
      { "text": "Fine, I'm gone.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_ISHERWOOD_EDDIE_ConvincedMarshal",
    "dynamic_line": {
      "concatenate": [
        "*looks up warily as you approach",
        {
          "u_is_wearing": "badge_marshal",
          "yes": ", looking at your marshal badge immediately.  \"Nope.  Agreement or not, I'm not talking to you while you're wearing their sign, and I don't appreciate the disrespect.\"",
          "no": ", his eyes darting to the spot where your marshal badge would be.  \"What now?\""
        }
      ]
    },
    "responses": [
      {
        "text": "…[Leave.]",
        "topic": "TALK_DONE",
        "opinion": { "trust": -10, "value": -10 },
        "condition": { "u_is_wearing": "badge_marshal" }
      },
      {
        "text": "What's the deal with you and the Old Guard, anyway?",
        "topic": "TALK_ISHERWOOD_EDDIE_Marshal",
        "condition": { "not": { "u_is_wearing": "badge_marshal" } }
      }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_ISHERWOOD_EDDIE_Marshal",
    "dynamic_line": "*spits on the ground.  \"Didn't much care for the government and the cops before everything happened, care for them quite a bit less now.  We've had a run-in or two with the folks calling themselves the 'Old Guard'.  That's all I care to say about it.  They'll never be welcome on my land and I don't believe for a second that they didn't cause all this in the first place.\"",
    "responses": [
      { "text": "<done_conversation_section>", "topic": "TALK_ISHERWOOD_EDDIE_TOPICS" },
      { "text": "Thanks for telling me.  <end_talking_bye>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_ISHERWOOD_EDDIE_MarshalOff_Convince",
    "dynamic_line": "*grimaces.  \"Fine, I'll give you a chance, but you don't mess with me or my family, you understand?  This is our land, not yours.  Or theirs.\"",
    "speaker_effect": { "effect": { "npc_first_topic": "TALK_ISHERWOOD_EDDIE_ConvincedMarshal" } },
    "responses": [
      { "text": "Thanks for hearing me out.", "topic": "TALK_ISHERWOOD_EDDIE_TOPICS" },
      { "text": "Thanks.  I'll give you space for now.", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_ISHERWOOD_EDDIE_MarshalOff_GoAway",
    "dynamic_line": "I feel like maybe you didn't hear me right.  Get.  Off.  My.  Land.",
    "responses": [
      {
        "text": "You can't make me.",
        "topic": "TALK_LEAVE_NOW_MARSHAL",
        "effect": "hostile",
        "opinion": { "trust": -20, "value": -20 }
      },
      { "text": "…[Leave.]", "topic": "TALK_DONE", "opinion": { "trust": -20, "value": -20 } }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_ISHERWOOD_EDDIE_Marshal",
    "dynamic_line": "*spits on the ground.  \"Didn't much care for the government and the cops before everything happened, care for them quite a bit less now.  We've had a run-in or two with the folks calling themselves the 'Old Guard'.  That's all I care to say about it.  They'll never be welcome on my land and I don't believe for a second that they didn't cause all this in the first place.\"",
    "responses": [
      { "text": "<done_conversation_section>", "topic": "TALK_ISHERWOOD_EDDIE_TOPICS" },
      { "text": "Thanks for telling me.  <end_talking_bye>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_ISHERWOOD_EDDIE_RESTOCK",
    "dynamic_line": "If the cows don't get anything nasty it should be around <interval>.",
    "responses": [ { "text": "Cheers, bye.", "topic": "TALK_DONE" } ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_ISHERWOOD_EDDIE_TALK1",
    "dynamic_line": "I run this dairy with my son, Luke.  It's been a tough job keeping the herd together, hasn't left a lot of time for other projects.",
    "responses": [
      {
        "text": "I heard about Barry, such a tragedy.  Can you tell me more about what happened?",
        "topic": "TALK_ISHERWOOD_EDDIE2",
        "condition": {
          "and": [
            { "not": { "u_is_wearing": "badge_marshal" } },
            { "compare_string": [ "yes", { "u_val": "u_learned_barry_missing" } ] }
          ]
        }
      },
      { "text": "<done_conversation_section>", "topic": "TALK_ISHERWOOD_EDDIE_TOPICS" },
      { "text": "<end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_ISHERWOOD_EDDIE2",
    "dynamic_line": "*speaks in a quiet monotone, like he's reading off a page.  \"Barry and Carlos went to hunt down something that killed our livestock, they tracked it into the forest.  It grabbed Barry and ran off, you might be able to get Carlos to tell you the story, if he can bring himself to share what happened.\"",
    "responses": [
      { "text": "<done_conversation_section>", "topic": "TALK_ISHERWOOD_EDDIE_TOPICS" },
      { "text": "<end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_JACK_CLAIRE",
    "dynamic_line": "Yeah, I could use some help getting materials.  I want to outfit that old building across the road with some kilns.  We want to make our own jars and pottery so we aren't dependent on scavenging.",
    "responses": [
      { "text": "That is a good idea, what do you need?", "topic": "TALK_MISSION_LIST" },
      { "text": "<done_conversation_section>", "topic": "TALK_ISHERWOOD_EDDIE_TOPICS" },
      { "text": "I'm not interested right now.  <end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_EDDIE_LUKE",
    "dynamic_line": "Luke was going to start college this year, now everything is upside down.  He is adaptable though, had an idea to begin manufacturing our own jars and pottery.  He's out in the old outbuilding right now, cleaning up the place.",
    "speaker_effect": { "effect": { "u_add_var": "u_heard_about_luke", "value": "yes" } },
    "responses": [
      { "text": "<done_conversation_section>", "topic": "TALK_ISHERWOOD_EDDIE_TOPICS" },
      { "text": "<end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_EDDIE_JESSE",
    "dynamic_line": "Jesse manages the horses and other livestock, she is amazing with animals.",
    "responses": [
      { "text": "<done_conversation_section>", "topic": "TALK_ISHERWOOD_EDDIE_TOPICS" },
      { "text": "<end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_EDDIE_CARLOS",
    "dynamic_line": "Carlos will be in his workshop if he isn't out hunting.  He is trying to get a forge set up.",
    "speaker_effect": { "effect": { "u_add_var": "u_learned_about_forge", "value": "yes" } },
    "responses": [
      { "text": "<done_conversation_section>", "topic": "TALK_ISHERWOOD_EDDIE_TOPICS" },
      { "text": "<end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "type": "talk_topic",
    "id": "TALK_ISHERWOOD_EDDIE_TOPICS",
    "dynamic_line": "Go on…",
    "responses": [
      { "text": "Your son helps with the dairy?", "topic": "TALK_EDDIE_LUKE" },
      { "text": "So, Jesse runs the horse farm?", "topic": "TALK_EDDIE_JESSE" },
      { "text": "Where can I find Carlos?", "topic": "TALK_EDDIE_CARLOS" },
      { "text": "Let's trade items.", "topic": "TALK_ISHERWOOD_EDDIE", "effect": "start_trade" },
      { "text": "Can I do anything for you?", "topic": "TALK_MISSION_LIST" },
      { "text": "<end_talking_leave>", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": "MISSION_ISHERWOOD_EDDIE_1",
    "type": "mission_definition",
    "name": { "str": "Gather 120 Rocks" },
    "goal": "MGOAL_FIND_ITEM",
    "difficulty": 5,
    "value": 50000,
    "item": "rock",
    "count": 120,
    "origins": [ "ORIGIN_SECONDARY" ],
    "has_generic_rewards": false,
    "followup": "MISSION_ISHERWOOD_EDDIE_2",
    "dialogue": {
      "describe": "We need to build some kilns.",
      "offer": "I could use 120 rocks to construct some kilns.",
      "accepted": "You can break up some larger stones, or gather them up from the fields.",
      "rejected": "Thanks anyway, we'll find the time to get them ourselves.",
      "advice": "Mining would always be an option if you had the resources.",
      "inquire": "Do you have the stone?",
      "success": "I appreciate it, this will make Luke happy.",
      "success_lie": "What good does this do us?",
      "failure": "It was a lost cause anyways…"
    },
    "end": {
      "opinion": { "trust": 1, "value": 1 },
      "effect": [
        { "u_spawn_item": "meat_smoked", "count": 12 },
        { "u_spawn_item": "milk", "container": "jar_3l_glass_sealed", "count": 12 }
      ],
      "update_mapgen": [
        {
          "om_terrain": "rural_outbuilding",
          "place_nested": [ { "chunks": [ "isherwood_outbuilding_kilns" ], "x": 0, "y": 0 } ],
          "set": [
            { "point": "furniture", "id": "f_kiln_empty", "x": 8, "y": 13 },
            { "point": "furniture", "id": "f_forge_rock", "x": 9, "y": 6 },
            { "point": "furniture", "id": "f_clay_kiln", "x": 7, "y": 6 }
          ]
        }
      ]
    }
  },
  {
    "id": "MISSION_ISHERWOOD_EDDIE_2",
    "type": "mission_definition",
    "name": { "str": "Gather 2000 units of sand" },
    "goal": "MGOAL_FIND_ITEM",
    "difficulty": 3,
    "value": 20000,
    "item": "material_sand",
    "count": 2000,
    "followup": "MISSION_ISHERWOOD_EDDIE_3",
    "end": {
      "opinion": { "trust": 1, "value": 1 },
      "effect": [
        { "u_spawn_item": "butter", "count": 6 },
        { "u_spawn_item": "milk", "container": "jar_3l_glass_sealed", "count": 12 }
      ]
    },
    "origins": [ "ORIGIN_SECONDARY" ],
    "has_generic_rewards": false,
    "dialogue": {
      "describe": "I do have some resource gathering I could use help with.",
      "offer": "Now that the forge is set up, we could use 2000 units of sand to get production going.",
      "accepted": "Thank you.",
      "rejected": "Oh well.  I'll try to find time to get it myself, thanks.",
      "advice": "You can find it along river banks, or maybe landscaping supplies and hardware stores.",
      "inquire": "How is the search going?",
      "success": "Thanks, now Luke can get started.  Here's a token of my thanks.",
      "success_lie": "What good does this do us?",
      "failure": "I wonder where all the sand went…"
    }
  },
  {
    "id": "MISSION_ISHERWOOD_EDDIE_3",
    "type": "mission_definition",
    "name": { "str": "Gather 100 units of clay" },
    "goal": "MGOAL_FIND_ITEM",
    "difficulty": 3,
    "value": 20000,
    "item": "clay_lump",
    "count": 100,
    "end": {
      "opinion": { "trust": 2, "value": 2 },
      "effect": [
        { "u_add_var": "u_did_eddie_missions", "value": "yes" },
        { "u_spawn_item": "rope_6", "count": 1 },
        { "u_buy_monster": "mon_cow", "count": 1, "name": "Daisy" },
        { "u_spawn_item": "cattlefodder", "count": 3 }
      ]
    },
    "origins": [ "ORIGIN_SECONDARY" ],
    "has_generic_rewards": false,
    "dialogue": {
      "describe": "I do have some resource gathering I could use help if you have time.",
      "offer": "Now that the clay kiln is set up, we could use 100 units of clay to get production going.",
      "accepted": "Thank you.",
      "rejected": "Oh well.  I'll try to find time to get it myself, thanks.",
      "advice": "You can find it along river banks, or maybe look for deposits in the forest.",
      "inquire": "How is the search going?",
      "success": "Thanks, now Luke can get started making jugs, We'd like to give you a cow, Here's Daisy, take good care of her and she'll provide you with milk.",
      "success_lie": "What good does this do us?",
      "failure": "I wonder where all the sand went…"
    }
  }
]
