{
    "CraftingStart": {
        "desc": "简易制作任务入口",
        "pre_delay": 0,
        "post_delay": 0,
        "next": [
            "CraftingEnterMenu",
            "[JumpBack]SceneEnterMenuBackpackWithDepot"
        ]
    },
    "CraftingEnterMenu": {
        "desc": "进入简易制作界面",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    900,
                    100,
                    349,
                    160
                ],
                "expected": [
                    "简易制作",
                    "簡易製作",
                    "(?i)Crafting",
                    "道具製作",
                    "간편 제작"
                ]
            }
        },
        "action": {
            "type": "Click"
        },
        "post_wait_freezes": {
            "time": 400,
            "target": [
                0,
                0,
                200,
                100
            ]
        },
        "next": [
            "CraftingEnterInMenu"
        ]
    },
    "CraftingEnterInMenu": {
        "desc": "进入简易制作界面",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    0,
                    0,
                    240,
                    100
                ],
                "expected": [
                    "简易制作",
                    "簡易製作",
                    "(?i)Crafting",
                    "道具製作",
                    "간편 제작"
                ]
            }
        },
        "next": [
            "CraftingClickProduceBtn"
        ]
    },
    "CraftingClickProduceBtn": {
        "desc": "点击制作按钮",
        "recognition": "OCR",
        "roi": [
            1134,
            614,
            139,
            95
        ],
        "expected": [
            "制作",
            "製作",
            "(?i)Craft",
            "確定"
        ],
        "action": "Click",
        "post_wait_freezes": 100,
        "next": [
            "CraftingCheckMaterialEnough", // 进行背包满退出判断，在这里直接判断到就直接退出
            // 检查下是不是进入成功页面
            "CraftingCloseProductPopup"
        ]
    },
    "CraftingCheckMaterialEnough": {
        "desc": "检测背包是否已满，背包已满直接结束",
        "recognition": "OCR",
        "roi": [
            409,
            81,
            439,
            82
        ],
        "expected": [
            "空间已满",
            "空間已滿",
            "可销毁或丢弃部分",
            "可銷毀或丟棄部分"
        ],
        "next": [
            "CraftingCreationFinish",
            "[JumpBack]SceneAnyEnterWorld"
        ]
    },
    "CraftingCloseProductPopup": {
        "desc": "制作成功确认",
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    590,
                    573,
                    100,
                    117
                ], //扩大识图区域，避免界面微调导致识别失败
                "template": "DailyRewards/CloseReward.png",
                "threshold": 0.9
            }
        },
        "action": {
            "type": "Click"
        },
        "next": [
            "CraftingCreationFinish",
            "[JumpBack]SceneAnyEnterWorld"
        ]
    },
    "CraftingCreationFinish": {
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    -200,
                    0,
                    200,
                    200
                ],
                "template": [
                    "SceneManager/WorldMenu.png"
                ],
                "green_mask": true
            }
        },
        "pre_delay": 0,
        "post_delay": 0
    }
}
