Exemplo n.º 1
0
            // Closest plant to dirt to the character position
            public override Task GetTask()
            {
                Tilable tilable = WorldUtils.FieldNextTileToDirt(this.character.position);

                if (tilable != null)
                {
                    return(new Task(
                               Defs.tasks["task_dirt"],
                               new TargetList(new Target(tilable))
                               ));
                }

                return(null);
            }