cleans up linter warns

This commit is contained in:
Llywelwyn 2023-09-18 21:54:18 +01:00
parent 6d80b80a82
commit 27c1fe9a48
14 changed files with 71 additions and 64 deletions

View file

@ -350,7 +350,7 @@ pub fn kick(i: i32, j: i32, ecs: &mut World) -> RunState {
destroyed_pos = Some(
Point::new(pos.x + delta_x, pos.y + delta_y)
);
gamelog::record_event(EVENT::BROKE_DOOR(1));
gamelog::record_event(EVENT::BrokeDoor(1));
return false;
// 66% chance of just kicking it.
} else {
@ -414,7 +414,7 @@ pub fn kick(i: i32, j: i32, ecs: &mut World) -> RunState {
ecs.delete_entity(destroyed_thing).expect("Unable to delete.");
}
gamelog::record_event(EVENT::KICKED_SOMETHING(1));
gamelog::record_event(EVENT::KickedSomething(1));
return RunState::Ticking;
}