diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-08-12 01:17:16 +0200 | 
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-08-12 01:17:16 +0200 | 
| commit | 66e681c18e13b83a4d9e3836e72bbf7bc374f272 (patch) | |
| tree | 4632c297e791bced1c4fcc36a39d4caf79ce748b /server/bot | |
| parent | fe31730276aff0eeab5996fbdbf7da4cb82bd810 (diff) | |
| download | hurrycurry-66e681c18e13b83a4d9e3836e72bbf7bc374f272.tar hurrycurry-66e681c18e13b83a4d9e3836e72bbf7bc374f272.tar.bz2 hurrycurry-66e681c18e13b83a4d9e3836e72bbf7bc374f272.tar.zst | |
remove legacy gitignore
Diffstat (limited to 'server/bot')
| -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:?}"),              }          } | 
