Can display items picked up but man is this some garbage code. I need to rethink how inventory is stored so that it'll work with the Menu.

This commit is contained in:
Zed A. Shaw 2025-01-03 21:09:42 -05:00
parent 135d9a128b
commit aaa6d9f9f3
3 changed files with 42 additions and 43 deletions

View file

@ -135,7 +135,7 @@ void System::collision(DinkyECS::World &world, Player &player) {
world.send<Events::GUI>(Events::GUI::COMBAT, entity, result);
} else if(world.has<InventoryItem>(entity)) {
auto& item = world.get<InventoryItem>(entity);
auto item = world.get<InventoryItem>(entity);
auto& item_pos = world.get<Position>(entity);
auto& inventory = world.get<Inventory>(player.entity);