Make the AIM_CLICK handler in FSM properly deal with an item already there while looting or not. Closes #56.

This commit is contained in:
Zed A. Shaw 2025-07-03 22:26:06 -04:00
parent 87e69bebde
commit 584c4e9f67
6 changed files with 41 additions and 25 deletions

View file

@ -127,8 +127,13 @@ namespace gui {
update();
}
bool LootUI::drop_item(DinkyECS::Entity item_id) {
bool dropped = System::drop_item($level, item_id);
if(dropped) update();
return dropped;
}
bool LootUI::mouse(float x, float y, bool hover) {
return $gui.mouse(x, y, hover);
}
}