mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 23:03:33 +08:00
Fix: Too many clicks when having too many wrong coins and loves in dorm
This commit is contained in:
@@ -60,13 +60,14 @@ class RewardDorm(UI):
|
|||||||
button = tuple(np.append(point, point + TEMPLATE_DORM_LOVE.size))
|
button = tuple(np.append(point, point + TEMPLATE_DORM_LOVE.size))
|
||||||
button = Button(area=button, color=(), button=button, name='DORM_LOVE')
|
button = Button(area=button, color=(), button=button, name='DORM_LOVE')
|
||||||
count += 1
|
count += 1
|
||||||
self.device.click(button)
|
# Disable click record check, because may have too many coins or loves.
|
||||||
|
self.device.click(button, record_check=False)
|
||||||
self.device.sleep((0.5, 0.8))
|
self.device.sleep((0.5, 0.8))
|
||||||
for point in coin_points:
|
for point in coin_points:
|
||||||
button = tuple(np.append(point, point + TEMPLATE_DORM_LOVE.size))
|
button = tuple(np.append(point, point + TEMPLATE_DORM_LOVE.size))
|
||||||
button = Button(area=button, color=(), button=button, name='DORM_COIN')
|
button = Button(area=button, color=(), button=button, name='DORM_COIN')
|
||||||
count += 1
|
count += 1
|
||||||
self.device.click(button)
|
self.device.click(button, record_check=False)
|
||||||
self.device.sleep((0.5, 0.8))
|
self.device.sleep((0.5, 0.8))
|
||||||
|
|
||||||
return count
|
return count
|
||||||
|
|||||||
Reference in New Issue
Block a user