Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 public Lord_Toil_Execution(IntVec3 spot, Building_SpotExecution executionSpot)
 {
     this.spotE = executionSpot;
 }
Exemplo n.º 3
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));
        }
Exemplo n.º 4
0
 public Lord_Job_Execution(IntVec3 spot, Building_SpotExecution ExecutionSpot)
 {
     this.spot = spot;
     SpotE     = ExecutionSpot;
 }