Created a simple pickup sound that sounds like you put something in your bag.

This commit is contained in:
Zed A. Shaw 2025-02-22 23:06:20 -05:00
parent 806f8e4e1a
commit daae239831
3 changed files with 9 additions and 3 deletions

View file

@ -235,6 +235,10 @@ void System::collision(GameLevel &level) {
world.remove<Curative>(entity);
}
if(auto snd = world.get_if<Sound>(entity)) {
sound::play(snd->attack);
}
collider.remove(item_pos.location);
world.remove<Tile>(entity);
world.remove<InventoryItem>(entity);