Egoistically / ALAuto

Azur Lane bot based on azurlane-auto. Discord: https://discord.gg/vCFxDen.
Do What The F*ck You Want To Public License
106 stars 43 forks source link

? node collection #38

Open Alyssaareva opened 4 years ago

Alyssaareva commented 4 years ago

I would like to suggest adding the option to acquire all ? nodes before approaching the boss. Many of the farm locations are popular because of their high ? node density.

Alyssaareva commented 4 years ago

It seems that the program is unable to find the boss if a ? node spawns in front of it. Collecting the ? nodes may help with this as well.

hjk22 commented 4 years ago

After the last few updates, you can now configure the bot so that it collects the mystery nodes when they spawn on the map.

RubySapior commented 4 years ago

Especially for 7-2. Prioritize node collection over retreating Lvl after 3 fights. However, the bot just exits after the 3rd battle without collecting the 2 new nodes.

UserFromSpace commented 4 years ago

Hello!

This has already been suggested and a makeshift solution for this very niche case came out by hjk:

if self.config.combat['retreat_after'] != 0 and self.combats_done >= self.config.combat['retreat_after']:

should be changed to

if self.config.combat['retreat_after'] != 0 and self.kills_count >= self.config.combat['retreat_after'] and (target_info != None and target_info[2] == 'enemy')

And you need an additional continue after target_info = self.get_closest_target(self.blacklist, mystery_node=(not self.config.combat["ignore_mystery_nodes"]))

Props to hjk22.