[
  {
    "type": "effect_on_condition",
    "id": "EOC_GRACKEN_CONVERT_RADS_TO_CALORIES",
    "recurrence": [ "5 seconds", "15 seconds" ],
    "condition": { "u_has_trait": "RADIOTROPHIC" },
    "deactivate_condition": { "not": { "u_has_trait": "RADIOTROPHIC" } },
    "effect": [
      {
        "if": { "math": [ "u_val('rad') >= 100" ] },
        "then": [ { "math": [ "u_calories()", "+=", "3" ] }, { "math": [ "u_val('rad')", "-=", "1" ] } ]
      },
      {
        "if": { "and": [ { "math": [ "u_val('rad') < 100" ] }, { "math": [ "u_val('rad') > 0" ] } ] },
        "then": [ { "math": [ "u_calories()", "+=", "2" ] }, { "math": [ "u_val('rad')", "-=", "1" ] } ]
      }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_GRACKEN_ARM_PUSH1_activated",
    "effect": [
      {
        "run_eocs": "EOC_GENERIC_SPELL_MUTATION",
        "variables": {
          "prep_time": "1",
          "spell_to_cast": "gracken_arm_push_spell",
          "message_success": { "i18n": true, "str": "You lash out and push your target away!" }
        }
      }
    ]
  }
]
