[
  {
    "type": "enchantment",
    "id": "TUNDRA_MAGE",
    "name": { "str": "Arctic" },
    "description": "Your Tundra Mage abilities grant you good resistance to temperature conditions.",
    "condition": "ALWAYS",
    "values": [ { "value": "CLIMATE_CONTROL_HEAT", "add": 10 }, { "value": "CLIMATE_CONTROL_CHILL", "add": 30 } ]
  },
  {
    "id": "tundra_mage_aoe",
    "type": "SPELL",
    "name": "Tundra Mage Slowdown DoT AoE",
    "description": "Deal some cold DoT around the player, and slowdown monsters nearby.",
    "valid_targets": [ "hostile" ],
    "flags": [ "SILENT", "NO_PROJECTILE", "NO_EXPLOSION_SFX" ],
    "effect": "attack",
    "effect_str": "freeze_aura",
    "shape": "blast",
    "min_dot": 1,
    "max_dot": 1,
    "min_duration": 600,
    "max_duration": 600,
    "min_aoe": 4,
    "max_aoe": 4,
    "damage_type": "cold"
  },
  {
    "type": "effect_type",
    "id": "freeze_aura",
    "name": [ "Freeze burn" ],
    "desc": [ "Your skin is frozen." ],
    "max_intensity": 4,
    "int_add_val": 1,
    "base_mods": { "speed_mod": [ -25 ] },
    "scaling_mods": { "speed_mod": [ -15 ] }
  },
  {
    "type": "enchantment",
    "id": "TUNDRA_MAGE_AOE",
    "condition": "ALWAYS",
    "intermittent_activation": { "effects": [ { "frequency": "5 seconds", "spell_effects": [ { "id": "tundra_mage_aoe" } ] } ] }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_GIVE_FREEZING_AURA_OFF",
    "recurrence": [ "60 s", "60 s" ],
    "condition": {
      "and": [
        { "u_has_trait": "TUNDRA_MAGE" },
        {
          "not": { "u_has_var": "u_got_tundra_mage_attunement", "type": "attunement", "context": "attunement", "value": "yes" }
        }
      ]
    },
    "deactivate_condition": { "not": { "u_has_trait": "TUNDRA_MAGE" } },
    "effect": [
      { "u_add_trait": "FREEZING_AURA_OFF" },
      { "u_add_var": "u_got_tundra_mage_attunement", "type": "attunement", "context": "attunement", "value": "yes" }
    ]
  },
  {
    "type": "mutation",
    "id": "FREEZING_AURA_OFF",
    "starting_trait": false,
    "purifiable": false,
    "valid": false,
    "name": { "str": "Freezing Aura" },
    "points": 0,
    "active": true,
    "description": "Your body emits a large amount of cold energy, which freezes all enemies near you.  You suppress this ability now.",
    "transform": { "target": "FREEZING_AURA_ON", "msg_transform": "Living creatures around you freezes!", "active": true, "moves": 10 }
  },
  {
    "type": "mutation",
    "id": "FREEZING_AURA_ON",
    "starting_trait": false,
    "purifiable": false,
    "valid": false,
    "active": true,
    "name": { "str": "Freezing Aura (on)" },
    "points": 0,
    "description": "Your body emits a large amount of cold energy, which freezes all enemies near you.",
    "enchantments": [ "TUNDRA_MAGE_AOE" ],
    "transform": { "target": "FREEZING_AURA_OFF", "msg_transform": "You suppress your freezing aura.", "active": false, "moves": 10 }
  }
]
