Egoistically / ALAuto

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

[JP] fix dorm refill and new features (end lecture, update store, rainbowBP First, close daily announce) #147

Closed FlYiNGPoTAToChiP closed 4 years ago

FlYiNGPoTAToChiP commented 4 years ago

note: all these changes only work for JP now, need other server's screencap

assets/JP/headquarters assets/JP/research

add file for new features

modules/headquarters.py

fix dorm refill old dorm detect:

in dorm
check corner bar
refill

it broke because new corner bar is transparent but center bar still solid new detect:

in dorm
"click" corner bar (open center bar )
check center bar 
refill
tap out

new feature

end lecture: If you set ships in lecture,likely will stuck when lecture end. It shows an alert but there is no function to process. Now this only end it, does't start new one. (future update maybe) "note: level 10 lecture required"

update store: every day at 00:00, 06:00, 12:00 store update cause an academy alert just like lecture, no function to deal it cause another stuck & waste time

modules/research.py util/config.py config.ini

add RainbowFirst to config if set as True it will start research which contain rainbow BP first this take 1 more round to checking all research "note: this one not fully tested yet, it work when no rainbow BP found so far" it's just too rare :sob:

because the icon have a light sweep effect may need to hold at each research few seconds for several check

FlYiNGPoTAToChiP commented 4 years ago

ALAuto.py

add new feature auto close daily announce at 00:00 (tested)

modules/research.py

improve rainbowfirst function (tested)

FlYiNGPoTAToChiP commented 4 years ago

not sure what happened after i check the log my dorm seems to stop popping up tokens and affinity points after running the bot all night it seems to return to normal after re-login

some kind of refresh bug or anti-bot?

maybe you need to re-login once in a while to refresh normally if you only use the headquarters function