예제 #1
0
 protected override Job TryGivePlayJob(Pawn pawn, Thing t)
 {
     if (!JoyGiver_PlayBilliards.ThingHasStandableSpaceOnAllSides(t))
     {
         return(null);
     }
     return(new Job(base.def.jobDef, t));
 }
        protected override Job TryGivePlayJob(Pawn pawn, Thing t)
        {
            Job result;

            if (!JoyGiver_PlayBilliards.ThingHasStandableSpaceOnAllSides(t))
            {
                result = null;
            }
            else
            {
                result = new Job(this.def.jobDef, t);
            }
            return(result);
        }
예제 #3
0
        private Thing BadTable()
        {
            List <Map> maps = Find.Maps;

            for (int i = 0; i < maps.Count; i++)
            {
                List <Thing> list = maps[i].listerThings.ThingsOfDef(ThingDefOf.BilliardsTable);
                for (int j = 0; j < list.Count; j++)
                {
                    if (list[j].Faction == Faction.OfPlayer && !JoyGiver_PlayBilliards.ThingHasStandableSpaceOnAllSides(list[j]))
                    {
                        return(list[j]);
                    }
                }
            }
            return(null);
        }