Skip to content

Commit d6288c9

Browse files
committed
修复中文卡在战役界面
1 parent 6b9c9e0 commit d6288c9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

i18n/en_US/LC_MESSAGES/ocr.mo

45 Bytes
Binary file not shown.

i18n/en_US/LC_MESSAGES/ocr.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ msgstr "免费"
336336
msgid "战役推进"
337337
msgstr "Campaign"
338338

339+
msgid "补给作战"
340+
msgstr "Supply Missions"
341+
339342
# From arena: self.wait_click_ocr(match=['模拟作战'], ...)
340343
# From bingqi: self.wait_click_ocr(match=['模拟作战'], ...)
341344
msgid "Combat Simulations"

src/tasks/DailyTask.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def shopping(self):
153153
def arena(self):
154154
self.info_set('current_task', 'arena')
155155
self.wait_click_ocr(match=re.compile('战役推进'), box='top_right', after_sleep=1, raise_if_not_found=True)
156-
self.wait_ocr(match=re.compile('战役推进'), box='top_right', raise_if_not_found=True)
156+
self.wait_ocr(match=re.compile('补给作战'), box='top_right', raise_if_not_found=True)
157157
self.sleep(1)
158158
self.click_relative(0.89, 0.05) # 模拟战斗
159159
self.wait_click_ocr(match=['实兵演习'], box='bottom', after_sleep=0.5, raise_if_not_found=True)
@@ -175,7 +175,7 @@ def arena(self):
175175
def bingqi(self):
176176
self.info_set('current_task', 'bingqi')
177177
self.wait_click_ocr(match=re.compile('战役推进'), box='top_right', after_sleep=1, raise_if_not_found=True)
178-
self.wait_ocr(match=re.compile('战役推进'), box='top_right', raise_if_not_found=True)
178+
self.wait_ocr(match=re.compile('补给作战'), box='top_right', raise_if_not_found=True)
179179
self.sleep(1)
180180
self.click_relative(0.90, 0.05, after_sleep=0.95) # 补给
181181
self.click_relative(0.98, 0.49, after_sleep=0.52)
@@ -353,7 +353,7 @@ def challenge_arena_opponent(self):
353353
def battle(self):
354354
self.info_set('current_task', 'battle')
355355
self.wait_click_ocr(match=re.compile('战役推进'), box='top_right', after_sleep=0.5, raise_if_not_found=True)
356-
self.wait_ocr(match=re.compile('战役推进'), box='top_right', raise_if_not_found=True)
356+
self.wait_ocr(match=re.compile('补给作战'), box='top_right', raise_if_not_found=True)
357357
self.click_relative(0.78, 0.05)
358358
if self.is_adb():
359359
self.swipe_relative(0.8, 0.6, 0.5, 0.6, duration=1)

0 commit comments

Comments
 (0)