FluffyManager.Utilities_Livestock._milkable C# (CSharp) Method

_milkable() private static method

private static _milkable ( this pawn ) : bool
pawn this
return bool
        private static bool _milkable( this Pawn pawn )
        {
            var comp = pawn?.TryGetComp<CompMilkable>();
            object active = false;
            if ( comp != null )
            {
                active = comp.GetPrivatePropertyValue( "Active" );
            }
            return (bool) active;
        }