Skip to content

Conversation

@BBElysia
Copy link

功能更新

  • autowsgr/fight/battle.py: 实现了战役外读取剩余次数的功能
    • 添加了战役次数检测逻辑
    • 优化了战斗流程控制

@huan-yp
Copy link
Contributor

huan-yp commented Oct 24, 2025

不能处理活动期间 1.5 倍次数的情况,请做进一步优化

@BBElysia
Copy link
Author

不能处理活动期间 1.5 倍次数的情况,请做进一步优化

我现在没有没有0/12的活动时图片作为模板,理论上用0/8和0/12的模板图片条件做或运算就能解决:

if self.timer.image_exist(IMG.symbol_image[15], confidence=0.87) or self.timer.image_exist(IMG.symbol_image[16], confidence=0.87):
    self.logger.warning('战役次数耗尽')
    return ConditionFlag.BATTLE_TIMES_EXCEED

如果用ocr的话,当前也没办法验证能否识别出"0/12"

@huan-yp
Copy link
Contributor

huan-yp commented Oct 24, 2025

可以考虑使用图像模块的 OCR 接口来完成

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants