Loot boxes now have ritual items and you can click on them, or the enemy just dies.
This commit is contained in:
parent
3c5021e4c9
commit
fb064ffbf1
6 changed files with 53 additions and 34 deletions
|
@ -90,8 +90,12 @@ namespace gui {
|
|||
}
|
||||
|
||||
void MainUI::dead_entity(DinkyECS::Entity entity) {
|
||||
auto &sprite = $level.world->get<components::Sprite>(entity);
|
||||
$rayview.update_sprite(entity, sprite);
|
||||
// BUG: this is kind of weird, but I think when I switch to dead bodies for things
|
||||
// (see System::distribute_loot) then this can be fixed or improved
|
||||
if($level.world->has<components::Sprite>(entity)) {
|
||||
auto &sprite = $level.world->get<components::Sprite>(entity);
|
||||
$rayview.update_sprite(entity, sprite);
|
||||
}
|
||||
}
|
||||
|
||||
void MainUI::update_level(GameLevel level) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue