protected override bool Satisfied(Pawn pawn)
        {
            bool flag = this.workType == null;
            bool result;

            if (flag)
            {
                result = false;
            }
            else
            {
                ArcBaseRobot bot   = pawn as ArcBaseRobot;
                bool         flag2 = bot == null;
                if (flag2)
                {
                    result = false;
                }
                else
                {
                    ThingDef_BaseRobot thingDef_bot = bot.def as ThingDef_BaseRobot;
                    bool flag3 = thingDef_bot == null;
                    result = (!flag3 && bot.CanDoWorkType(this.workType));
                }
            }
            return(result);
        }
        public override void SpawnSetup(Map map, bool respawningAfterLoad)
        {
            base.SpawnSetup(map, respawningAfterLoad);
            this.def2 = (this.def as ThingDef_BaseRobot);

            if (this.def2 == null)
            {
                Log.Error("BaseRobot -- def2 is null. Missing class definition in xml file?");
            }
            LongEventHandler.ExecuteWhenFinished(new Action(this.InitPawn_Setup));
        }