[
  {
    "type": "jmath_function",
    "id": "int_to_level",
    "num_args": 1,
    "return": "(u_val('intelligence') * 1.5) * (_0)"
  },
  {
    "type": "jmath_function",
    "id": "scaling_factor",
    "num_args": 1,
    "return": "( ( _0 + 10) / 20 )"
  },
  {
    "type": "jmath_function",
    "id": "maintenance_exp_factor",
    "num_args": 1,
    "return": "(_0 / 100) * 75 * ( ( u_val('intelligence') + 10) / 20 ) * min( ( 0.5 + ( u_skill('metaphysics') / 20) ), 1)"
  },
  {
    "type": "jmath_function",
    "id": "nether_attune_difficulty_scaler",
    "num_args": 1,
    "return": "_0 * _0"
  },
  {
    "type": "jmath_function",
    "id": "psionics_kcal_cost",
    "num_args": 1,
    "return": "( (5 * _0) * rng( 0.3, 1.7) )"
  },
  {
    "type": "jmath_function",
    "id": "psionics_contemplation_kcal_cost",
    "num_args": 1,
    "return": "( (25 * _0) * rng( 0.3, 1.7) )"
  },
  {
    "type": "jmath_function",
    "id": "matrix_awakening_odds",
    "num_args": 1,
    "return": "(100 - (100 * (e ^ (_0 / -1.7) ) ) )"
  },
  {
    "type": "jmath_function",
    "id": "portal_storm_awakening_odds",
    "num_args": 1,
    "return": "(100 - (100 * (e ^ (_0 / -3) ) ) )"
  },
  {
    "type": "jmath_function",
    "id": "concentration_trait_bonuses",
    "num_args": 0,
    "return": "(u_has_trait('CONCENTRATION_GOOD')) + (u_has_trait('CONCENTRATION_BAD') ? -1 : 0) + (u_has_trait('INT_ALPHA')) + (u_has_trait('NOMAD2') ? -1 : 0) + (u_has_trait('NOMAD3') ? -1 : 0) + (u_has_trait('CONCENTRATION_DEBUG') ? 50 : 0) + (u_has_proficiency('prof_concentration_basic')) + (u_has_proficiency('prof_concentration_intermediate')) + (u_has_proficiency('prof_concentration_master')) + (u_effect_intensity('hallu') > 0 ? -1 : 0) + (u_effect_intensity('winded') > 0 ? -2 : 0) + (u_effect_intensity('nausea') > 0 ? -1 : 0) + (u_effect_intensity('nausea') > 3 ? -1 : 0) +  (u_effect_intensity('cold') > 1 ? -1 : 0) + (u_effect_intensity('hot') > 1 ? -1 : 0) + (u_effect_intensity('asthma') > 0 ? -3 : 0) + (u_effect_intensity('datura') > 0 ? -3 : 0)"
  },
  {
    "type": "jmath_function",
    "id": "contemplation_factor",
    "num_args": 1,
    "return": "(u_val('focus') * 18) * (_0)"
  },
  {
    "type": "jmath_function",
    "id": "learn_new_power_lower_time_bound",
    "num_args": 1,
    "return": "(((_0 + 2) * 60) * 60) * 0.8"
  },
  {
    "type": "jmath_function",
    "id": "learn_new_power_upper_time_bound",
    "num_args": 1,
    "return": "(((_0 + 2) * 60) * 60) * 1.2"
  },
  {
    "type": "jmath_function",
    "id": "jmath_psi_learning_counter_time_low",
    "num_args": 1,
    "//": "Reduces time between insight moments by 3% per point of Intelligence above 10 (increase by 3% per point below 10), to a max of 60% faster from intelligence, and by 5% per point of Metaphysics skill above 5.",
    "return": "_0 * max(( 1 - ( ( ( u_val('intelligence') + 23.33) / 33.33 ) ) + 1 ),0.4) * clamp(( 1 - (((u_skill('metaphysics') - 4) + 20 ) / 21) + 1),0.75,1)"
  },
  {
    "type": "jmath_function",
    "id": "jmath_psi_learning_counter_time_high",
    "num_args": 1,
    "return": "_0 * max(( 1 - ( ( ( u_val('intelligence') + 23.33) / 33.33 ) ) + 1 ),0.4) * clamp(( 1 - (((u_skill('metaphysics') - 4) + 20 ) / 21) + 1),0.75,1)"
  },
  {
    "type": "jmath_function",
    "id": "jmath_biokinesis_learning_eocs_modifiers",
    "num_args": 1,
    "return": "_0 * max(( 1 - ( ( ( u_val('intelligence') + 23.33) / 33.33 ) ) + 1 ),0.4) * (1 - (0.2 * u_has_proficiency('prof_contemplation_biokinesis')))"
  },
  {
    "type": "jmath_function",
    "id": "jmath_clairsentience_learning_eocs_modifiers",
    "num_args": 1,
    "return": "_0 * max(( 1 - ( ( ( u_val('intelligence') + 23.33) / 33.33 ) ) + 1 ),0.4) * (1 - (0.2 * u_has_proficiency('prof_contemplation_clairsentience')))"
  },
  {
    "type": "jmath_function",
    "id": "jmath_electrokinesis_learning_eocs_modifiers",
    "num_args": 1,
    "return": "_0 * max(( 1 - ( ( ( u_val('intelligence') + 23.33) / 33.33 ) ) + 1 ),0.4) * (1 - (0.2 * u_has_proficiency('prof_contemplation_electrokinesis')))"
  },
  {
    "type": "jmath_function",
    "id": "jmath_photokinesis_learning_eocs_modifiers",
    "num_args": 1,
    "return": "_0 * max(( 1 - ( ( ( u_val('intelligence') + 23.33) / 33.33 ) ) + 1 ),0.4) * (1 - (0.2 * u_has_proficiency('prof_contemplation_photokinesis')))"
  },
  {
    "type": "jmath_function",
    "id": "jmath_pyrokinesis_learning_eocs_modifiers",
    "num_args": 1,
    "return": "_0 * max(( 1 - ( ( ( u_val('intelligence') + 23.33) / 33.33 ) ) + 1 ),0.4) * (1 - (0.2 * u_has_proficiency('prof_contemplation_pyrokinesis')))"
  },
  {
    "type": "jmath_function",
    "id": "jmath_telekinesis_learning_eocs_modifiers",
    "num_args": 1,
    "return": "_0 * max(( 1 - ( ( ( u_val('intelligence') + 23.33) / 33.33 ) ) + 1 ),0.4) * (1 - (0.2 * u_has_proficiency('prof_contemplation_telekinesis')))"
  },
  {
    "type": "jmath_function",
    "id": "jmath_telepathy_learning_eocs_modifiers",
    "num_args": 1,
    "return": "_0 * max(( 1 - ( ( ( u_val('intelligence') + 23.33) / 33.33 ) ) + 1 ),0.4) * (1 - (0.2 * u_has_proficiency('prof_contemplation_telepathy')))"
  },
  {
    "type": "jmath_function",
    "id": "jmath_teleportation_learning_eocs_modifiers",
    "num_args": 1,
    "return": "_0 * max(( 1 - ( ( ( u_val('intelligence') + 23.33) / 33.33 ) ) + 1 ),0.4) * (1 - (0.2 * u_has_proficiency('prof_contemplation_teleportation')))"
  },
  {
    "type": "jmath_function",
    "id": "jmath_vitakinesis_learning_eocs_modifiers",
    "num_args": 1,
    "return": "_0 * max(( 1 - ( ( ( u_val('intelligence') + 23.33) / 33.33 ) ) + 1 ),0.4) * (1 - (0.2 * u_has_proficiency('prof_contemplation_vitakinesis')))"
  },
  {
    "type": "jmath_function",
    "id": "difficulty_one_contemplation",
    "num_args": 1,
    "return": "_0 * 49417"
  },
  {
    "type": "jmath_function",
    "id": "difficulty_two_contemplation",
    "num_args": 1,
    "return": "_0 * 49417"
  },
  {
    "type": "jmath_function",
    "id": "difficulty_three_contemplation",
    "num_args": 1,
    "return": "_0 * 49417"
  },
  {
    "type": "jmath_function",
    "id": "difficulty_four_contemplation",
    "num_args": 1,
    "return": "_0 * 35278"
  },
  {
    "type": "jmath_function",
    "id": "difficulty_five_contemplation",
    "num_args": 1,
    "return": "_0 * 35278"
  },
  {
    "type": "jmath_function",
    "id": "difficulty_six_contemplation",
    "num_args": 1,
    "return": "_0 * 20513"
  },
  {
    "type": "jmath_function",
    "id": "difficulty_seven_contemplation",
    "num_args": 1,
    "return": "_0 * 20513"
  },
  {
    "type": "jmath_function",
    "id": "difficulty_eight_contemplation",
    "num_args": 1,
    "return": "_0 * 13722"
  },
  {
    "type": "jmath_function",
    "id": "difficulty_nine_contemplation",
    "num_args": 1,
    "return": "_0 * 13722"
  },
  {
    "type": "jmath_function",
    "id": "difficulty_ten_contemplation",
    "num_args": 1,
    "return": "_0 * 13722"
  }
]
