mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-25 04:42:39 +08:00
Opt: Faster map preparation again
This commit is contained in:
@@ -251,9 +251,10 @@ class MapOperation(MysteryHandler, FleetPreparation, Retirement, FastForwardHand
|
|||||||
percent = self.get_map_clear_percentage()
|
percent = self.get_map_clear_percentage()
|
||||||
logger.attr('Map_clear_percentage', percent)
|
logger.attr('Map_clear_percentage', percent)
|
||||||
# Comment this because percentage starts from 100% and increase from 0% to actual value
|
# Comment this because percentage starts from 100% and increase from 0% to actual value
|
||||||
# if percent > 0.95:
|
# 2022.08.21 Still enable this when `percent` was raised from 0.
|
||||||
# # map clear percentage 100%, exit directly
|
if percent > 0.95 and 0 <= self.map_clear_percentage_prev < 0.95:
|
||||||
# return True
|
# map clear percentage 100%, exit directly
|
||||||
|
return True
|
||||||
if abs(percent - self.map_clear_percentage_prev) < 0.02:
|
if abs(percent - self.map_clear_percentage_prev) < 0.02:
|
||||||
self.map_clear_percentage_prev = percent
|
self.map_clear_percentage_prev = percent
|
||||||
if self.map_clear_percentage_timer.reached():
|
if self.map_clear_percentage_timer.reached():
|
||||||
|
|||||||
Reference in New Issue
Block a user