mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Better enemy attack rate
This commit is contained in:
parent
91b8b69186
commit
5fc6ab2126
@ -74,7 +74,7 @@ impl<'a> System<'a> for Sys {
|
||||
controller.move_dir =
|
||||
Vec2::<f32>::from(target_pos.0 - pos.0).normalized() * 0.5;
|
||||
|
||||
if rand::random::<f32>() < 0.1 {
|
||||
if rand::random::<f32>() < 0.05 {
|
||||
controller.attack = true;
|
||||
} else {
|
||||
controller.attack = false;
|
||||
|
Loading…
Reference in New Issue
Block a user