summaryrefslogtreecommitdiff
path: root/server/bot/src/algos
diff options
context:
space:
mode:
Diffstat (limited to 'server/bot/src/algos')
-rw-r--r--server/bot/src/algos/simple.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/bot/src/algos/simple.rs b/server/bot/src/algos/simple.rs
index ba5fd5ff..afa5764f 100644
--- a/server/bot/src/algos/simple.rs
+++ b/server/bot/src/algos/simple.rs
@@ -249,7 +249,7 @@ impl SimpleContext<'_> {
if let Some(pos) = self.find_tile(*tile) {
self.assert_tile_is_clear(pos)?;
self.aquire_item(*input)?;
- self.interact_with(pos, duration + 0.5)?;
+ self.interact_with(pos, duration + 0.2)?;
}
}
Recipe::Passive {
@@ -264,6 +264,8 @@ impl SimpleContext<'_> {
self.state.cooldown = 0.5;
return Err(()); // waiting for it to finish
// TODO check progress
+ } else {
+ self.assert_tile_is_clear(pos)?;
}
}
self.aquire_item(*input)?;