{
    "DailyProtocolPassStart": {
        "pre_delay": 0,
        "post_delay": 0,
        "next": [
            "DailyProtocolPassInMenu",
            "[JumpBack]DailyProtocolPassNew",
            "[JumpBack]SceneEnterMenuProtocolPass"
        ]
    },
    "DailyProtocolPassInMenu": {
        "desc": "在通行证界面",
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    0,
                    0,
                    100,
                    100
                ],
                "template": [
                    "SceneManager/MenuPassRewardsChoose.png",
                    "SceneManager/MenuPassRewardsNotChoose.png"
                ],
                "threshold": 0.9
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "next": [
            "[JumpBack]DailyProtocolMissionsEnter",
            "[JumpBack]DailyProtocolRewardsEnter",
            "DailyProtocolFinish"
        ]
    },
    "DailyProtocolPassNew": {
        "desc": "确认新一期的通行证界面",
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    600,
                    650,
                    40,
                    40
                ],
                "template": [
                    "Common/Button/PassConfirmButton.png"
                ],
                "threshold": 0.9
            }
        },
        "action": {
            "type": "Click"
        }
    },
    "DailyProtocolFinish": {
        "desc": "结束任务",
        "pre_delay": 0,
        "post_delay": 0
    },
    "DailyProtocolMissionsEnter": {
        "desc": "在通行证界面点击进入任务界面",
        "max_hit": 1,
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    0,
                    0,
                    500,
                    100
                ],
                "expected": [
                    "通行证任务",
                    "通行證任務",
                    "(?i)Pass\\s*Missions",
                    "通行証クエスト",
                    "통행증 임무"
                ]
            }
        },
        "action": {
            "type": "Click"
        },
        "post_wait_freezes": 500,
        "next": [
            "[JumpBack]DailyProtocolMissionsPick",
            "[JumpBack]DailyProtocolSwitchWeeklyMission",
            "[JumpBack]DailyProtocolSwitchCurrentMission",
            "[JumpBack]DailyProtocolSwitchEventMission",
            "[JumpBack]DailyProtocolSwitchHorizonsMission",
            "DailyProtocolFinish"
        ]
    },
    "DailyProtocolSwitchWeeklyMission": {
        "desc": "在任务界面点击切换列表，找周常",
        "max_hit": 1,
        "recognition": "And",
        "all_of": [
            {
                "sub_name": "text",
                "recognition": "OCR",
                "roi": [
                    150,
                    120,
                    300,
                    500
                ],
                "expected": [
                    "周任务",
                    "週任務",
                    "Weekly Mission",
                    "週間クエスト",
                    "주간 임무"
                ]
            },
            {
                "recognition": "TemplateMatch",
                "roi": "text",
                "roi_offset": [
                    0,
                    -30,
                    250,
                    40
                ],
                "template": [
                    "DailyRewards/ProtocolNewSwitch.png",
                    "DailyRewards/ProtocolNoticeSwitch.png"
                ],
                "threshold": 0.9
            }
        ],
        "action": {
            "type": "Click",
            "param": {
                "target_offset": [
                    -10,
                    20,
                    0,
                    0
                ]
            }
        },
        "post_wait_freezes": {
            "time": 100,
            "target_offset": [
                400,
                240,
                200,
                200
            ]
        }
    },
    "DailyProtocolSwitchCurrentMission": {
        "desc": "在任务界面点击切换列表，找当前任务",
        "max_hit": 1,
        "recognition": "And",
        "all_of": [
            {
                "sub_name": "text",
                "recognition": "OCR",
                "roi": [
                    150,
                    120,
                    300,
                    500
                ],
                "expected": [
                    "当期任务",
                    "當期任務",
                    "Current Mission",
                    "今期クエスト",
                    "주기 임무"
                ]
            },
            {
                "recognition": "TemplateMatch",
                "roi": "text",
                "roi_offset": [
                    0,
                    -30,
                    250,
                    40
                ],
                "template": [
                    "DailyRewards/ProtocolNewSwitch.png",
                    "DailyRewards/ProtocolNoticeSwitch.png"
                ],
                "threshold": 0.9
            }
        ],
        "action": {
            "type": "Click",
            "param": {
                "target_offset": [
                    -10,
                    20,
                    0,
                    0
                ]
            }
        },
        "post_wait_freezes": {
            "time": 100,
            "target_offset": [
                400,
                240,
                200,
                200
            ]
        }
    },
    "DailyProtocolSwitchEventMission": {
        "desc": "在任务界面点击切换列表，找活动任务",
        "max_hit": 1,
        "recognition": "And",
        "all_of": [
            {
                "sub_name": "text",
                "recognition": "OCR",
                "roi": [
                    150,
                    120,
                    300,
                    500
                ],
                "expected": [
                    "活动任务",
                    "活動任務",
                    "Event Mission",
                    "特殊任務",
                    "이벤트 임무"
                ]
            },
            {
                "recognition": "TemplateMatch",
                "roi": "text",
                "roi_offset": [
                    0,
                    -30,
                    250,
                    40
                ],
                "template": [
                    "DailyRewards/ProtocolNewSwitch.png",
                    "DailyRewards/ProtocolNoticeSwitch.png"
                ],
                "threshold": 0.9
            }
        ],
        "action": {
            "type": "Click",
            "param": {
                "target_offset": [
                    -10,
                    20,
                    0,
                    0
                ]
            }
        },
        "post_wait_freezes": {
            "time": 100,
            "target_offset": [
                400,
                240,
                200,
                200
            ]
        }
    },
    "DailyProtocolSwitchHorizonsMission": {
        "desc": "在任务界面点击切换列表，找启程任务",
        "max_hit": 1,
        "recognition": "And",
        "all_of": [
            {
                "sub_name": "text",
                "recognition": "OCR",
                "roi": [
                    150,
                    120,
                    300,
                    500
                ],
                "expected": [
                    "启程任务",
                    "啟程任務",
                    "Horizons Mission",
                    "旅立ちクエスト",
                    "여정의 시작 임무"
                ]
            },
            {
                "recognition": "TemplateMatch",
                "roi": "text",
                "roi_offset": [
                    0,
                    -30,
                    250,
                    40
                ],
                "template": [
                    "DailyRewards/ProtocolNewSwitch.png",
                    "DailyRewards/ProtocolNoticeSwitch.png"
                ],
                "threshold": 0.9
            }
        ],
        "action": {
            "type": "Click",
            "param": {
                "target_offset": [
                    -10,
                    20,
                    0,
                    0
                ]
            }
        },
        "post_wait_freezes": {
            "time": 100,
            "target_offset": [
                400,
                240,
                200,
                200
            ]
        }
    },
    "DailyProtocolMissionsPick": {
        "desc": "在任务界面点击领取",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    -400,
                    -200,
                    400,
                    200
                ],
                "expected": [
                    "键领取",
                    "快速領取",
                    "(?i)Claim\\s*All",
                    "一括受取",
                    "일괄 획득"
                ]
            }
        },
        "action": {
            "type": "Click"
        },
        "post_wait_freezes": 500
    },
    "DailyProtocolRewardsEnter": {
        "desc": "在任务界面点击进入奖励界面",
        "max_hit": 1,
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    0,
                    0,
                    500,
                    100
                ],
                "expected": [
                    "通行证奖励",
                    "通行證獎勵",
                    "(?i)Pass\\s*Rewards",
                    "通行証報酬",
                    "통행증 보상"
                ]
            }
        },
        "action": {
            "type": "Click"
        },
        "post_wait_freezes": 500,
        "next": [
            "[JumpBack]DailyProtocolRewardsPick",
            "DailyProtocolFinish"
        ]
    },
    "DailyProtocolRewardsPick": {
        "desc": "在任务界面点击领取",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    500,
                    -200,
                    400,
                    200
                ],
                "expected": [
                    "键领取",
                    "快速領取",
                    "(?i)Claim\\s*All",
                    "一括受取",
                    "일괄 획득"
                ]
            }
        },
        "action": {
            "type": "Click"
        },
        "next": [
            "SceneNoticeRewardsConfirm"
        ]
    }
}
