restricts overmap actions (item use/drop/kick/open/close)

This commit is contained in:
Llywelwyn 2023-08-30 23:54:28 +01:00
parent 45461495fd
commit 568df55795
3 changed files with 49 additions and 36 deletions

View file

@ -263,7 +263,8 @@ impl GameState for State {
}
}
if can_act {
new_runstate = player_input(self, ctx);
let on_overmap = self.ecs.fetch::<Map>().overmap;
new_runstate = player_input(self, ctx, on_overmap);
} else {
new_runstate = RunState::Ticking;
}