{
    "GrowthChamberMain": {
        "desc": "[培养舱·入口] 在控制中枢点击培养舱区域进入培养舱",
        "max_hit": 1,
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    647,
                    102,
                    438,
                    313
                ],
                "expected": [
                    "生长",
                    "生長",
                    "(?i)Growth",
                    "成長",
                    "^培养舱",
                    "^培養艙",
                    "Chamber"
                ]
            }
        },
        "pre_wait_freezes": {
            "time": 100,
            "timeout": 1000
        },
        "pre_delay": 0,
        "action": {
            "type": "Click"
        },
        "post_wait_freezes": {
            "time": 100,
            "timeout": 1000
        },
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "GrowthChamberViewIn"
        ],
        "focus": {
            "Node.PipelineNode.Failed": "$task.DijiangRewards.focus.growth_chamber_entry_failed"
        }
    },
    "GrowthChamberViewIn": {
        "desc": "[培养舱·状态] 确认已进入培养舱界面，再决定领奖/培养/退出",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "InGrowthChamber",
                    "FacilityDetails"
                ],
                "box_index": 1
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "[JumpBack]GrowthChamberClaimReward",
            "[JumpBack]GrowthChamberGrow",
            "[JumpBack]GrowthChamberGrowAgain",
            "GrowthChamberExit"
        ],
        "focus": {
            "Node.PipelineNode.Failed": "$task.DijiangRewards.focus.growth_chamber_flow_failed"
        }
    },
    "GrowthChamberClaimReward": {
        "desc": "[培养舱·领奖] 识别可领取奖励的黄按钮并点击",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "YellowConfirmButtonType1",
                    "ClaimAllText"
                ],
                "box_index": 1
            }
        },
        "pre_delay": 0,
        "action": {
            "type": "Click"
        },
        "post_wait_freezes": {
            "time": 150,
            "timeout": 2000
        },
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "GrowthChamberClaimRewardClose"
        ]
    },
    "GrowthChamberClaimRewardClose": {
        "desc": "[培养舱·领奖] 领奖完成界面点击关闭返回培养舱",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "CloseRewardsButton",
                    "ClaimAllGrowRewardCloseText"
                ]
            }
        },
        "pre_wait_freezes": {
            "time": 200,
            "target": [
                207,
                28,
                869,
                452
            ],
            "timeout": 1000
        },
        "pre_delay": 0,
        "action": {
            "type": "Click"
        },
        "post_delay": 0,
        "rate_limit": 0
    },
    "GrowthChamberGrowAgain": {
        "desc": "[培养舱·再培养] 识别“再次种植”按钮并点击,和培养冲突",
        "enabled": false,
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    459,
                    277,
                    770,
                    434
                ],
                "expected": [
                    "再次培养"
                ]
            }
        },
        "pre_delay": 0,
        "action": {
            "type": "Click"
        },
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "GrowthChamberGrowAgainConfirm"
        ]
    },
    "GrowthChamberGrowAgainConfirm": {
        "desc": "[培养舱·再培养] 点击确认再次种植后返回培养舱",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "YellowConfirmButtonType1",
                    "YellowButtonConfirmText"
                ],
                "box_index": 1
            }
        },
        "pre_delay": 0,
        "action": {
            "type": "Click"
        },
        "post_delay": 0,
        "rate_limit": 0
    },
    "GrowthChamberGrow": {
        "desc": "[培养舱·培养] 识别“培养”按钮并点击进入培养流程,和再次种植冲突",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    484,
                    213,
                    726,
                    283
                ],
                "expected": [
                    "培养",
                    "培養",
                    "(?i)Grow"
                ]
            }
        },
        "pre_delay": 0,
        "action": {
            "type": "Click",
            "param": {
                "target_offset": [
                    0,
                    -20,
                    0,
                    0
                ]
            }
        },
        "post_wait_freezes": {
            "time": 150,
            "timeout": 2000
        },
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "GrowthChamberGrowViewIn"
        ]
    },
    "GrowthChamberGrowViewIn": {
        "desc": "[培养舱·培养] 确认已进入培养素材与对象选择界面",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "GrowthChamberInSelectTarget"
                ]
            }
        },
        "pre_delay": 0,
        "post_wait_freezes": {
            "time": 80,
            "timeout": 1000,
            "target": [
                79,
                81,
                431,
                639
            ]
        },
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "[JumpBack]GrowthChamberSortBy",
            "[JumpBack]GrowthChamberSortOrder",
            "GrowthChamberFindTarget",
            "[JumpBack]GrowthChamberTargetNotFound",
            "GrowthChamberReturn"
        ]
    },
    "GrowthChamberSelectTarget": {
        "desc": "[培养舱·培养] 识别可选择的培养对象",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    91,
                    218,
                    289,
                    265
                ],
                "expected": [
                    // @i18n-skip
                    "菌$",
                    "石$",
                    "叶$",
                    "葉$",
                    "stone$",
                    "site$",
                    "gela$",
                    "leaf$",
                    "garic$",
                    "cap$",
                    "nyx$",
                    "endra$",
                    "lete$"
                ],
                "order_by": "Vertical"
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0
    },
    "GrowthChamberFindTarget": {
        "desc": "[培养舱·培养] 点击培养对象并进入确认或提取分支",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "GrowthChamberSelectTarget",
                    "GrowthChamberCheckTargetNotEmpty" //这个任务只有在选择种植任意+不提取基核时才会启用,其他情况下直接命中
                ],
                "box_index": 1
            }
        },
        "pre_delay": 0,
        "action": {
            "type": "Click"
        },
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "[JumpBack]GrowthChamberGrowConfirm",
            "GrowthChamberSeedExtract",
            "GrowthChamberGrowExit",
            "GrowthChamberReturn",
            "GrowthChamberGrowListEnd"
        ]
    },
    "GrowthChamberGrowListEnd": {
        "desc": "翻到种植列表最末尾",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "GrowthChamberScrollEnd",
                    "GrowthChamberBackButton"
                ],
                "box_index": 1
            }
        },
        "action": {
            "type": "Click"
        },
        "next": [
            "GrowthChamberReturn"
        ]
    },
    "GrowthChamberScrollEnd": {
        "desc": "[培养舱·培养] 在选择对象界面已经滑动到最底部",
        "recognition": {
            "type": "ColorMatch",
            "param": {
                "roi": [
                    377,
                    549,
                    30,
                    24
                ],
                "method": 40,
                "lower": [
                    0,
                    1,
                    175
                ],
                "upper": [
                    0,
                    3,
                    201
                ],
                "connected": true,
                "count": 10
            }
        }
    },
    "GrowthChamberGrowConfirm": {
        "desc": "[培养舱·培养] 点击确认开始培养",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "WhiteConfirmButtonType1",
                    "WhiteButtonConfirmText"
                ],
                "box_index": 1
            }
        },
        "action": {
            "type": "Click",
            "param": {
                "target_offset": [
                    -30,
                    0,
                    0,
                    0
                ]
            }
        },
        "post_wait_freezes": {
            "time": 100
        }
    },
    "GrowthChamberReturn": {
        "desc": "[培养舱·返回] 识别已回到培养舱界面",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "InGrowthChamber",
                    "FacilityDetails"
                ],
                "box_index": 1
            }
        },
        "pre_delay": 0,
        "post_wait_freezes": {
            "time": 100,
            "target": [
                64,
                122,
                407,
                486
            ]
        },
        "post_delay": 0,
        "rate_limit": 0
    },
    "GrowthChamberGrowExit": {
        "desc": "[培养舱·培养] 无需提取基核时直接返回上一界面,和提取基核分支互斥",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "GrowthChamberExtractSeedText"
                ]
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "GrowthChamberGrowViewIn"
        ]
    },
    "GrowthChamberSeedExtract": {
        "desc": "[培养舱·基核] 点击前往提取基核,和不提取基核互斥",
        "enabled": false,
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "GrowthChamberExtractSeedText"
                ]
            }
        },
        "action": {
            "type": "Click"
        },
        "next": [
            "GrowthChamberSeedExtractConfirm",
            "GrowthChamberNoMaterials",
            "GrowthChamberReturnGrowView"
        ]
    },
    "GrowthChamberReturnGrowView": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    484,
                    213,
                    726,
                    283
                ],
                "expected": [
                    "培养",
                    "培養",
                    "(?i)Grow"
                ]
            }
        },
        "action": {
            "type": "Click"
        },
        "next": [
            "GrowthChamberGrowViewIn"
        ]
    },
    "GrowthChamberSeedExtractConfirm": {
        "desc": "[培养舱·基核] 点击确认提取基核",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "WhiteConfirmButtonType2",
                    "ConfirmExtractText"
                ],
                "box_index": 1
            }
        },
        "pre_wait_freezes": {
            "time": 200,
            "timeout": 2000
        },
        "action": {
            "type": "Click"
        },
        "post_wait_freezes": {
            "time": 80,
            "timeout": 2000
        },
        "next": [
            "GrowthChamberSeedExtractClose"
        ]
    },
    "GrowthChamberSeedExtractClose": {
        "desc": "[培养舱·基核] 提取完成后点击关闭",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "CloseRewardsButton",
                    "ExtractSeedCloseText"
                ]
            }
        },
        "pre_wait_freezes": {
            "time": 80,
            "timeout": 1000
        },
        "action": {
            "type": "Click"
        },
        "next": [
            "GrowthChamberGrowBack"
        ]
    },
    "GrowthChamberGrowBack": {
        "desc": "[培养舱·基核] 提取完成后点击取消返回培养界面",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "GrowthChamberBackButton"
                ]
            }
        },
        "action": {
            "type": "Click",
            "param": {
                "contact": 1
            }
        },
        "next": [
            "GrowthChamberGrowViewIn"
        ]
    },
    "GrowthChamberNoMaterials": {
        "desc": "[培养舱·基核] 原料不足时停止任务",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    640,
                    464,
                    368,
                    143
                ],
                "expected": [
                    "缺少原料",
                    "无法获取",
                    "無法提取"
                ]
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "GrowthChamberGrowBack"
        ]
    },
    "GrowthChamberBackToMain": {
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "GrowthChamberBackButton"
                ]
            }
        },
        "pre_wait_freezes": {
            "time": 200,
            "timeout": 1000,
            "target": true
        },
        "pre_delay": 0,
        "action": {
            "type": "Click",
            "param": {
                "contact": 1
            }
        },
        "post_delay": 0,
        "rate_limit": 0
    },
    "GrowthChamberTargetNotFound": {
        "desc": "[培养舱·培养] 在选择对象界面滑动查找目标",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "GrowthChamberInSelectTarget"
                ]
            }
        },
        "action": {
            "type": "Scroll",
            "param": {
                "target": [
                    231,
                    381
                ],
                "dx": 120
            }
        }
    },
    "GrowthChamberSortBy": {
        "desc": "[培养舱·排序] 打开排序方式面板",
        "enabled": false,
        "max_hit": 1,
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    86,
                    537,
                    169,
                    86
                ],
                "expected": [
                    "基核数量",
                    "基核數量",
                    "(?i)Amount\\s*of\\s*seeds",
                    "基核数",
                    "默认",
                    "預設",
                    "(?i)Default",
                    "デフォルト",
                    "品质",
                    "品質",
                    "(?i)Quality",
                    "基核數"
                ]
            }
        },
        "pre_delay": 0,
        "action": {
            "type": "Click"
        },
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "GrowthChamberSortByChoose",
            "[JumpBack]GrowthChamberSortBySwipe"
        ]
    },
    "GrowthChamberSortByChoose": {
        "desc": "[培养舱·排序] 选择按拥有数量排序",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    59,
                    343,
                    395,
                    291
                ],
                "roi_offset": [
                    0,
                    0,
                    149,
                    0
                ],
                "expected": [
                    "拥有数量",
                    "持有數量",
                    "(?i)Amount\\s*owned",
                    "総在庫"
                ]
            }
        },
        "pre_wait_freezes": {
            "time": 150,
            "timeout": 2000
        },
        "pre_delay": 0,
        "action": {
            "type": "Click"
        },
        "post_wait_freezes": {
            "time": 80
        },
        "post_delay": 0,
        "rate_limit": 0
    },
    "GrowthChamberSortBySwipe": {
        "desc": "[培养舱·排序] 滚动排序方式列表一次",
        "max_hit": 1,
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    89,
                    380,
                    300,
                    158
                ],
                "expected": [
                    "基核数量",
                    "基核數量",
                    "(?i)Amount\\s*of\\s*seeds",
                    "基核数",
                    "默认",
                    "預設",
                    "(?i)Default",
                    "デフォルト",
                    "拥有数量",
                    "持有數量",
                    "(?i)Amount\\s*owned",
                    "総在庫",
                    "品质",
                    "品質",
                    "(?i)Quality",
                    "基核數"
                ]
            }
        },
        "pre_delay": 0,
        "action": {
            "type": "Scroll",
            "param": {
                "dy": -120
            }
        },
        "post_wait_freezes": {
            "time": 100,
            "timeout": 1000
        },
        "post_delay": 0,
        "rate_limit": 0
    },
    "GrowthChamberSortOrder": {
        "desc": "[培养舱·排序] 切换为降序",
        "enabled": false,
        "max_hit": 1,
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    276,
                    517,
                    71,
                    66
                ],
                "expected": [
                    "降序",
                    "(?i)DESC",
                    "降順"
                ]
            }
        },
        "pre_delay": 0,
        "action": {
            "type": "Click"
        },
        "post_delay": 0,
        "rate_limit": 0
    },
    "GrowthChamberExit": {
        "desc": "[培养舱·退出] 点击左上标题返回控制中枢",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "InGrowthChamber",
                    "FacilityDetails"
                ],
                "box_index": 1
            }
        },
        "action": {
            "type": "Click",
            "param": {
                "contact": 1
            }
        },
        "next": [
            "InDijiangControlNexus"
        ]
    },
    "GrowthChamberBackButton": {
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    1146,
                    0,
                    134,
                    112
                ],
                "template": [
                    "ClaimDijiangRewards/BackButton.png"
                ],
                "green_mask": true,
                "method": 10001,
                "threshold": [
                    0.9
                ]
            }
        },
        "action": {
            "type": "Click",
            "param": {
                "contact": 1
            }
        }
    }
}
