restricts overmap actions (item use/drop/kick/open/close)
This commit is contained in:
parent
45461495fd
commit
568df55795
3 changed files with 49 additions and 36 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue