Skip to content

Commit

Permalink
修复打开不了界面
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jan 9, 2025
1 parent 268087e commit 2a82492
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 42 deletions.
2 changes: 0 additions & 2 deletions deploy.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
src
ok
config.py
launcher.json
launcher.py
main.py
ok-ww.exe
main.py
Expand Down
24 changes: 0 additions & 24 deletions launcher.json

This file was deleted.

6 changes: 0 additions & 6 deletions launcher.py

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ numpy==1.26.4
# openvino
# rapidocr-openvino
# shapely
ok-script==0.0.438
ok-script==0.0.439
# via -r .\requirements.in
opencv-contrib-python==4.10.0.84
# via -r .\requirements.in
Expand Down
6 changes: 1 addition & 5 deletions src/task/AutoCombatTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ def run(self):
else:
self.get_current_char().perform()
except CharDeadException:
logger.info(f'char dead try teleport to heal')
try:
self.teleport_to_heal()
except Exception as e:
logger.error('teleport to heal error', e)
self.log_error(f'Characters dead', notify=True, tray=True)
break
except NotInCombatException as e:
current_char = self.get_current_char()
Expand Down
7 changes: 3 additions & 4 deletions src/task/FarmWorldBossTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ def run(self):
self.sleep(5)
try:
self.combat_once(wait_before=0)
except CharDeadException:
logger.info(f'char dead try teleport to heal')
self.teleport_to_heal()
continue
except CharDeadException as e:
self.log_error(f'Characters dead', notify=True, tray=True)
return
logger.info(f'farm echo combat end')
if boss_name == 'Bell-Borne Geochelone':
logger.info(f'sleep for the Boss model to disappear')
Expand Down

0 comments on commit 2a82492

Please sign in to comment.