bool CanUseRecipe(RecipeDef recipe) { if (!(recipe.AvailableNow && recipe.AvailableOnNow(SelTable))) { return(false); } if (!LoadedModManager.GetMod <PawnmorpherMod>().GetSettings <PawnmorpherSettings>().injectorsRequireTagging) { return(true); } var mDef = MorphFromSyringeRecipe(recipe); return(mDef?.IsTagged() != false); }
public bool CanScheduleFor([NotNull] RecipeDef recipe, Pawn pawn) => recipe.AvailableOnNow(pawn);