File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""AutoWSGR - 战舰少女R 自动化框架(v2)"""
22
3- __version__ = '2.1.9.post8 '
3+ __version__ = '2.1.9.post9 '
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ def choose_ships(
114114 candidates = self .config .level1 + [e for e in self ._level2_full if not _is_ship (e )]
115115
116116 lim = 6 if fleet_count < 6 else score
117+ lim = score if fleet_count == 0 else lim
117118 result : list [str ] = []
118119 for target in candidates :
119120 if target in selections :
Original file line number Diff line number Diff line change 1313
1414from autowsgr .constants import SHIPNAMES
1515from autowsgr .infra .logger import get_logger
16- from autowsgr .vision import get_api_dll
16+ from autowsgr .vision import apply_ship_patches , get_api_dll
1717from autowsgr .vision .ocr import _fuzzy_match
1818
1919
@@ -135,7 +135,8 @@ def locate_ship_rows(
135135 text = r .text .strip ()
136136 if not text :
137137 continue
138- name = _fuzzy_match (text , SHIPNAMES )
138+ correct_name = apply_ship_patches (text )
139+ name = _fuzzy_match (correct_name , SHIPNAMES )
139140 if name is None :
140141 continue
141142 if deduplicate_by_name and name in seen :
@@ -393,7 +394,8 @@ def read_ship_levels(
393394 if level is not None :
394395 local_level_hits .append ((level , x_center ))
395396
396- name = _fuzzy_match (text , SHIPNAMES )
397+ correct_name = apply_ship_patches (text )
398+ name = _fuzzy_match (correct_name , SHIPNAMES )
397399 if name is not None :
398400 name_hits .append ((name , x_center ))
399401
You can’t perform that action at this time.
0 commit comments