[
  {
    "type": "npc",
    "id": "forge_lord_librarian",
    "//": "The Librarian of the Forge of Wonders.",
    "name_unique": "Librarian, A",
    "name_suffix": "Forge Lord",
    "class": "NC_FORGE_LORD_LIBRARIAN",
    "attitude": 0,
    "mission": 3,
    "gender": "female",
    "chat": "TALK_FORGE_LORD_LIBRARIAN",
    "faction": "forge_lords"
  },
  {
    "type": "npc_class",
    "id": "NC_FORGE_LORD_LIBRARIAN",
    "name": { "str": "Forge Librarian" },
    "job_description": "I take care of the books and scrolls.",
    "traits": [
      { "trait": "VAULT_DEFENDER" },
      { "trait": "LIBRARY_DEFENDER" },
      { "group": "NPC_starting_traits" },
      { "group": "Appearance_demographics" }
    ],
    "//": "This is a unique NPC who doesn't get randomly selected background traits",
    "common": false,
    "bonus_int": { "one_in": 4 },
    "bonus_per": { "one_in": 4 },
    "shopkeeper_item_group": [ { "group": "NC_FORGE_LORD_STORE_LIBRARY_SHOP", "rigid": true } ],
    "worn_override": "NC_FORGE_LIBRARIAN_clothes",
    "skills": [
      {
        "skill": "ALL",
        "level": { "mul": [ { "one_in": 3 }, { "sum": [ { "dice": [ 2, 2 ] }, { "constant": -2 }, { "one_in": 4 } ] } ] }
      },
      { "skill": "unarmed", "bonus": { "one_in": 2 } },
      { "skill": "melee", "bonus": { "one_in": 2 } },
      { "skill": "gun", "bonus": { "rng": [ 0, 2 ] } },
      { "skill": "speech", "bonus": { "rng": [ 1, 3 ] } }
    ]
  },
  {
    "type": "item_group",
    "id": "NC_FORGE_LIBRARIAN_clothes",
    "subtype": "collection",
    "entries": [ { "item": "sundress", "prob": 100 }, { "item": "heels", "prob": 100 }, { "item": "sweater", "prob": 100 } ]
  },
  {
    "type": "item_group",
    "subtype": "collection",
    "id": "NC_FORGE_LORD_STORE_LIBRARY_SHOP",
    "items": [
      { "group": "NC_FORGE_LORD_STORE_LIBRARY", "prob": 100, "count": [ 15, 24 ] },
      { "item": "denarius", "count": [ 5, 20 ], "prob": 100 }
    ]
  },
  {
    "type": "item_group",
    "subtype": "collection",
    "id": "NC_FORGE_LORD_STORE_LIBRARY",
    "items": [
      { "group": "spellcraft_books", "prob": 30, "count": [ 1, 3 ] },
      { "group": "dragon_books", "prob": 20, "count": [ 0, 1 ] },
      { "group": "religious_books", "prob": 80, "count": [ 4, 8 ] },
      { "group": "magic_recipe_basic", "prob": 10, "count": [ 0, 2 ] },
      { "group": "magic_recipe_advanced", "prob": 10, "count": [ 0, 2 ] },
      { "group": "magic_shop_books", "prob": 15, "count": [ 3, 12 ] }
    ]
  },
  {
    "id": "TALK_FORGE_LORD_LIBRARIAN",
    "type": "talk_topic",
    "dynamic_line": "I keep Valzain's books.  There are many floors of bookshelves among his pocket dimensions, with more magic than a mortal mind like yours could comprehend.  These happen to be the ones I think it most likely he'll read soon.  I can sell some that we have extra copies of.",
    "responses": [
      { "text": "Let's trade.", "effect": "start_trade", "topic": "TALK_FORGE_LORD_LIBRARIAN" },
      { "text": "What are you doing here?", "topic": "TALK_FORGE_LIBRARIAN_DOING" },
      { "text": "Do you have any more books in the back?", "topic": "TALK_FORGE_LIBRARIAN_ASK_INTERVAL" },
      { "text": "Well, bye.", "topic": "TALK_DONE" }
    ]
  },
  {
    "id": "TALK_FORGE_LIBRARIAN_DOING",
    "type": "talk_topic",
    "dynamic_line": "I organize the books, I sell extra books, back when we still lent books I would hunt down those with late books to return.  I have done this for aeons past and I will continue to do this for aeons to come.",
    "responses": [ { "text": "Let's talk business then.", "topic": "TALK_FORGE_LORD_LIBRARIAN" } ]
  },
  {
    "id": "TALK_FORGE_LIBRARIAN_ASK_INTERVAL",
    "type": "talk_topic",
    "dynamic_line": "It shouldn't take Valzain too long to read what he desires from what I have out.  Check back in <interval> and I should have some new books set out.",
    "responses": [ { "text": "Safe readings.", "topic": "TALK_FORGE_LORD_LIBRARIAN" } ]
  }
]
