diff options
Diffstat (limited to 'server')
| -rw-r--r-- | server/bot/src/algos/simple.rs | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/server/bot/src/algos/simple.rs b/server/bot/src/algos/simple.rs index 149a46b2..99f75780 100644 --- a/server/bot/src/algos/simple.rs +++ b/server/bot/src/algos/simple.rs @@ -1,5 +1,3 @@ -use std::sync::Arc; -  use crate::{      pathfinding::{find_path_to_neighbour, Path},      BotAlgo, BotInput, @@ -45,7 +43,7 @@ impl BotAlgo for Simple {                  *down -= dt;                  if *down < 0. {                      self.path = None; -                    self.cooldown = 1.; +                    self.cooldown = 0.2;                  }              }              return BotInput { @@ -184,6 +182,13 @@ impl SimpleContext<'_> {                          self.interact_with(pos, duration + 0.5)?;                      }                  } +                Recipe::Passive { +                    tile: Some(tile), +                    input, +                    .. +                } => { +                     +                }                  _ => warn!("recipe too hard {r:?}"),              }          } | 
