inventory finishes

This commit is contained in:
Llywelwyn 2023-07-07 08:37:29 +01:00
parent aadb966fa4
commit f26adf352e
6 changed files with 126 additions and 5 deletions

View file

@ -97,6 +97,7 @@ pub fn player_input(gs: &mut State, ctx: &mut Rltk) -> RunState {
// Items
VirtualKeyCode::G => get_item(&mut gs.ecs),
VirtualKeyCode::I => return RunState::ShowInventory,
VirtualKeyCode::D => return RunState::ShowDropItem,
_ => {
return RunState::AwaitingInput;
}