Autowalker now will grab healing when they need it and can grab it.

This commit is contained in:
Zed A. Shaw 2025-09-06 00:02:42 -04:00
parent 29ab9721af
commit ed33a36bca
3 changed files with 16 additions and 4 deletions

View file

@ -209,8 +209,8 @@ void Autowalker::handle_player_walk(ai::State& start, ai::State& goal) {
} else if(action.name == "use_healing") {
status(L"USING HEALING");
player_use_healing();
} else if(action.name == "collect_items") {
status(L"COLLECTING ITEMS");
} else if(action.name == "collect_items" || action.name == "find_healing") {
status(action.name == "collection_items" ? L"COLLECTING ITEMS" : L"FIND HEALING");
auto paths = path_to_items();