[
  {
    "type": "effect_on_condition",
    "id": "get_katana",
    "global": true,
    "effect": { "u_spawn_item": "katana" }
  },
  {
    "type": "effect_on_condition",
    "id": "get_deagle_44",
    "global": true,
    "effect": { "u_spawn_item": "modular_deagle_44", "use_item_group": true }
  },
  {
    "type": "effect_on_condition",
    "id": "get_m4_carbine",
    "global": true,
    "effect": { "u_spawn_item": "modular_m4a1", "use_item_group": true }
  },
  {
    "id": "EOC_vitrified_doll_talk",
    "type": "effect_on_condition",
    "condition": { "not": { "u_has_item": "imperfect_doll_complete" } },
    "effect": { "open_dialogue": { "topic": "vitrified_doll_talk_main" } }
  },
  {
    "id": "EOC_repair_imperfect_doll",
    "type": "effect_on_condition",
    "effect": [
      { "u_remove_item_with": "imperfect_doll_features" },
      { "u_remove_item_with": "imperfect_doll_arms" },
      { "u_remove_item_with": "imperfect_doll_legs" },
      { "u_spawn_item": "imperfect_doll_complete", "suppress_message": true },
      { "u_transform_radius": 5, "ter_furn_transform": "imperfect_doll_to_couch" }
    ]
  },
  {
    "id": "EOC_vitrified_bookcase_talk",
    "type": "effect_on_condition",
    "condition": { "not": { "u_has_item": "imperfect_doll_features" } },
    "effect": { "open_dialogue": { "topic": "vitrified_bookcase_talk_main" } },
    "false_effect": { "u_message": "This bookshelf is complete, now.", "type": "good", "popup": false }
  },
  {
    "id": "EOC_swap_glass_book_for_eyes",
    "type": "effect_on_condition",
    "effect": [
      { "u_remove_item_with": "glass_book" },
      { "u_spawn_item": "imperfect_doll_features", "suppress_message": true },
      { "u_transform_radius": 5, "ter_furn_transform": "glass_book_on_shelf" }
    ]
  },
  {
    "id": "EOC_vitrified_pool_talk",
    "type": "effect_on_condition",
    "condition": { "not": { "u_has_item": "imperfect_doll_legs" } },
    "effect": { "open_dialogue": { "topic": "vitrified_pool_talk_main" } },
    "false_effect": { "u_message": "The sailboat drifts in slow circles through the sand.", "type": "good", "popup": false }
  },
  {
    "id": "EOC_swap_glass_boat_for_legs",
    "type": "effect_on_condition",
    "effect": [ { "u_remove_item_with": "glass_boat" }, { "u_spawn_item": "imperfect_doll_legs", "suppress_message": true } ]
  },
  {
    "id": "EOC_vitrified_soil_talk",
    "type": "effect_on_condition",
    "condition": { "not": { "u_has_item": "imperfect_doll_arms" } },
    "effect": { "open_dialogue": { "topic": "vitrified_soil_talk_main" } },
    "false_effect": { "u_message": "A tiny glass sprout has begun to grow here.", "type": "good", "popup": false }
  },
  {
    "id": "EOC_swap_glass_apple_for_arms",
    "type": "effect_on_condition",
    "effect": [ { "u_remove_item_with": "glass_apple" }, { "u_spawn_item": "imperfect_doll_arms", "suppress_message": true } ]
  },
  {
    "id": "EOC_toolweapon_activate",
    "type": "effect_on_condition",
    "condition": { "not": "u_is_underwater" },
    "effect": [
      {
        "if": "has_ammo",
        "then": [
          { "turn_cost": { "context_val": "turn_cost" } },
          {
            "u_make_sound": { "context_val": "success_message" },
            "type": "combat",
            "volume": { "context_val": "volume" }
          },
          { "u_message": { "context_val": "success_message" } },
          { "transform_item": { "context_val": "transform_target" }, "active": true }
        ],
        "else": { "u_message": { "context_val": "failure_message" } }
      }
    ],
    "false_effect": { "u_message": "The <npc_name> won't start underwater." }
  },
  {
    "id": "EOC_toolweapon_running",
    "type": "effect_on_condition",
    "condition": { "not": "npc_is_underwater" },
    "effect": {
      "if": { "one_in_chance": { "context_val": "sound_chance" } },
      "then": [
        { "message": { "context_val": "sound_message" }, "sound": true },
        {
          "npc_make_sound": { "context_val": "sound_message" },
          "type": "activity",
          "volume": { "context_val": "volume" },
          "ambient": true
        }
      ]
    },
    "false_effect": [
      { "u_message": "Your <npc_name> gurgles in the water and stops." },
      { "transform_item": { "context_val": "revert_to" } }
    ]
  },
  {
    "id": "EOC_toolweapon_deactivate",
    "type": "effect_on_condition",
    "effect": [ { "u_message": "Your <npc_name> goes quiet." }, { "transform_item": { "context_val": "transform_target" } } ]
  },
  {
    "type": "effect_on_condition",
    "id": "barber_hair",
    "effect": { "open_dialogue": { "topic": "TALK_CUT_YOUR_HAIR" } }
  },
  {
    "type": "effect_on_condition",
    "id": "barber_beard",
    "effect": { "open_dialogue": { "topic": "TALK_CUT_YOUR_BEARD" } }
  },
  {
    "type": "effect_on_condition",
    "id": "barber_hair_and_beard",
    "effect": { "open_dialogue": { "topic": "TALK_CUT_HAIR_OR_BEARD" } }
  },
  {
    "type": "effect_on_condition",
    "id": "reset_all_hair_types",
    "//": "This will reset all hair types for the purposes of applying new ones.",
    "effect": [
      { "u_lose_trait": "hair_buzzcut" },
      { "u_lose_trait": "hair_crewcut" },
      { "u_lose_trait": "hair_short" },
      { "u_lose_trait": "hair_short_no_fringe" },
      { "u_lose_trait": "hair_short_over_eye" },
      { "u_lose_trait": "hair_medium" },
      { "u_lose_trait": "hair_mohawk" },
      { "u_lose_trait": "hair_long" },
      { "u_lose_trait": "hair_long_mohawk" },
      { "u_lose_trait": "hair_mullet" },
      { "u_lose_trait": "hair_long_over_eye" },
      { "u_lose_trait": "hair_messy" },
      { "u_lose_trait": "hair_very_long" },
      { "u_lose_trait": "hair_extremely_long" },
      { "u_lose_trait": "hair_body_length" },
      { "u_lose_trait": "hair_modern" },
      { "u_lose_trait": "hair_puff" },
      { "u_lose_trait": "hair_beaded" },
      { "u_lose_trait": "hair_curls" },
      { "u_lose_trait": "hair_bun" },
      { "u_lose_trait": "hair_punk_long" },
      { "u_lose_trait": "hair_braid" },
      { "u_lose_trait": "hair_detective" },
      { "u_lose_trait": "hair_super_princess" },
      { "u_lose_trait": "hair_twintails" },
      { "u_lose_trait": "hair_bald" },
      { "u_lose_trait": "hair_fro" },
      { "u_lose_trait": "hair_ponytail" }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "reset_all_beard_types",
    "//": "This will reset all beard types for the purposes of applying new ones.",
    "effect": [
      { "u_lose_trait": "FACIAL_HAIR_NECKBEARD" },
      { "u_lose_trait": "FACIAL_HAIR_SIDEBURNS" },
      { "u_lose_trait": "FACIAL_HAIR_SOUL_PATCH" },
      { "u_lose_trait": "FACIAL_HAIR_CHIN_STRIP" },
      { "u_lose_trait": "FACIAL_HAIR_3DAYSTUBBLE" },
      { "u_lose_trait": "FACIAL_HAIR_TOOTHBRUSH" },
      { "u_lose_trait": "FACIAL_HAIR_CHIN_STRAP" },
      { "u_lose_trait": "FACIAL_HAIR_MUSTACHE" },
      { "u_lose_trait": "FACIAL_HAIR_NECKBEARD" },
      { "u_lose_trait": "FACIAL_HAIR_WALRUS" },
      { "u_lose_trait": "FACIAL_HAIR_ZAPPA" },
      { "u_lose_trait": "FACIAL_HAIR_GOATEE" },
      { "u_lose_trait": "FACIAL_HAIR_CIRCLE" },
      { "u_lose_trait": "FACIAL_HAIR_SHORTBOXED" },
      { "u_lose_trait": "FACIAL_HAIR_HORSESHOE" },
      { "u_lose_trait": "FACIAL_HAIR_MUTTONCHOPS" },
      { "u_lose_trait": "FACIAL_HAIR_GUNSLINGER" },
      { "u_lose_trait": "FACIAL_HAIR_CHIN_CURTAIN" },
      { "u_lose_trait": "FACIAL_HAIR_HANDLEBAR" },
      { "u_lose_trait": "FACIAL_HAIR_VANDYKE" },
      { "u_lose_trait": "FACIAL_HAIR_BEARD" },
      { "u_lose_trait": "FACIAL_HAIR_ANCHOR" },
      { "u_lose_trait": "FACIAL_HAIR_ROYALE" },
      { "u_lose_trait": "FACIAL_HAIR_SHENANDOAH" },
      { "u_lose_trait": "FACIAL_HAIR_BEARD_LONG" },
      { "u_lose_trait": "FACIAL_HAIR_BEARD_VERY_LONG" }
    ]
  }
]
