[
  {
    "id": "ench_fishform",
    "type": "enchantment",
    "has": "WORN",
    "condition": "ALWAYS",
    "mutations": [ "WILDSHAPE:FISH", "WAYFARER", "DRUID_SHIFTER_FISH_FORM_TRAITS", "BESTIAL_MIND" ]
  },
  {
    "id": "wildshape_cloak_fish",
    "type": "ITEM",
    "subtypes": [ "ARMOR", "ARTIFACT" ],
    "name": { "str": "Wildshape Cloak: Fish", "str_pl": "Wildshape Cloaks: Fish" },
    "description": "A magical cloak that shimmers like fresh water under a warm sun.  It can be worn to morph your body to a form that is excellent for swimming, but ill-suited for combat.  You should probably stand in water before you put it on.",
    "looks_like": "cloak_leather",
    "weight": "2060 g",
    "volume": "3050 ml",
    "price": "1 kUSD",
    "symbol": "w",
    "color": "blue",
    "material": [ "magical_material" ],
    "flags": [ "BELTED", "OVERSIZE", "NONCONDUCTIVE", "WATER_FRIENDLY", "RAINPROOF" ],
    "armor": [ { "encumbrance": 0, "coverage": 0, "covers": [ "torso", "arm_l", "arm_r", "leg_l", "leg_r" ] } ],
    "passive_effects": [ { "id": "ench_fishform" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PUT_ON_WILDSHAPE_CLOAK_FISH",
    "eoc_type": "EVENT",
    "required_event": "character_wears_item",
    "condition": {
      "and": [
        { "compare_string": [ "wildshape_cloak_fish", { "context_val": "itype" } ] },
        { "not": { "u_has_flag": "TEMPORARY_SHAPESHIFT" } }
      ]
    },
    "effect": [
      { "math": [ "u_preshift_size = u_val('size')" ] },
      {
        "switch": { "math": [ "u_preshift_size" ] },
        "cases": [
          { "case": 1, "effect": [  ] },
          { "case": 2, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "2" ] } ] },
          { "case": 3, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "4" ] } ] },
          { "case": 4, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "6" ] } ] },
          { "case": 5, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "10" ] } ] }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PUT_ON_WILDSHAPE_CLOAK_FISH_REMOVE",
    "eoc_type": "EVENT",
    "required_event": "character_takeoff_item",
    "condition": { "compare_string": [ "wildshape_cloak_fish", { "context_val": "itype" } ] },
    "effect": [
      {
        "switch": { "math": [ "u_preshift_size" ] },
        "cases": [
          { "case": 1, "effect": [  ] },
          { "case": 2, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "2" ] } ] },
          { "case": 3, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "4" ] } ] },
          { "case": 4, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "6" ] } ] },
          { "case": 5, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "10" ] } ] }
        ]
      }
    ]
  },
  {
    "id": "ench_bearform",
    "type": "enchantment",
    "has": "WORN",
    "condition": "ALWAYS",
    "mutations": [ "WILDSHAPE:BEAR", "DRUID_SHIFTER_BEAR_FORM_TRAITS", "BESTIAL_MIND", "BESTIAL_MIND_COMBAT" ]
  },
  {
    "id": "wildshape_cloak_bear",
    "type": "ITEM",
    "subtypes": [ "ARMOR", "ARTIFACT" ],
    "name": "Wildshape Cloak: Bear",
    "description": "A magical cloak that smells of the forest.  It can be worn to morph your body to a form that is strong and resilient in melee combat.  However, you feel as if you would lose a part of yourself.",
    "looks_like": "cloak_leather",
    "weight": "2060 g",
    "volume": "3050 ml",
    "price": "2 kUSD",
    "symbol": "w",
    "color": "brown",
    "material": [ "magical_material" ],
    "flags": [ "BELTED", "OVERSIZE", "NONCONDUCTIVE", "WATER_FRIENDLY", "RAINPROOF" ],
    "armor": [ { "encumbrance": 0, "coverage": 0, "covers": [ "torso", "arm_l", "arm_r", "leg_l", "leg_r" ] } ],
    "passive_effects": [ { "id": "ench_bearform" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PUT_ON_WILDSHAPE_CLOAK_BEAR",
    "eoc_type": "EVENT",
    "required_event": "character_wears_item",
    "condition": {
      "and": [
        { "compare_string": [ "wildshape_cloak_bear", { "context_val": "itype" } ] },
        { "not": { "u_has_flag": "TEMPORARY_SHAPESHIFT" } }
      ]
    },
    "effect": [
      { "math": [ "u_preshift_size = u_val('size')" ] },
      {
        "switch": { "math": [ "u_preshift_size" ] },
        "cases": [
          { "case": 1, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "12" ] } ] },
          { "case": 2, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "6" ] } ] },
          { "case": 3, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "2" ] } ] },
          { "case": 4, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "1.5" ] } ] },
          { "case": 5, "effect": [  ] }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PUT_ON_WILDSHAPE_CLOAK_BEAR_REMOVE",
    "eoc_type": "EVENT",
    "required_event": "character_takeoff_item",
    "condition": { "compare_string": [ "wildshape_cloak_bear", { "context_val": "itype" } ] },
    "effect": [
      {
        "switch": { "math": [ "u_preshift_size" ] },
        "cases": [
          { "case": 1, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "12" ] } ] },
          { "case": 2, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "6" ] } ] },
          { "case": 3, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "2" ] } ] },
          { "case": 4, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "1.5" ] } ] },
          { "case": 5, "effect": [  ] }
        ]
      }
    ]
  },
  {
    "id": "ench_deerform",
    "type": "enchantment",
    "has": "WORN",
    "condition": "ALWAYS",
    "mutations": [ "WILDSHAPE:DEER", "DRUID_SHIFTER_DEER_FORM_TRAITS", "BESTIAL_MIND" ]
  },
  {
    "id": "wildshape_cloak_deer",
    "type": "ITEM",
    "subtypes": [ "ARMOR", "ARTIFACT" ],
    "name": "Wildshape Cloak: Deer",
    "description": "A magical cloak that feels soft to the touch.  It can be worn to morph your body to a form well-suited to escaping difficult situations.  However, it is not suited for combat.",
    "looks_like": "cloak_leather",
    "weight": "2060 g",
    "volume": "3050 ml",
    "price": "1 kUSD 500 USD",
    "symbol": "w",
    "color": "green",
    "material": [ "magical_material" ],
    "flags": [ "BELTED", "OVERSIZE", "NONCONDUCTIVE", "WATER_FRIENDLY", "RAINPROOF" ],
    "armor": [ { "encumbrance": 0, "coverage": 0, "covers": [ "torso", "arm_l", "arm_r", "leg_l", "leg_r" ] } ],
    "passive_effects": [ { "id": "ench_deerform" } ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PUT_ON_WILDSHAPE_CLOAK_DEER",
    "eoc_type": "EVENT",
    "required_event": "character_wears_item",
    "condition": {
      "and": [
        { "compare_string": [ "wildshape_cloak_deer", { "context_val": "itype" } ] },
        { "not": { "u_has_flag": "TEMPORARY_SHAPESHIFT" } }
      ]
    },
    "effect": [
      { "math": [ "u_preshift_size = u_val('size')" ] },
      {
        "switch": { "math": [ "u_preshift_size" ] },
        "cases": [
          { "case": 1, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "4" ] } ] },
          { "case": 2, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "2" ] } ] },
          { "case": 3, "effect": [  ] },
          { "case": 4, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "1.5" ] } ] },
          { "case": 5, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "3" ] } ] }
        ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_PUT_ON_WILDSHAPE_CLOAK_DEER_FOLLOWUP",
    "eoc_type": "EVENT",
    "required_event": "character_takeoff_item",
    "condition": { "compare_string": [ "wildshape_cloak_deer", { "context_val": "itype" } ] },
    "effect": [
      {
        "switch": { "math": [ "u_preshift_size" ] },
        "cases": [
          { "case": 1, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "4" ] } ] },
          { "case": 2, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "*=", "2" ] } ] },
          { "case": 3, "effect": [  ] },
          { "case": 4, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "1.5" ] } ] },
          { "case": 5, "effect": [ { "math": [ "u_calories('dont_affect_weariness': true)", "/=", "3" ] } ] }
        ]
      }
    ]
  },
  {
    "id": "cloak_of_elvenkind",
    "type": "ITEM",
    "subtypes": [ "ARMOR", "ARTIFACT" ],
    "name": { "str": "cloak of elvenkind", "str_pl": "cloaks of elvenkind" },
    "description": "One of the traditional items of the ancient elven warrior societies, this cloth cloak woven with still-living leaves makes its wearer much harder to spot in forests or dense vegetation.  Infamous for their use during the Vietnam War by elves on both sides of the conflict.",
    "looks_like": "cloak",
    "weight": "1175 g",
    "volume": "3 L",
    "price": "1 kUSD 500 USD",
    "symbol": "w",
    "color": "green",
    "material": [ "cotton", "veggy" ],
    "armor": [
      { "encumbrance": 3, "coverage": 65, "covers": [ "torso", "arm_l", "arm_r" ] },
      {
        "covers": [ "leg_l", "leg_r" ],
        "coverage": 65,
        "encumbrance": 3,
        "specifically_covers": [ "leg_draped_l", "leg_draped_r" ],
        "layers": [ "BELTED" ]
      }
    ],
    "warmth": 30,
    "material_thickness": 0.4,
    "environmental_protection": 3,
    "flags": [ "BELTED", "OVERSIZE", "NONCONDUCTIVE", "WATER_FRIENDLY", "RAINPROOF" ],
    "passive_effects": [
      {
        "has": "WORN",
        "condition": {
          "or": [
            { "u_is_on_terrain_with_flag": "SHRUB" },
            { "u_is_on_terrain": "t_tree_young" },
            { "u_is_on_terrain": "t_bamboo_tall" },
            { "u_is_on_terrain": "t_grass_long" },
            { "u_at_om_location": "forest" },
            { "u_at_om_location": "forest_thick" }
          ]
        },
        "values": [ { "value": "STEALTH_MODIFIER", "add": 60 } ]
      }
    ]
  }
]
