From f8dea0e9f95c9d763a03b0b672495b3f9a9a6196 Mon Sep 17 00:00:00 2001 From: Kelly Martin Date: Thu, 29 Nov 2012 18:19:53 -0600 Subject: [PATCH] Autofarm: only try to plant things that have seeds. --- scripts/autofarm.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/autofarm.rb b/scripts/autofarm.rb index 098466745..18f5a9aeb 100644 --- a/scripts/autofarm.rb +++ b/scripts/autofarm.rb @@ -18,10 +18,11 @@ class AutoFarm end def is_plantable (plant) + has_seed = plant.flags[:SEED] season = df.cur_season harvest = df.cur_season_tick + plant.growdur * 10 will_finish = harvest < 10080 - can_plant = plant.flags[season] + can_plant = has_seed && plant.flags[season] can_plant = can_plant && (will_finish || plant.flags[(season+1)%4]) can_plant end