[
  {
    "type": "effect_on_condition",
    "id": "EOC_forge_blood",
    "effect": [
      {
        "u_run_inv_eocs": "manual",
        "search_data": [ { "wielded_only": true } ],
        "true_eocs": [
          {
            "id": "EOC_forge_blood_check",
            "condition": { "not": { "npc_has_flag": "DURABLE_MELEE" } },
            "effect": [
              {
                "run_eocs": [
                  {
                    "id": "EOC_forge_blood_check_blood",
                    "condition": { "and": [ { "math": [ "u_vitamin('blood') >= -15000" ] }, { "math": [ "u_vitamin('redcells') >= -15000" ] } ] },
                    "effect": [
                      { "npc_set_flag": "DURABLE_MELEE" },
                      { "npc_set_flag": "NO_REPAIR" },
                      { "math": [ "u_vitamin('blood')", "-=", "2000" ] },
                      { "math": [ "u_vitamin('redcells')", "-=", "2000" ] },
                      {
                        "u_message": "You pour some of your blood on the object, imbuing it with durability.",
                        "type": "good"
                      }
                    ],
                    "false_effect": [ { "u_message": "You do not have enough blood to safely use this ability.", "type": "bad" } ]
                  }
                ]
              }
            ],
            "false_effect": [ { "u_message": "This object is durable enough, there's no need to use your blood on it.", "type": "mixed" } ]
          }
        ]
      }
    ]
  }
]
