main.floors.MT20_3=
{
    "floorId": "MT20_3",
    "title": "主塔 20 层",
    "name": "20",
    "width": 13,
    "height": 13,
    "canFlyTo": true,
    "canFlyFrom": true,
    "canUseQuickShop": true,
    "images": [],
    "ratio": 3,
    "defaultGround": "ground",
    "bgm": "section1.mp3",
    "firstArrive": [],
    "eachArrive": [],
    "parallelDo": "",
    "events": {},
    "changeFloor": {},
    "beforeBattle": {},
    "afterBattle": {
        "6,6": [
            "\t[堕落仙子,badFairy]你以为你已经打败我了吗，我不会输的",
            {
                "type": "function",
                "function": "function(){\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\n\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n}"
            },
            {
                "type": "playSound",
                "name": "开关门"
            },
            {
                "type": "playSound",
                "name": "44f.mp3"
            },
            {
                "type": "setBlock",
                "number": "badFairy",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 6"
                ],
                "time": 250
            },
            {
                "type": "setBlock",
                "number": "badFairy",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 6"
                ],
                "time": 250
            },
            {
                "type": "setBlock",
                "number": "badFairy",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 5"
                ],
                "time": 250
            },
            {
                "type": "setBlock",
                "number": "badFairy",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 7"
                ],
                "time": 250
            },
            {
                "type": "setBlock",
                "number": "0",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 3"
                ]
            },
            {
                "type": "setBlock",
                "number": "0",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 9"
                ]
            },
            {
                "type": "setBlock",
                "number": "0",
                "loc": [
                    "temp:floor_x + 3",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "setBlock",
                "number": "0",
                "loc": [
                    "temp:floor_x + 9",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "closeDoor",
                "id": "specialDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 3"
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "specialDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 9"
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "specialDoor",
                "loc": [
                    "temp:floor_x + 3",
                    "temp:floor_y + 6"
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "specialDoor",
                "loc": [
                    "temp:floor_x + 9",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "waitAsync"
            }
        ],
        "5,6": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[5, 6],\n\t[7, 6],\n\t[6, 5],\n\t[6, 7],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[堕落仙子,badFairy]这是你的错，这明明是你的错\n我诅咒你，我会一直诅咒你的",
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 8"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 8"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 3"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 9"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 6"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 6"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "6,7": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[5, 6],\n\t[7, 6],\n\t[6, 5],\n\t[6, 7],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[堕落仙子,badFairy]这是你的错，这明明是你的错\n我诅咒你，我会一直诅咒你的",
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 8"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 8"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 3"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 9"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 6"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 6"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "6,5": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[5, 6],\n\t[7, 6],\n\t[6, 5],\n\t[6, 7],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[堕落仙子,badFairy]这是你的错，这明明是你的错\n我诅咒你，我会一直诅咒你的",
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 8"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 8"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 3"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 9"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 6"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 6"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "7,6": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[5, 6],\n\t[7, 6],\n\t[6, 5],\n\t[6, 7],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[堕落仙子,badFairy]这是你的错，这明明是你的错\n我诅咒你，我会一直诅咒你的",
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 8"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "363",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 8"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "343",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "348",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 3"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 9"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 6"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 6"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ]
    },
    "afterGetItem": {},
    "afterOpenDoor": {},
    "autoEvent": {},
    "cannotMove": {},
    "cannotMoveIn": {},
    "map": [
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1],
    [  1,343,236,  0, 81,  0,233,  0, 81,  0,236,348,  1],
    [  1,  1,  0,214,  1,358,  0, 21,  1,214,  0,  1,  1],
    [  1,  0,214,  1,  1,  1, 83,  1,  1,  1,214,  0,  1],
    [  1, 82,  1,  1,  1,  0,  0,  0,  1,  1,  1, 82,  1],
    [  1,  0, 21,  1,  0,  1,  0,  1,  0,  1,358,  0,  1],
    [  0,250,  0, 83,  0,  0,252,  0,  0, 83,  0,250,  0],
    [  1,  0,358,  1,  0,  1,  0,  1,  0,  1, 21,  0,  1],
    [  1, 81,  1,  1,  1,  0,  0,  0,  1,  1,  1, 81,  1],
    [  1,  0,  0,  1,  1,  1, 83,  1,  1,  1,  0,  0,  1],
    [  1,  1,  0,  0,  1, 21,  0,358,  1,  0,  0,  1,  1],
    [  1,363,251,  0, 81,  0,233,  0, 81,  0,251,121,  1],
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1]
],
    "bgmap": [

],
    "fgmap": [

]
}