[
  {
    "id": [ "BEM_ANCHOR_SELLER_1", "BEM_ANCHOR_SELLER_ASK" ],
    "type": "talk_topic",
    "dynamic_line": {
      "compare_string": [ "yes", { "u_val": "dialogue_BEM_ANCHOR_SELLER_ANCHOR_SELLER_paranormal" } ],
      "yes": { "gendered_line": "Sorry I'd rather be left alone right now.", "relevant_genders": [ "npc" ] },
      "no": {
        "gendered_line": "&A grim expression and deep sunken eyes imply some malady that can't be simply drowned with alcohol alone.  They interrupt you just as you were about to introduce yourself.  \"This anchor I'm wearing, I don't think I'll be needing it any more.  I-I'm just looking for someone to rid me of it",
        "relevant_genders": [ "npc" ]
      }
    },
    "responses": [
      {
        "text": "Offer to buy the anchor for 1 HGC.",
        "condition": { "not": { "compare_string": [ "yes", { "u_val": "dialogue_BEM_ANCHOR_SELLER_ANCHOR_SELLER_paranormal" } ] } },
        "topic": "BEM_ANCHOR_SELLER_2"
      },
      {
        "text": "Well, what's that thing for anyways?",
        "condition": { "not": { "compare_string": [ "yes", { "u_val": "dialogue_BEM_ANCHOR_SELLER_ANCHOR_SELLER_paranormal" } ] } },
        "topic": "BEM_ANCHOR_SELLER_ASK"
      },
      {
        "text": "Sorry, I don't think I can help you.",
        "condition": { "not": { "compare_string": [ "yes", { "u_val": "dialogue_BEM_ANCHOR_SELLER_ANCHOR_SELLER_paranormal" } ] } },
        "topic": "TALK_DONE"
      },
      {
        "text": "Alright, see you around then.",
        "condition": { "compare_string": [ "yes", { "u_val": "dialogue_BEM_ANCHOR_SELLER_ANCHOR_SELLER_paranormal" } ] },
        "topic": "TALK_DONE"
      }
    ]
  },
  {
    "id": "BEM_ANCHOR_SELLER_2",
    "type": "talk_topic",
    "dynamic_line": {
      "gendered_line": "It takes only a moment to retrieve a suitable coin from your pockets, and yet your interlocutor found enough time to disappear, having left a sharp emptiness both in memory and the chair before you.  The anchor has been neatly folded on the table.",
      "relevant_genders": [ "npc" ]
    },
    "speaker_effect": {
      "effect": [
        { "u_add_var": "dialogue_BEM_ANCHOR_SELLER_ANCHOR_SELLER_paranormal", "value": "yes" },
        { "run_eocs": "EOC_BEM_ANCHOR_SELLER_GONE", "time_in_future": [ "0s", "0s" ] }
      ]
    },
    "responses": [
      { "text": "Take the anchor.", "effect": [ { "u_spawn_item": "dimensional_anchor", "count": 1 } ], "topic": "TALK_DONE" },
      {
        "text": "Take the anchor and leave the coin.  Do we have a deal?",
        "condition": { "u_has_items": { "item": "RobofacCoin", "count": 1 } },
        "effect": [ { "u_sell_item": "RobofacCoin", "count": 1 }, { "u_spawn_item": "dimensional_anchor", "count": 1 } ],
        "topic": "TALK_DONE"
      },
      { "text": "Just leave, this isn't right at all.", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": "BEM_ANCHOR_SELLER_ASK",
    "type": "talk_topic",
    "dynamic_line": {
      "gendered_line": "The mercenary stares in silence, a flickering of the overhead lighting thankfully cuts the moment short.",
      "relevant_genders": [ "npc" ]
    }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_BEM_ANCHOR_SELLER_GONE",
    "effect": [ { "mapgen_update": "nest_ancilla_bar_remove_BEM_anchor_seller" } ]
  },
  {
    "type": "mapgen",
    "update_mapgen_id": "nest_ancilla_bar_remove_BEM_anchor_seller",
    "object": { "remove_npcs": [ { "class": "BEM_anchor_seller", "x": 0, "y": 0 } ] }
  }
]
