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); } }
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)); }