runhey / OnmyojiAutoScript

Onmyoji Auto Script | 阴阳师脚本
https://runhey.github.io/OnmyojiAutoScript-website/
GNU General Public License v3.0
1.87k stars 187 forks source link

fix(SixRealms) bug #482

Closed hwef closed 1 month ago

hwef commented 1 month ago

优化六道OCR逻辑

runhey commented 1 month ago
            # 对不识别的岛屿使用固定位置 识别的使用图像中心坐标
            if isl_type == MoonSeaType.island100:
                if self.click(self.C_ISLAND_ENTER, interval=2.5):
                    continue
            else:
                temp_center = RuleClick(isl_roi, roi_back=(0,0,100,100), name="center_point")
                if self.click(temp_center, interval=5):
                    continue

为什么这个这么写呀

hwef commented 1 month ago

奥 我弄错了 sry

            # 对不识别的岛屿使用固定位置 识别的使用图像中心坐标
            if isl_type == MoonSeaType.island100:
                if self.click(self.C_ISLAND_ENTER, interval=2.5):
                    continue
            else:
                temp_center = RuleClick(isl_roi, roi_back=(0,0,100,100), name="center_point")
                if self.click(temp_center, interval=5):
                    continue

为什么这个这么写呀

sry 我弄错了