formatted

This commit is contained in:
2022-01-27 22:38:44 +01:00
parent a1ffc7b95d
commit e68fa87fc9
8 changed files with 94 additions and 31 deletions

View File

@@ -3,8 +3,8 @@ use specs::prelude::*;
use crate::{
components::{Monster, Position, Viewshed, WantsToMelee},
Confusion,
map::Map, RunState,
map::Map,
Confusion, RunState,
};
pub struct MonsterAI {}
@@ -43,7 +43,7 @@ impl<'a> System<'a> for MonsterAI {
}
for (entity, mut viewshed, _monster, mut pos) in
(&entities, &mut viewshed, &monster, &mut position).join()
(&entities, &mut viewshed, &monster, &mut position).join()
{
let mut can_act = true;