mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
large_bird: incr. sight_dist, decr. travel_speed, decr. flying_alt in attack
This commit is contained in:
parent
58a379ee47
commit
445c49bd4b
@ -382,7 +382,7 @@ impl<'a> From<&'a Body> for Psyche {
|
||||
},
|
||||
},
|
||||
sight_dist: match body {
|
||||
Body::BirdLarge(_) => 100.0,
|
||||
Body::BirdLarge(_) => 250.0,
|
||||
_ => 40.0,
|
||||
},
|
||||
listen_dist: 30.0,
|
||||
|
@ -1223,7 +1223,7 @@ fn bird_large() -> impl Action<DefaultState> {
|
||||
if !is_deep_water {
|
||||
goto_2d_flying(
|
||||
pos,
|
||||
0.2,
|
||||
0.1,
|
||||
bearing_dist,
|
||||
8.0,
|
||||
8.0,
|
||||
@ -1237,7 +1237,7 @@ fn bird_large() -> impl Action<DefaultState> {
|
||||
|
||||
goto_2d_flying(
|
||||
pos,
|
||||
0.2,
|
||||
0.1,
|
||||
bearing_dist,
|
||||
8.0,
|
||||
8.0,
|
||||
|
@ -3118,7 +3118,7 @@ impl<'a> AgentData<'a> {
|
||||
bearing.xy().try_normalized().unwrap_or_else(Vec2::zero) * speed;
|
||||
if (self.pos.0.z - tgt_data.pos.0.z) < 35.0 {
|
||||
controller.push_basic_input(InputKind::Fly);
|
||||
controller.inputs.move_z = 1.0;
|
||||
controller.inputs.move_z = 0.2;
|
||||
}
|
||||
}
|
||||
} else if !read_data
|
||||
|
Loading…
Reference in New Issue
Block a user