Пример #1
0
        public override bool HasJobOnThing(Pawn pawn, Thing t, bool forced = false)
        {
            if (t is Building_SpotExecution)
            {
                Building_SpotExecution building = t as Building_SpotExecution;


                return(pawn.CanReserve(t) && pawn.CanReserve(building.GetPrisonerToExecute(pawn)));
            }
            else
            {
                return(false);
            }
        }
Пример #2
0
        public override Job JobOnThing(Pawn pawn, Thing t, bool forced = false)
        {
            Building_SpotExecution building = t as Building_SpotExecution;

            return(new Job(JobDefOf.JobDriver_HaulAndStartExecution, building.GetPrisonerToExecute(pawn), building, building.Position));
        }