{
    "EternalSunsetJob": {
        "desc": "栖霞驻影任务",
        "max_hit": 1,
        "recognition": "And",
        "all_of": [
            "CheckEternalSunsetText",
            "CheckEternalSunsetIcon",
            "CheckEternalSunsetReadyText"
        ],
        "pre_delay": 0,
        "post_delay": 0,
        "next": [
            "AcceptEternalSunset",
            "GoToEternalSunsetMission"
        ]
    },
    "CheckEternalSunsetText": {
        "desc": "检查是否有栖霞驻影文本",
        "recognition": "OCR",
        "roi": [
            63,
            208,
            1158,
            71
        ],
        "expected": [
            "栖霞驻影",
            "棲霞駐影",
            "(?i)Eternal\\s*Sunset",
            "棲霞留影",
            "노을의 그림자"
        ],
        "order_by": "Vertical"
    },
    "CheckEternalSunsetIcon": {
        "desc": "检查栖霞驻影文本下方的图标",
        "recognition": "TemplateMatch",
        "roi": "CheckEternalSunsetText",
        "roi_offset": [
            -18,
            0,
            0,
            28
        ],
        "template": "EnvironmentMonitoring/PhotoIcon.png",
        "threshold": 0.8
    },
    "CheckEternalSunsetReadyText": {
        "desc": "检查栖霞驻影委托是否准备好",
        "recognition": "OCR",
        "roi": "CheckEternalSunsetIcon",
        "roi_offset": [
            -14,
            332,
            359,
            76
        ],
        "expected": [
            "接取委托",
            "接取委託",
            "(?i)Accept\\s*Job",
            "引き受ける",
            "前往任务",
            "前往任務",
            "(?i)Go\\s*to\\s*Mission",
            "任務へ",
            "의뢰 수령",
            "임무로 이동하기"
        ]
    },
    "CheckEternalSunsetJob": {
        "desc": "检查栖霞驻影委托是否可以接取",
        "recognition": "OCR",
        "roi": "CheckEternalSunsetIcon",
        "roi_offset": [
            -14,
            332,
            359,
            76
        ],
        "expected": [
            "接取委托",
            "接取委託",
            "(?i)Accept\\s*Job",
            "引き受ける",
            "의뢰 수령"
        ]
    },
    "CheckEternalSunsetGoToMissionText": {
        "desc": "检查栖霞驻影委托是否可以前往",
        "recognition": "OCR",
        "roi": "CheckEternalSunsetIcon",
        "roi_offset": [
            -14,
            332,
            359,
            76
        ],
        "expected": [
            "前往任务",
            "前往任務",
            "(?i)Go\\s*to\\s*Mission",
            "任務へ",
            "임무로 이동하기"
        ]
    },
    "InEternalSunsetMission": {
        "desc": "是否在栖霞驻影任务界面",
        "recognition": "OCR",
        "roi": [
            415,
            50,
            855,
            241
        ],
        "expected": [
            "栖霞驻影",
            "棲霞駐影",
            "(?i)Eternal\\s*Sunset",
            "棲霞留影",
            "노을의 그림자"
        ]
    },
    "AcceptEternalSunset": {
        "desc": "接取栖霞驻影委托",
        "recognition": "And",
        "all_of": [
            "CheckEternalSunsetText",
            "CheckEternalSunsetIcon",
            "CheckEternalSunsetJob"
        ],
        "box_index": 2,
        "action": "Click",
        "next": [
            "GoToEternalSunsetMission"
        ]
    },
    "GoToEternalSunsetMission": {
        "desc": "前往栖霞驻影任务",
        "recognition": "And",
        "all_of": [
            "CheckEternalSunsetText",
            "CheckEternalSunsetIcon",
            "CheckEternalSunsetGoToMissionText"
        ],
        "box_index": 2,
        "action": "Click",
        "next": [
            "EternalSunsetTrackOrGoTo"
        ]
    },
    "EternalSunsetTrackOrGoTo": {
        "desc": "在栖霞驻影任务中，如果有开始追踪的按钮就点击追踪，没有就直接前往",
        "recognition": "And",
        "all_of": [
            "InEternalSunsetMission"
        ],
        "next": [
            "TrackEternalSunset",
            "GoToEternalSunset"
        ]
    },
    "TrackEternalSunset": {
        "desc": "追踪栖霞驻影任务",
        "recognition": "And",
        "all_of": [
            "TrackMissionButton",
            "InEternalSunsetMission"
        ],
        "action": "Click",
        "next": [
            "GoToEternalSunset"
        ]
    },
    "GoToEternalSunset": {
        "desc": "前往栖霞驻影，先回到大世界再进行判断",
        "action": "Custom",
        "custom_action": "SubTask",
        "custom_action_param": {
            "sub": [
                "SceneAnyEnterWorld"
            ]
        },
        "next": [
            "GoToEternalSunsetStartPos",
            "GoToEternalSunsetNotAtStartPos"
        ]
    },
    "GoToEternalSunsetStartPos": {
        "desc": "在栖霞驻影任务开始位置附近",
        "recognition": "Custom",
        "custom_recognition": "MapTrackerAssertLocation",
        "custom_recognition_param": {
            "expected": [
                {
                    "map_name": "map02_lv001",
                    "target": [
                        315,
                        305,
                        15,
                        15
                    ]
                }
            ]
        },
        "next": [
            "GoToEternalSunsetMapTrackerMove"
        ]
    },
    "GoToEternalSunsetNotAtStartPos": {
        "desc": "不在栖霞驻影任务开始位置附近，先传送再复核落点",
        "action": "Custom",
        "custom_action": "SubTask",
        "custom_action_param": {
            "sub": [
                "SceneEnterWorldWulingJingyuValley2"
            ]
        },
        "next": [
            "GoToEternalSunsetRecheckStartPos",
            "GoToEternalSunsetReEnterMap"
        ]
    },
    "GoToEternalSunsetRecheckStartPos": {
        "desc": "传送后再次检查是否已在栖霞驻影任务开始位置附近",
        "recognition": "Custom",
        "custom_recognition": "MapTrackerAssertLocation",
        "custom_recognition_param": {
            "expected": [
                {
                    "map_name": "map02_lv001",
                    "target": [
                        315,
                        305,
                        15,
                        15
                    ]
                }
            ]
        },
        "next": [
            "GoToEternalSunsetMapTrackerMove"
        ]
    },
    "GoToEternalSunsetReEnterMap": {
        "desc": "传送后仍未到达栖霞驻影任务开始位置附近，重试一次传送",
        "action": "Custom",
        "custom_action": "SubTask",
        "custom_action_param": {
            "sub": [
                "SceneEnterWorldWulingJingyuValley2"
            ]
        },
        "next": [
            "GoToEternalSunsetFinalCheckStartPos",
            "GoToEternalSunsetStartPosFailed"
        ]
    },
    "GoToEternalSunsetFinalCheckStartPos": {
        "desc": "二次传送后再次检查是否已在栖霞驻影任务开始位置附近",
        "recognition": "Custom",
        "custom_recognition": "MapTrackerAssertLocation",
        "custom_recognition_param": {
            "expected": [
                {
                    "map_name": "map02_lv001",
                    "target": [
                        315,
                        305,
                        15,
                        15
                    ]
                }
            ]
        },
        "next": [
            "GoToEternalSunsetMapTrackerMove"
        ]
    },
    "GoToEternalSunsetStartPosFailed": {
        "desc": "栖霞驻影传送后仍未到达预期起点，结束当前子任务"
    },
    "GoToEternalSunsetMapTrackerMove": {
        "desc": "前往栖霞驻影",
        "action": "Custom",
        "custom_action": "MapTrackerMove",
        "custom_action_param": {
            "map_name": "map02_lv001",
            "path": [
                [
                    332,
                    303
                ],
                [
                    346,
                    296
                ]
            ]
        },
        "anchor": {
            "EnvironmentMonitoringBactToTerminal": "SceneEnterMenuRegionalDevelopmentWulingEnvironmentMonitoring",
            "EnvironmentMonitoringAdjustCamera": "EternalSunsetAdjustCamera"
        },
        "next": [
            "EnvironmentMonitoringTakePhoto"
        ]
    },
    "EternalSunsetAdjustCamera": {
        "desc": "栖霞驻影任务中调整朝向",
        "max_hit": 2,
        "next": [
            "EnvironmentMonitoringSwipeScreenUp"
        ]
    }
}
