[
  {
    "type": "talk_topic",
    "id": "TALK_PERK_MENU_MAIN",
    "responses": [
      {
        "condition": { "not": { "u_has_trait": "perk_money_maker_merc" } },
        "text": "Gain [<trait_name:perk_money_maker_merc>]",
        "effect": [
          { "set_string_var": "<trait_name:perk_money_maker_merc>", "target_var": { "context_val": "trait_name" } },
          {
            "set_string_var": "<trait_description:perk_money_maker_merc>",
            "target_var": { "context_val": "trait_description" }
          },
          { "set_string_var": "perk_money_maker_merc", "target_var": { "context_val": "trait_id" } },
          {
            "set_string_var": "Must have completed a wave",
            "target_var": { "context_val": "trait_requirement_description" },
            "i18n": true
          },
          { "set_condition": "perk_condition", "condition": { "math": [ "wave_number >= 1" ] } }
        ],
        "topic": "TALK_PERK_MENU_SELECT"
      },
      {
        "condition": { "not": { "u_has_trait": "perk_slice&dice" } },
        "text": "Gain [<trait_name:perk_slice&dice>]",
        "effect": [
          { "set_string_var": "<trait_name:perk_slice&dice>", "target_var": { "context_val": "trait_name" } },
          {
            "set_string_var": "<trait_description:perk_slice&dice>",
            "target_var": { "context_val": "trait_description" }
          },
          { "set_string_var": "perk_slice&dice", "target_var": { "context_val": "trait_id" } },
          {
            "set_string_var": "No Requirements",
            "target_var": { "context_val": "trait_requirement_description" },
            "i18n": true
          },
          { "set_condition": "perk_condition", "condition": { "math": [ "0 == 0" ] } }
        ],
        "topic": "TALK_PERK_MENU_SELECT"
      },
      {
        "condition": { "not": { "u_has_trait": "perk_bash&mash" } },
        "text": "Gain [<trait_name:perk_bash&mash>]",
        "effect": [
          { "set_string_var": "<trait_name:perk_bash&mash>", "target_var": { "context_val": "trait_name" } },
          {
            "set_string_var": "<trait_description:perk_bash&mash>",
            "target_var": { "context_val": "trait_description" }
          },
          { "set_string_var": "perk_bash&mash", "target_var": { "context_val": "trait_id" } },
          {
            "set_string_var": "No Requirements",
            "target_var": { "context_val": "trait_requirement_description" },
            "i18n": true
          },
          { "set_condition": "perk_condition", "condition": { "math": [ "0 == 0" ] } }
        ],
        "topic": "TALK_PERK_MENU_SELECT"
      },
      {
        "condition": { "not": { "u_has_trait": "perk_knifey" } },
        "text": "Gain [<trait_name:perk_knifey>]",
        "effect": [
          { "set_string_var": "<trait_name:perk_knifey>", "target_var": { "context_val": "trait_name" } },
          {
            "set_string_var": "<trait_description:perk_knifey>",
            "target_var": { "context_val": "trait_description" }
          },
          { "set_string_var": "perk_knifey", "target_var": { "context_val": "trait_id" } },
          {
            "set_string_var": "No Requirements",
            "target_var": { "context_val": "trait_requirement_description" },
            "i18n": true
          },
          { "set_condition": "perk_condition", "condition": { "math": [ "0 == 0" ] } }
        ],
        "topic": "TALK_PERK_MENU_SELECT"
      },
      {
        "condition": { "not": { "u_has_trait": "perk_melee_master" } },
        "text": "Gain [<trait_name:perk_melee_master>]",
        "effect": [
          { "set_string_var": "<trait_name:perk_melee_master>", "target_var": { "context_val": "trait_name" } },
          {
            "set_string_var": "<trait_description:perk_melee_master>",
            "target_var": { "context_val": "trait_description" }
          },
          { "set_string_var": "perk_melee_master", "target_var": { "context_val": "trait_id" } },
          {
            "set_string_var": "Requires Slice & Dice, Bash & Mash, and Knifey",
            "target_var": { "context_val": "trait_requirement_description" },
            "i18n": true
          },
          {
            "set_condition": "perk_condition",
            "condition": {
              "and": [ { "u_has_trait": "perk_slice&dice" }, { "u_has_trait": "perk_bash&mash" }, { "u_has_trait": "perk_knifey" } ]
            }
          }
        ],
        "topic": "TALK_PERK_MENU_SELECT"
      },
      {
        "condition": { "not": { "u_has_trait": "perk_gymrat_king" } },
        "text": "Gain [<trait_name:perk_gymrat_king>]",
        "effect": [
          { "set_string_var": "<trait_name:perk_gymrat_king>", "target_var": { "context_val": "trait_name" } },
          {
            "set_string_var": "<trait_description:perk_gymrat_king>",
            "target_var": { "context_val": "trait_description" }
          },
          { "set_string_var": "perk_gymrat_king", "target_var": { "context_val": "trait_id" } },
          {
            "set_string_var": "Requires athletics 5 and Gym Rat",
            "target_var": { "context_val": "trait_requirement_description" },
            "i18n": true
          },
          {
            "set_condition": "perk_condition",
            "condition": { "and": [ { "math": [ "u_skill('swimming') >= 5" ] }, { "u_has_trait": "perk_gymrat" } ] }
          }
        ],
        "topic": "TALK_PERK_MENU_SELECT"
      },
      {
        "condition": { "not": { "u_has_trait": "perk_extra_life" } },
        "text": "Gain [<trait_name:perk_extra_life>]",
        "effect": [
          { "set_string_var": "<trait_name:perk_extra_life>", "target_var": { "context_val": "trait_name" } },
          {
            "set_string_var": "<trait_description:perk_extra_life>",
            "target_var": { "context_val": "trait_description" }
          },
          { "set_string_var": "perk_extra_life", "target_var": { "context_val": "trait_id" } },
          {
            "set_string_var": "No Requirements",
            "target_var": { "context_val": "trait_requirement_description" },
            "i18n": true
          },
          { "set_condition": "perk_condition", "condition": { "math": [ "0 == 0" ] } }
        ],
        "topic": "TALK_PERK_MENU_SELECT"
      },
      {
        "condition": { "not": { "u_has_trait": "perk_mysterious_stranger" } },
        "text": "Gain [<trait_name:perk_mysterious_stranger>]",
        "effect": [
          { "set_string_var": "<trait_name:perk_mysterious_stranger>", "target_var": { "context_val": "trait_name" } },
          {
            "set_string_var": "<trait_description:perk_mysterious_stranger>",
            "target_var": { "context_val": "trait_description" }
          },
          { "set_string_var": "perk_mysterious_stranger", "target_var": { "context_val": "trait_id" } },
          {
            "set_string_var": "No Requirements",
            "target_var": { "context_val": "trait_requirement_description" },
            "i18n": true
          },
          { "set_condition": "perk_condition", "condition": { "math": [ "0 == 0" ] } }
        ],
        "topic": "TALK_PERK_MENU_SELECT"
      }
    ]
  }
]
