[
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "enact the PATIENT MOSAIC process",
    "id": "recipe_mental_engineering",
    "description": "With the help of a telepathic focusing tool and your (hopefully) extensive telepathic powers, you can sink into a deep trance where you can only sense yourself, allowing you to permanently adjust your mental state and view of the outside world.  Will the end result still be you?",
    "category": "CC_PSIONIC",
    "subcategory": "CSC_PSIONIC_RITUALS",
    "skill_used": "metaphysics",
    "difficulty": 9,
    "time": "0 h",
    "book_learn": [ [ "phavian_psionic_telepathic_mental_engineering_book", 8 ] ],
    "tools": [ [ [ "telepathic_focusing_tool", -1 ] ] ],
    "proficiencies": [
      { "proficiency": "prof_psionic_basic", "required": true },
      { "proficiency": "prof_psionic_ritual", "required": true },
      { "proficiency": "prof_psionic_containment", "required": false }
    ],
    "flags": [ "SECRET", "BLIND_EASY" ],
    "result_eocs": [ "EOC_TELEPATHIC_MENTAL_ENGINEERING_SELECTOR" ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "study VERDANT HAND combat protocols",
    "id": "learn_psionic_combat",
    "description": "Study and attempt to internalize the practices in the VERDANT HAND Combat Protocol training manual.  There's a lot in there; it may take you more than one attempt to understand it.",
    "category": "CC_PSIONIC",
    "subcategory": "CSC_PSIONIC_RITUALS",
    "skill_used": "unarmed",
    "difficulty": 5,
    "time": "5 h",
    "book_learn": [ [ "phavian_psionic_martial_power_book", 5 ] ],
    "proficiencies": [
      { "proficiency": "prof_psionic_basic", "required": true },
      { "proficiency": "prof_psionic_ritual", "required": false },
      { "proficiency": "prof_psionic_containment", "required": false },
      { "proficiency": "prof_psionic_minimum_requirements_biokinesis", "required": true }
    ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_UNLOCK_PSIONIC_COMBAT",
        "condition": {
          "and": [
            {
              "or": [
                { "math": [ "u_spell_level('biokin_physical_enhance') >= 8" ] },
                { "math": [ "u_spell_level('biokin_reflex_enhance') >= 8" ] },
                { "math": [ "u_spell_level('biokin_combat_dance') >= 5" ] }
              ]
            },
            {
              "or": [
                { "math": [ "u_spell_level('biokin_dash') >= 8" ] },
                { "math": [ "u_spell_level('biokin_flexibility') >= 8" ] },
                { "math": [ "u_spell_level('biokin_adrenaline') >= 8" ] },
                { "math": [ "u_spell_level('biokin_perfected_motion') >= 4" ] }
              ]
            },
            { "math": [ "u_spell_level('biokin_overcome_pain') >= 5" ] },
            {
              "or": [
                { "math": [ "u_spell_level('biokin_armor_skin') >= 7" ] },
                { "math": [ "u_spell_level('biokin_enhance_mobility') >= 6" ] }
              ]
            }
          ]
        },
        "effect": {
          "run_eocs": {
            "id": "EOC_UNLOCK_PSIONIC_COMBAT_2",
            "condition": {
              "and": [
                { "roll_contested": { "math": [ "u_skill('unarmed')" ] }, "difficulty": 13 },
                { "roll_contested": { "math": [ "u_skill('metaphysics')" ] }, "difficulty": 10 }
              ]
            },
            "effect": [
              {
                "u_message": "You've done it.  After long effort, you've mastered the VERDANT HAND protocols.  Bring on the zombies; you'll smash them to pieces with your fists.",
                "type": "good"
              },
              { "u_add_trait": "VERDANT_HAND_PROTOCOLS" },
              { "give_achievement": "mom_learn_verdant_hand_protocols" },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 10,30 )" ] },
              { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
            ],
            "false_effect": [
              {
                "u_message": "You just couldn't master the forms and the meditations eluded you.  You'll need to try again.",
                "type": "bad"
              },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 10,30 )" ] },
              { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
            ]
          }
        },
        "false_effect": [
          {
            "u_message": "Your mastery of biokinesis isn't deep enough to succeed.  You'll need to develop your powers and try again."
          },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 10,30 )" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ]
      }
    ]
  },
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "study Proposal: TURQUOISE KEYSTONE",
    "id": "learn_psionic_teleportation_warp_combat",
    "description": "Study and attempt to internalize the practices in the Proposal: TURQUOISE KEYSTONE document.  This seems extremely complex and demanding; it may take you more than one attempt to understand it.",
    "category": "CC_PSIONIC",
    "subcategory": "CSC_PSIONIC_RITUALS",
    "skill_used": "metaphysics",
    "difficulty": 8,
    "time": "8 h",
    "book_learn": [ [ "phavian_psionic_teleportation_combat_book", 8 ] ],
    "proficiencies": [
      { "proficiency": "prof_psionic_basic", "required": true },
      { "proficiency": "prof_psionic_ritual", "required": true },
      { "proficiency": "prof_psionic_containment", "required": false },
      { "proficiency": "prof_psionic_minimum_requirements_teleportation", "required": true }
    ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_UNLOCK_TELEPORTATION_WARP_COMBAT",
        "condition": {
          "and": [
            {
              "or": [ { "math": [ "u_spell_level('teleport_blink') >= 12" ] }, { "math": [ "u_spell_level('teleport_phase') >= 8" ] } ]
            },
            {
              "or": [ { "math": [ "u_spell_level('teleport_stride') >= 8" ] }, { "math": [ "u_spell_level('teleport_collapse') >= 6" ] } ]
            },
            { "math": [ "u_spell_level('teleport_ephemeral_walk') >= 7" ] },
            { "math": [ "u_spell_level('teleport_warped_strikes') >= 6" ] }
          ]
        },
        "effect": {
          "run_eocs": {
            "id": "EOC_UNLOCK_TELEPORTATION_WARP_COMBAT_2",
            "condition": {
              "and": [
                {
                  "or": [
                    { "roll_contested": { "math": [ "u_skill('unarmed')" ] }, "difficulty": 13 },
                    { "roll_contested": { "math": [ "u_skill('melee')" ] }, "difficulty": 13 }
                  ]
                },
                { "roll_contested": { "math": [ "u_skill('metaphysics')" ] }, "difficulty": 15 }
              ]
            },
            "effect": [
              {
                "u_message": "You've done it.  After long effort, you've mastered the TURQUOISE KEYSTONE protocols.  Your enemies will never be able to stop your blows now.",
                "type": "good"
              },
              { "math": [ "u_spell_level('teleport_warper_combat') = 1" ] },
              { "give_achievement": "mom_learn_flicker_flash_stance" },
              { "u_learn_recipe": "practice_teleport_warper_combat" },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 50,100 )" ] },
              { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
            ],
            "false_effect": [
              {
                "u_message": "You just couldn't master the forms and the meditations eluded you.  You'll need to try again.",
                "type": "bad"
              },
              { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 50,100 )" ] },
              { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
            ]
          }
        },
        "false_effect": [
          {
            "u_message": "Your mastery of teleportation isn't deep enough to succeed.  You'll need to develop your powers and try again."
          },
          { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 50,100 )" ] },
          { "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
        ]
      }
    ]
  }
]
