main.floors.MT27=
{
    "floorId": "MT27",
    "title": "魔塔 第27层",
    "name": "第 27 层",
    "width": 13,
    "height": 13,
    "map": [
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1],
    [  1, 22,  0,235,  1,214,  0,214,  1, 21,  0,121,  1],
    [  1,  0,  1,  0,  1,  0,  1, 21,  1,  0,  1,  0,  1],
    [  1,253,  0,233, 81,358,233,  0, 81,233,  0, 21,  1],
    [  1,  1,  1, 81,  1,  1,  0,  1,  1, 81,  1,  1,  1],
    [  1,214, 21,  0,  1,236,  0,236,  1,358,  0,214,  1],
    [  0,  0,  1,233,  0,  0,  1,  0,  0,233,  1,  0,  0],
    [  1,214,  0, 21,  1,236,  0,236,  1,  0,358,214,  1],
    [  1,  1,  1, 81,  1,  1,  0,  1,  1, 81,  1,  1,  1],
    [  1,358,  0,233, 81,  0,233, 21, 81,233,  0,358,  1],
    [  1, 82,  1,  0,  1,358,  1,  0,  1,  0,  1, 81,  1],
    [  1,348,  0,251,  1,214,  0,214,  1,250,  0,343,  1],
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1]
],
    "canFlyTo": true,
    "canFlyFrom": true,
    "canUseQuickShop": true,
    "images": [],
    "ratio": 3,
    "defaultGround": "ground",
    "bgm": "section3.mp3",
    "firstArrive": [],
    "eachArrive": [],
    "parallelDo": "",
    "events": {},
    "changeFloor": {},
    "afterBattle": {
        "5,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, 5],\n\t[5, 7],\n\t[7, 5],\n\t[7, 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": [
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "23",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ]
                    }
                ]
            }
        ],
        "5,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, 5],\n\t[5, 7],\n\t[7, 5],\n\t[7, 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": [
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "23",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ]
                    }
                ]
            }
        ],
        "7,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, 5],\n\t[5, 7],\n\t[7, 5],\n\t[7, 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": [
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "23",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ]
                    }
                ]
            }
        ],
        "7,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, 5],\n\t[5, 7],\n\t[7, 5],\n\t[7, 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": [
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "23",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ]
                    }
                ]
            }
        ]
    },
    "afterGetItem": {},
    "afterOpenDoor": {},
    "cannotMove": {},
    "fgmap": [

],
    "bgmap": [

],
    "downFloor": null,
    "upFloor": null,
    "autoEvent": {},
    "beforeBattle": {},
    "cannotMoveIn": {}
}