summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--server/bot/src/algos/simple.rs11
2 files changed, 8 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 01af4955..4ca6a071 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,3 @@
/test-client/*.js
/specs/*.html
/client/menu/book/book_*.webp*
-/light-client/assets/textures/*.png~
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:?}"),
}
}