Now you can heal yourself.

This commit is contained in:
Zed A. Shaw 2025-08-11 16:59:19 -04:00
parent e03a63f9fb
commit f19c1dbb20
6 changed files with 68 additions and 14 deletions

View file

@ -502,13 +502,18 @@ namespace gui {
break;
case eGUI::USE_ITEM: {
auto what = std::any_cast<DinkyECS::Entity>(data);
dbc::log(fmt::format("USE ITEM: {}", what));
if(System::use_item($level, what)) {
$status_ui.update();
}
break;
}
case eGUI::DEATH: {
$status_ui.update();
if(entity != player.entity) {
$main_ui.dead_entity(entity);
} else {
dbc::log("NEED TO HANDLE PLAYER DYING.");
}
} break;
case eGUI::NOOP: {