Small error in how mouse events are processed. I need to do them _outside_ of the guecs::UI so that the event is checked once and then confirmed in all grids. Then created a tombstone device to be used as a dead enemy marker that will later allow looting.

This commit is contained in:
Zed A. Shaw 2025-02-19 08:33:18 -05:00
parent 6447f86954
commit e04c03b381
8 changed files with 37 additions and 17 deletions

View file

@ -125,6 +125,10 @@ void System::death(GameLevel &level) {
world.send<Events::GUI>(Events::GUI::DEATH, ent, {});
} else {
// remove their motion so they're dead
// CHANGE: this needs to remove the enemies that are
// dead and then replace them at that position with
// a gave_stone device. And then that makes it so you
// can loot their dead bodies.
world.remove<Motion>(ent);
}
}