Autowalker now will grab healing when they need it and can grab it.
This commit is contained in:
parent
29ab9721af
commit
ed33a36bca
3 changed files with 16 additions and 4 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue