mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-13 04:27:00 +08:00
Fix: Some detection changes for W14
- Expose MAP_SWIPE_PREDICT_WITH_CURRENT_FLEET and MAP_SWIPE_PREDICT_WITH_SEA_GRIDS, due to errors in sea grids predictions - Expose MAP_WALK_OPTIMIZE, disabled in W14, because of large map size - Not allow enemy_scale overwrites, but allow 3 overwrites 2. 3 triangle enemies may be detected as 2 if being covered - Reduce TEMPLATE_ENEMY_L similarity, the same reason as above
This commit is contained in:
@@ -148,7 +148,7 @@ class GridPredictor:
|
||||
red = color_similarity_2d(image, (255, 130, 132))
|
||||
yellow = color_similarity_2d(image, (255, 235, 156))
|
||||
|
||||
if TEMPLATE_ENEMY_L.match(red):
|
||||
if TEMPLATE_ENEMY_L.match(red, similarity=0.75):
|
||||
scale = 3
|
||||
elif TEMPLATE_ENEMY_M.match(yellow):
|
||||
scale = 2
|
||||
|
||||
Reference in New Issue
Block a user