[
  {
    "type": "effect_on_condition",
    "id": "EOC_GIVE_SOUL_PRESSURE_OFF",
    "recurrence": [ "60 s", "60 s" ],
    "condition": {
      "and": [
        { "u_has_trait": "SOULFIRE" },
        {
          "not": { "u_has_var": "u_got_soulfire_attunement", "type": "attunement", "context": "attunement", "value": "yes" }
        }
      ]
    },
    "deactivate_condition": { "not": { "u_has_trait": "SOULFIRE" } },
    "effect": [
      { "u_add_trait": "SOUL_PRESSURE_OFF" },
      { "u_add_var": "u_got_soulfire_attunement", "type": "attunement", "context": "attunement", "value": "yes" }
    ]
  },
  {
    "type": "mutation",
    "id": "SOUL_PRESSURE_OFF",
    "starting_trait": false,
    "purifiable": false,
    "valid": false,
    "name": { "str": "Soul Pressure" },
    "points": 0,
    "active": true,
    "description": "Your presence is so dangerous you can burn living creatures around you.  You suppress it now.",
    "transform": {
      "target": "SOUL_PRESSURE_ON",
      "msg_transform": "Living creatures around you start to burn!",
      "active": true,
      "moves": 10
    }
  },
  {
    "type": "mutation",
    "id": "SOUL_PRESSURE_ON",
    "starting_trait": false,
    "purifiable": false,
    "valid": false,
    "active": true,
    "name": { "str": "Soul Pressure (on)" },
    "points": -1,
    "description": "Your presence is so dangerous you can burn living creatures around you.",
    "enchantments": [ "SOULFIRE_PRESSURE" ],
    "transform": { "target": "SOUL_PRESSURE_OFF", "msg_transform": "You suppress your soul pressure.", "active": false, "moves": 10 }
  },
  {
    "id": "soul_pressure",
    "type": "SPELL",
    "name": "Soul Pressure",
    "description": "This is a spell that represents the Soulfire putting a burning pressure on nearby opponents.  If you are seeing this spell, you have debugged it in.",
    "valid_targets": [ "hostile" ],
    "flags": [ "SILENT", "NO_PROJECTILE", "NO_EXPLOSION_SFX" ],
    "effect": "attack",
    "shape": "blast",
    "min_damage": 9,
    "max_damage": 9,
    "min_aoe": 3,
    "max_aoe": 3,
    "damage_type": "heat",
    "sound_description": "a grunt and a sizzle",
    "sound_id": "fire_spell",
    "sound_variant": "weak"
  },
  {
    "type": "enchantment",
    "id": "SOULFIRE_PRESSURE",
    "condition": "ALWAYS",
    "intermittent_activation": { "effects": [ { "frequency": "5 seconds", "spell_effects": [ { "id": "soul_pressure" } ] } ] }
  },
  {
    "type": "enchantment",
    "id": "SOULFIRE",
    "name": { "str": "Spirit Flames" },
    "description": "Your Soulfire abilities grant you good resistance to temperature conditions.  Also your hands emit the purest blazes, which increase your damage in melee for a bit.",
    "condition": "ALWAYS",
    "values": [
      { "value": "ITEM_DAMAGE_PURE", "add": 9 },
      { "value": "CLIMATE_CONTROL_HEAT", "add": 30 },
      { "value": "CLIMATE_CONTROL_CHILL", "add": 10 }
    ]
  }
]
