static void RecruitFormerHuman(Pawn pawn) { if (pawn?.IsSapientFormerHuman() == true) { Worker_FormerHumanRecruitAttempt.DoRecruit(pawn.Map.mapPawns.FreeColonists.FirstOrDefault(), pawn, 1f); DebugActionsUtility.DustPuffFrom(pawn); } }
static void RecruitFormerHuman(Pawn pawn) { var sapienceState = pawn?.GetSapienceState(); if (sapienceState?.IsFormerHuman == true) { Worker_FormerHumanRecruitAttempt.DoRecruit(pawn.Map.mapPawns.FreeColonists.FirstOrDefault(), pawn, 1f); DebugActionsUtility.DustPuffFrom(pawn); } }