large_bird: incr. sight_dist, decr. travel_speed, decr. flying_alt in attack

This commit is contained in:
flo666 2023-10-02 21:43:59 +02:00 committed by Maxicarlos08
parent 58a379ee47
commit 445c49bd4b
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -382,7 +382,7 @@ impl<'a> From<&'a Body> for Psyche {
}, },
}, },
sight_dist: match body { sight_dist: match body {
Body::BirdLarge(_) => 100.0, Body::BirdLarge(_) => 250.0,
_ => 40.0, _ => 40.0,
}, },
listen_dist: 30.0, listen_dist: 30.0,

View File

@ -1223,7 +1223,7 @@ fn bird_large() -> impl Action<DefaultState> {
if !is_deep_water { if !is_deep_water {
goto_2d_flying( goto_2d_flying(
pos, pos,
0.2, 0.1,
bearing_dist, bearing_dist,
8.0, 8.0,
8.0, 8.0,
@ -1237,7 +1237,7 @@ fn bird_large() -> impl Action<DefaultState> {
goto_2d_flying( goto_2d_flying(
pos, pos,
0.2, 0.1,
bearing_dist, bearing_dist,
8.0, 8.0,
8.0, 8.0,

View File

@ -3118,7 +3118,7 @@ impl<'a> AgentData<'a> {
bearing.xy().try_normalized().unwrap_or_else(Vec2::zero) * speed; bearing.xy().try_normalized().unwrap_or_else(Vec2::zero) * speed;
if (self.pos.0.z - tgt_data.pos.0.z) < 35.0 { if (self.pos.0.z - tgt_data.pos.0.z) < 35.0 {
controller.push_basic_input(InputKind::Fly); controller.push_basic_input(InputKind::Fly);
controller.inputs.move_z = 1.0; controller.inputs.move_z = 0.2;
} }
} }
} else if !read_data } else if !read_data