{
    "RainbowFinJob": {
        "desc": "七彩鳞任务",
        "max_hit": 1,
        "recognition": "And",
        "all_of": [
            "CheckRainbowFinText",
            "CheckRainbowFinIcon",
            "CheckRainbowFinReadyText"
        ],
        "pre_delay": 0,
        "post_delay": 0,
        "next": [
            "AcceptRainbowFin",
            "GoToRainbowFinMission"
        ]
    },
    "CheckRainbowFinText": {
        "desc": "检查是否有七彩鳞文本",
        "recognition": "OCR",
        "roi": [
            63,
            208,
            1158,
            71
        ],
        "expected": [
            "七彩鳞",
            "七彩鱗",
            "(?i)Rainbow\\s*Fin",
            "七色鱗獣",
            "무지개 린수"
        ],
        "order_by": "Vertical"
    },
    "CheckRainbowFinIcon": {
        "desc": "检查七彩鳞文本下方的图标",
        "recognition": "TemplateMatch",
        "roi": "CheckRainbowFinText",
        "roi_offset": [
            -18,
            0,
            0,
            28
        ],
        "template": "EnvironmentMonitoring/PhotoIcon.png",
        "threshold": 0.8
    },
    "CheckRainbowFinReadyText": {
        "desc": "检查七彩鳞委托是否准备好",
        "recognition": "OCR",
        "roi": "CheckRainbowFinIcon",
        "roi_offset": [
            -14,
            332,
            359,
            76
        ],
        "expected": [
            "接取委托",
            "接取委託",
            "(?i)Accept\\s*Job",
            "引き受ける",
            "前往任务",
            "前往任務",
            "(?i)Go\\s*to\\s*Mission",
            "任務へ",
            "의뢰 수령",
            "임무로 이동하기"
        ]
    },
    "CheckRainbowFinJob": {
        "desc": "检查七彩鳞委托是否可以接取",
        "recognition": "OCR",
        "roi": "CheckRainbowFinIcon",
        "roi_offset": [
            -14,
            332,
            359,
            76
        ],
        "expected": [
            "接取委托",
            "接取委託",
            "(?i)Accept\\s*Job",
            "引き受ける",
            "의뢰 수령"
        ]
    },
    "CheckRainbowFinGoToMissionText": {
        "desc": "检查七彩鳞委托是否可以前往",
        "recognition": "OCR",
        "roi": "CheckRainbowFinIcon",
        "roi_offset": [
            -14,
            332,
            359,
            76
        ],
        "expected": [
            "前往任务",
            "前往任務",
            "(?i)Go\\s*to\\s*Mission",
            "任務へ",
            "임무로 이동하기"
        ]
    },
    "InRainbowFinMission": {
        "desc": "是否在七彩鳞任务界面",
        "recognition": "OCR",
        "roi": [
            415,
            50,
            855,
            241
        ],
        "expected": [
            "七彩鳞",
            "七彩鱗",
            "(?i)Rainbow\\s*Fin",
            "七色鱗獣",
            "무지개 린수"
        ]
    },
    "AcceptRainbowFin": {
        "desc": "接取七彩鳞委托",
        "recognition": "And",
        "all_of": [
            "CheckRainbowFinText",
            "CheckRainbowFinIcon",
            "CheckRainbowFinJob"
        ],
        "box_index": 2,
        "action": "Click",
        "next": [
            "GoToRainbowFinMission"
        ]
    },
    "GoToRainbowFinMission": {
        "desc": "前往七彩鳞任务",
        "recognition": "And",
        "all_of": [
            "CheckRainbowFinText",
            "CheckRainbowFinIcon",
            "CheckRainbowFinGoToMissionText"
        ],
        "box_index": 2,
        "action": "Click",
        "next": [
            "RainbowFinTrackOrGoTo"
        ]
    },
    "RainbowFinTrackOrGoTo": {
        "desc": "在七彩鳞任务中，如果有开始追踪的按钮就点击追踪，没有就直接前往",
        "recognition": "And",
        "all_of": [
            "InRainbowFinMission"
        ],
        "next": [
            "TrackRainbowFin",
            "GoToRainbowFin"
        ]
    },
    "TrackRainbowFin": {
        "desc": "追踪七彩鳞任务",
        "recognition": "And",
        "all_of": [
            "TrackMissionButton",
            "InRainbowFinMission"
        ],
        "action": "Click",
        "next": [
            "GoToRainbowFin"
        ]
    },
    "GoToRainbowFin": {
        "desc": "前往七彩鳞，先回到大世界再进行判断",
        "action": "Custom",
        "custom_action": "SubTask",
        "custom_action_param": {
            "sub": [
                "SceneAnyEnterWorld"
            ]
        },
        "next": [
            "GoToRainbowFinStartPos",
            "GoToRainbowFinNotAtStartPos"
        ]
    },
    "GoToRainbowFinStartPos": {
        "desc": "在七彩鳞任务开始位置附近",
        "recognition": "Custom",
        "custom_recognition": "MapTrackerAssertLocation",
        "custom_recognition_param": {
            "expected": [
                {
                    "map_name": "map02_lv001",
                    "target": [
                        125,
                        815,
                        15,
                        15
                    ]
                }
            ]
        },
        "next": [
            "GoToRainbowFinMapTrackerMove"
        ]
    },
    "GoToRainbowFinNotAtStartPos": {
        "desc": "不在七彩鳞任务开始位置附近，先传送再复核落点",
        "action": "Custom",
        "custom_action": "SubTask",
        "custom_action_param": {
            "sub": [
                "SceneEnterWorldWulingJingyuValley10"
            ]
        },
        "next": [
            "GoToRainbowFinRecheckStartPos",
            "GoToRainbowFinReEnterMap"
        ]
    },
    "GoToRainbowFinRecheckStartPos": {
        "desc": "传送后再次检查是否已在七彩鳞任务开始位置附近",
        "recognition": "Custom",
        "custom_recognition": "MapTrackerAssertLocation",
        "custom_recognition_param": {
            "expected": [
                {
                    "map_name": "map02_lv001",
                    "target": [
                        125,
                        815,
                        15,
                        15
                    ]
                }
            ]
        },
        "next": [
            "GoToRainbowFinMapTrackerMove"
        ]
    },
    "GoToRainbowFinReEnterMap": {
        "desc": "传送后仍未到达七彩鳞任务开始位置附近，重试一次传送",
        "action": "Custom",
        "custom_action": "SubTask",
        "custom_action_param": {
            "sub": [
                "SceneEnterWorldWulingJingyuValley10"
            ]
        },
        "next": [
            "GoToRainbowFinFinalCheckStartPos",
            "GoToRainbowFinStartPosFailed"
        ]
    },
    "GoToRainbowFinFinalCheckStartPos": {
        "desc": "二次传送后再次检查是否已在七彩鳞任务开始位置附近",
        "recognition": "Custom",
        "custom_recognition": "MapTrackerAssertLocation",
        "custom_recognition_param": {
            "expected": [
                {
                    "map_name": "map02_lv001",
                    "target": [
                        125,
                        815,
                        15,
                        15
                    ]
                }
            ]
        },
        "next": [
            "GoToRainbowFinMapTrackerMove"
        ]
    },
    "GoToRainbowFinStartPosFailed": {
        "desc": "七彩鳞传送后仍未到达预期起点，结束当前子任务"
    },
    "GoToRainbowFinMapTrackerMove": {
        "desc": "前往七彩鳞",
        "action": "Custom",
        "custom_action": "MapTrackerMove",
        "custom_action_param": {
            "map_name": "map02_lv001",
            "path": [
                [
                    131,
                    820
                ],
                [
                    142,
                    818
                ],
                [
                    151,
                    813
                ],
                [
                    163,
                    808
                ],
                [
                    172,
                    799
                ],
                [
                    188,
                    789
                ],
                [
                    194,
                    765
                ],
                [
                    205,
                    755
                ]
            ]
        },
        "anchor": {
            "EnvironmentMonitoringBactToTerminal": "SceneEnterMenuRegionalDevelopmentWulingEnvironmentMonitoring",
            "EnvironmentMonitoringAdjustCamera": "RainbowFinAdjustCamera"
        },
        "next": [
            "EnvironmentMonitoringTakePhoto"
        ]
    },
    "RainbowFinAdjustCamera": {
        "desc": "七彩鳞任务中调整朝向",
        "max_hit": 2,
        "next": [
            "EnvironmentMonitoringSwipeScreenLeft"
        ]
    }
}
