Example #1
0
            public override TaskData GetTaskData()
            {
                // Closest plant to cut to the character position
                Tilable tilable = WorldUtils.FieldNextPlantToCut(this.character.position);

                if (tilable != null)
                {
                    return(new TaskData(
                               Defs.tasks["task_cut"],
                               new TargetList(new Target(tilable)),
                               this.character
                               ));
                }

                return(null);
            }