Skip to content

Commit

Permalink
fix(queen): now leveling up consistantly to level 6 and some times le…
Browse files Browse the repository at this point in the history
…vel 8
  • Loading branch information
Aluxray committed Jun 23, 2024
1 parent 502e1fd commit 29c92bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ai/src/ai/knight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use log::{debug, error, info, warn};
use zappy_macros::Bean;

const FETUS_NEED: usize = 2;
const MIN_FOOD_ON_FLOOR: usize = 500;
const MIN_FOOD_ON_FLOOR: usize = 200;

#[derive(Debug, Clone, Bean)]
pub struct Knight {
Expand Down
2 changes: 1 addition & 1 deletion ai/src/ai/queen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ impl Queen {
let r_inv = require.inv();
let look = &self.look;

if self.info.level >= 6 && self.info.p_id % 2 == 1 {
if self.info.level >= 6 && self.info.p_id % 6 != 0 {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion ai/src/commands/incantation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub async fn incantation(client: &mut TcpClient) -> Result<ResponseResult, Comma
return handle_incantation(client).await;
}
if res == ResponseResult::KO {
return Ok(res);
return wait_for_incantation(client).await;
}
println!("[{}] Incantation result: {:?}", client.id(), res);
response = client.check_response().await;
Expand Down

0 comments on commit 29c92bc

Please sign in to comment.