1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 08:47:20 +08:00

Optimize: Reuse device instance in the same function

- Speed up retire confirm
- Set default server to CN
- Improve log appearance of aScreenCap init
This commit is contained in:
LmeSzinc
2020-06-16 08:14:47 +08:00
parent 2e26d0a1e1
commit d0867262e2
5 changed files with 24 additions and 21 deletions

View File

@@ -128,7 +128,7 @@ class Retirement(Enhancement):
if self.appear_then_click(EQUIP_CONFIRM_2, offset=30, interval=2):
executed = True
continue
if self.appear(GET_ITEMS_1, interval=2):
if self.appear(GET_ITEMS_1, interval=0.5):
self.device.click(GET_ITEMS_1_RETIREMENT_SAVE)
self.interval_reset(SHIP_CONFIRM)
continue