{
    "GearAssemblyStart": {
        "desc": "装备制作任务入口",
        "pre_delay": 0,
        "post_delay": 0,
        "next": [
            "GearAssemblyCheckIsAssemblePage",
            "[JumpBack]SceneEnterMenuGearAssembly"
        ]
    },
    "GearAssemblyCheckIsAssemblePage": {
        "desc": "检测是否处于 [装备制作]",
        "recognition": "OCR",
        "roi": [
            0,
            0,
            263,
            117
        ],
        "expected": [
            "套组装备",
            "套裝裝備",
            "(?i)Set\\s*Gear",
            "セット装備",
            "装备",
            "裝備",
            "(?i)Gear",
            "装備"
        ],
        "next": [
            "[JumpBack]GearAssemblySwitchAscending",
            "GearAssemblyClickProduceBtn"
        ]
    },
    "GearAssemblySwitchAscending": {
        "desc": "识别到降序，变成升序",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    44,
                    648,
                    351,
                    35
                ],
                "expected": [
                    "降序",
                    "(?i)DESC",
                    "降順"
                ]
            }
        },
        "action": {
            "type": "Click"
        },
        "post_wait_freezes": 1
    },
    "GearAssemblyClickProduceBtn": {
        "desc": "点击制作按钮",
        "recognition": "OCR",
        "roi": [
            1134,
            614,
            139,
            95
        ],
        "expected": [
            "制作",
            "製作",
            "(?i)Craft",
            "確定"
        ],
        "action": "Click",
        "post_wait_freezes": 100,
        "next": [
            "GearAssemblyCheckMaterialEnough", // 进行背包满退出判断，在这里直接判断到就直接退出
            // 检查下是不是进入成功页面
            "GearAssemblyCloseProductPopup"
        ]
    },
    "GearAssemblyCheckMaterialEnough": {
        "desc": "检测背包是否已满，背包已满直接结束",
        "recognition": "OCR",
        "roi": [
            409,
            81,
            439,
            82
        ],
        "expected": [
            "空间已满",
            "空間已滿",
            "可销毁或丢弃部分",
            "可銷毀或丟棄部分"
        ],
        "next": [
            "GearAssemblyCreationFinish",
            "[JumpBack]SceneAnyEnterWorld"
        ]
    },
    "GearAssemblyCloseProductPopup": {
        "desc": "装备制造完成确认",
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    590,
                    581,
                    100,
                    109
                ], //扩大识图区域，避免界面微调导致识别失败
                "template": "DailyRewards/CloseReward.png",
                "threshold": 0.9
            }
        },
        "action": {
            "type": "Click"
        },
        "next": [
            "GearAssemblyCreationFinish",
            "[JumpBack]SceneAnyEnterWorld"
        ]
    },
    "GearAssemblyCreationFinish": {
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    -200,
                    0,
                    200,
                    200
                ],
                "template": [
                    "SceneManager/WorldMenu.png"
                ],
                "green_mask": true
            }
        },
        "pre_delay": 0,
        "post_delay": 0
    }
}
