[
  {
    "type": "recipe",
    "activity_level": "LIGHT_EXERCISE",
    "name": "study VERDANT HAND combat protocol",
    "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 }
    ],
    "flags": [ "SECRET", "BLIND_HARD" ],
    "result_eocs": [
      {
        "id": "EOC_UNLOCK_PSIONIC_COMBAT",
        "condition": {
          "and": [
            { "math": [ "u_spell_level('biokin_physical_enhance')", ">=", "8" ] },
            { "math": [ "u_spell_level('biokin_reflex_enhance')", ">=", "6" ] },
            { "math": [ "u_spell_level('biokin_flexibility')", ">=", "8" ] },
            { "math": [ "u_spell_level('biokin_overcome_pain')", ">=", "5" ] },
            { "math": [ "u_spell_level('biokin_armor_skin')", ">=", "4" ] }
          ]
        },
        "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": "KI_STRIKE" },
              { "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" }
        ]
      }
    ]
  }
]
