From 66e681c18e13b83a4d9e3836e72bbf7bc374f272 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 12 Aug 2024 01:17:16 +0200 Subject: remove legacy gitignore --- server/bot/src/algos/simple.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'server/bot/src') 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 { @@ -183,6 +181,13 @@ impl SimpleContext<'_> { if let Some(pos) = self.find_tile(*tile) { self.interact_with(pos, duration + 0.5)?; } + } + Recipe::Passive { + tile: Some(tile), + input, + .. + } => { + } _ => warn!("recipe too hard {r:?}"), } -- cgit v1.2.3-70-g09d2