Now you can heal yourself.
This commit is contained in:
parent
e03a63f9fb
commit
f19c1dbb20
6 changed files with 68 additions and 14 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue