Пример #1
0
        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);
        }
Пример #2
0
 public bool CanScheduleFor([NotNull] RecipeDef recipe, Pawn pawn) => recipe.AvailableOnNow(pawn);