public void CauterizeWounds(Pawn p) { int iCount = 1; for (int i = 0; i < iCount; i++) { Hediff_Injury hi = p.health.hediffSet.GetInjuriesTendable().RandomElement(); if (hi != null) { float tendQuality = Rand.Range(.3f, .6f) * LightPotency; hi.Tended(tendQuality); } else { i = iCount; } } }