예제 #1
0
        public static Job HaulAsideJobFor(Pawn p, Thing t)
        {
            IntVec3 c;

            if (!HaulAIUtility.CanHaulAside(p, t, out c))
            {
                return(null);
            }
            return(new Job(JobDefOf.HaulToCell, t, c)
            {
                count = 99999,
                haulOpportunisticDuplicates = false,
                haulMode = HaulMode.ToCellNonStorage,
                ignoreDesignations = true
            });
        }
        public static Job HaulAsideJobFor(Pawn p, Thing t)
        {
            IntVec3 c = default(IntVec3);

            if (!HaulAIUtility.CanHaulAside(p, t, out c))
            {
                return(null);
            }
            Job job = new Job(JobDefOf.HaulToCell, t, c);

            job.count = 99999;
            job.haulOpportunisticDuplicates = false;
            job.haulMode           = HaulMode.ToCellNonStorage;
            job.ignoreDesignations = true;
            return(job);
        }