{
    "CleansingJadeJob": {
        "desc": "漱玉任务",
        "max_hit": 1,
        "recognition": "And",
        "all_of": [
            "CheckCleansingJadeText",
            "CheckCleansingJadeIcon",
            "CheckCleansingJadeReadyText"
        ],
        "pre_delay": 0,
        "post_delay": 0,
        "next": [
            "AcceptCleansingJade",
            "GoToCleansingJadeMission"
        ]
    },
    "CheckCleansingJadeText": {
        "desc": "检查是否有漱玉文本",
        "recognition": "OCR",
        "roi": [
            63,
            208,
            1158,
            71
        ],
        "expected": [
            "漱玉",
            "漱玉",
            "(?i)Cleansing\\s*Jade",
            "漱玉",
            "수옥"
        ],
        "order_by": "Vertical"
    },
    "CheckCleansingJadeIcon": {
        "desc": "检查漱玉文本下方的图标",
        "recognition": "TemplateMatch",
        "roi": "CheckCleansingJadeText",
        "roi_offset": [
            -18,
            0,
            0,
            28
        ],
        "template": "EnvironmentMonitoring/PhotoIcon.png",
        "threshold": 0.8
    },
    "CheckCleansingJadeReadyText": {
        "desc": "检查漱玉委托是否准备好",
        "recognition": "OCR",
        "roi": "CheckCleansingJadeIcon",
        "roi_offset": [
            -14,
            332,
            359,
            76
        ],
        "expected": [
            "接取委托",
            "接取委託",
            "(?i)Accept\\s*Job",
            "引き受ける",
            "前往任务",
            "前往任務",
            "(?i)Go\\s*to\\s*Mission",
            "任務へ",
            "의뢰 수령",
            "임무로 이동하기"
        ]
    },
    "CheckCleansingJadeJob": {
        "desc": "检查漱玉委托是否可以接取",
        "recognition": "OCR",
        "roi": "CheckCleansingJadeIcon",
        "roi_offset": [
            -14,
            332,
            359,
            76
        ],
        "expected": [
            "接取委托",
            "接取委託",
            "(?i)Accept\\s*Job",
            "引き受ける",
            "의뢰 수령"
        ]
    },
    "CheckCleansingJadeGoToMissionText": {
        "desc": "检查漱玉委托是否可以前往",
        "recognition": "OCR",
        "roi": "CheckCleansingJadeIcon",
        "roi_offset": [
            -14,
            332,
            359,
            76
        ],
        "expected": [
            "前往任务",
            "前往任務",
            "(?i)Go\\s*to\\s*Mission",
            "任務へ",
            "임무로 이동하기"
        ]
    },
    "InCleansingJadeMission": {
        "desc": "是否在漱玉任务界面",
        "recognition": "OCR",
        "roi": [
            415,
            50,
            855,
            241
        ],
        "expected": [
            "漱玉",
            "漱玉",
            "(?i)Cleansing\\s*Jade",
            "漱玉",
            "수옥"
        ]
    },
    "AcceptCleansingJade": {
        "desc": "接取漱玉委托",
        "recognition": "And",
        "all_of": [
            "CheckCleansingJadeText",
            "CheckCleansingJadeIcon",
            "CheckCleansingJadeJob"
        ],
        "box_index": 2,
        "action": "Click",
        "next": [
            "GoToCleansingJadeMission"
        ]
    },
    "GoToCleansingJadeMission": {
        "desc": "前往漱玉任务",
        "recognition": "And",
        "all_of": [
            "CheckCleansingJadeText",
            "CheckCleansingJadeIcon",
            "CheckCleansingJadeGoToMissionText"
        ],
        "box_index": 2,
        "action": "Click",
        "next": [
            "CleansingJadeTrackOrGoTo"
        ]
    },
    "CleansingJadeTrackOrGoTo": {
        "desc": "在漱玉任务中，如果有开始追踪的按钮就点击追踪，没有就直接前往",
        "recognition": "And",
        "all_of": [
            "InCleansingJadeMission"
        ],
        "next": [
            "TrackCleansingJade",
            "GoToCleansingJade"
        ]
    },
    "TrackCleansingJade": {
        "desc": "追踪漱玉任务",
        "recognition": "And",
        "all_of": [
            "TrackMissionButton",
            "InCleansingJadeMission"
        ],
        "action": "Click",
        "next": [
            "GoToCleansingJade"
        ]
    },
    "GoToCleansingJade": {
        "desc": "前往漱玉，先回到大世界再进行判断",
        "action": "Custom",
        "custom_action": "SubTask",
        "custom_action_param": {
            "sub": [
                "SceneAnyEnterWorld"
            ]
        },
        "next": [
            "GoToCleansingJadeStartPos",
            "GoToCleansingJadeNotAtStartPos"
        ]
    },
    "GoToCleansingJadeStartPos": {
        "desc": "在漱玉任务开始位置附近",
        "recognition": "Custom",
        "custom_recognition": "MapTrackerAssertLocation",
        "custom_recognition_param": {
            "expected": [
                {
                    "map_name": "map02_lv001_tier_277",
                    "target": [
                        255,
                        395,
                        15,
                        15
                    ]
                }
            ]
        },
        "next": [
            "GoToCleansingJadeMapTrackerMove"
        ]
    },
    "GoToCleansingJadeNotAtStartPos": {
        "desc": "不在漱玉任务开始位置附近，先传送再复核落点",
        "action": "Custom",
        "custom_action": "SubTask",
        "custom_action_param": {
            "sub": [
                "SceneEnterWorldWulingJingyuValley4"
            ]
        },
        "next": [
            "GoToCleansingJadeRecheckStartPos",
            "GoToCleansingJadeReEnterMap"
        ]
    },
    "GoToCleansingJadeRecheckStartPos": {
        "desc": "传送后再次检查是否已在漱玉任务开始位置附近",
        "recognition": "Custom",
        "custom_recognition": "MapTrackerAssertLocation",
        "custom_recognition_param": {
            "expected": [
                {
                    "map_name": "map02_lv001_tier_277",
                    "target": [
                        255,
                        395,
                        15,
                        15
                    ]
                }
            ]
        },
        "next": [
            "GoToCleansingJadeMapTrackerMove"
        ]
    },
    "GoToCleansingJadeReEnterMap": {
        "desc": "传送后仍未到达漱玉任务开始位置附近，重试一次传送",
        "action": "Custom",
        "custom_action": "SubTask",
        "custom_action_param": {
            "sub": [
                "SceneEnterWorldWulingJingyuValley4"
            ]
        },
        "next": [
            "GoToCleansingJadeFinalCheckStartPos",
            "GoToCleansingJadeStartPosFailed"
        ]
    },
    "GoToCleansingJadeFinalCheckStartPos": {
        "desc": "二次传送后再次检查是否已在漱玉任务开始位置附近",
        "recognition": "Custom",
        "custom_recognition": "MapTrackerAssertLocation",
        "custom_recognition_param": {
            "expected": [
                {
                    "map_name": "map02_lv001_tier_277",
                    "target": [
                        255,
                        395,
                        15,
                        15
                    ]
                }
            ]
        },
        "next": [
            "GoToCleansingJadeMapTrackerMove"
        ]
    },
    "GoToCleansingJadeStartPosFailed": {
        "desc": "漱玉传送后仍未到达预期起点，结束当前子任务"
    },
    "GoToCleansingJadeMapTrackerMove": {
        "desc": "前往漱玉",
        "action": "Custom",
        "custom_action": "MapTrackerMove",
        "custom_action_param": {
            "map_name": "map02_lv001_tier_277",
            "path": [
                [
                    246,
                    394
                ]
            ]
        },
        "anchor": {
            "EnvironmentMonitoringBactToTerminal": "SceneEnterMenuRegionalDevelopmentWulingEnvironmentMonitoring",
            "EnvironmentMonitoringAdjustCamera": "CleansingJadeAdjustCamera"
        },
        "next": [
            "EnvironmentMonitoringTakePhoto"
        ]
    },
    "CleansingJadeAdjustCamera": {
        "desc": "漱玉任务中调整朝向",
        "max_hit": 2,
        "next": [
            "EnvironmentMonitoringSwipeScreenUp"
        ]
    }
}
