Remove commit_drop from status and loot UI since DropTarget already does that.

This commit is contained in:
Zed A. Shaw 2025-06-09 22:57:49 -04:00
parent 343f3a246f
commit 7a551cf83a
5 changed files with 6 additions and 20 deletions

View file

@ -125,14 +125,4 @@ namespace gui {
dbc::log("begin the loot drop");
$selected_entity = world_entity;
}
bool LootUI::commit_drop(DinkyECS::Entity gui_id) {
if($gui.has<guecs::DropTarget>(gui_id)) {
auto& drop = get_drop_target(gui_id);
return drop.commit();
} else {
// NOTE: I think I need to cancel the drop or something?
return false;
}
}
}