Skip to content

Commit

Permalink
优化截图方式
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Nov 15, 2024
1 parent 25c9f66 commit 709ea7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ok-script==0.0.308
ok-script==0.0.309
#rapidocr_onnxruntime
rapidocr_openvino
pySide6-Fluent-Widgets>=1.5.5
Expand Down
8 changes: 4 additions & 4 deletions src/task/BaseCombatTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,12 @@ def get_current_con(self, char_config=None):
if max_is_full:
percent = 1
if max_is_full and char_config:
self.logger.info(
f'is_con_full found a full ring {char_config.get("_full_ring_area", 0)} -> {max_area} {color_index}')
# self.logger.info(
# f'is_con_full found a full ring {char_config.get("_full_ring_area", 0)} -> {max_area} {color_index}')
char_config['_full_ring_area'] = max_area
char_config['_ring_color_index'] = color_index
self.logger.info(
f'is_con_full2 found a full ring {char_config.get("_full_ring_area", 0)} -> {max_area} {color_index}')
# self.logger.info(
# f'is_con_full2 found a full ring {char_config.get("_full_ring_area", 0)} -> {max_area} {color_index}')
if percent != 1 and char_config and char_config.get('_full_ring_area', 0) > 0:
percent = max_area / char_config['_full_ring_area']
if not max_is_full and percent >= 1:
Expand Down

0 comments on commit 709ea7f

Please sign in to comment.