main.floors.MT40_3=
{
    "floorId": "MT40_3",
    "title": "主塔 40 层",
    "name": "40",
    "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 + 2"
                ]
            },
            {
                "type": "setBlock",
                "number": "0",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 10"
                ]
            },
            {
                "type": "setBlock",
                "number": "0",
                "loc": [
                    "temp:floor_x + 2",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "setBlock",
                "number": "0",
                "loc": [
                    "temp:floor_x + 10",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "closeDoor",
                "id": "specialDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 2"
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "specialDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 10"
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "specialDoor",
                "loc": [
                    "temp:floor_x + 2",
                    "temp:floor_y + 6"
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "specialDoor",
                "loc": [
                    "temp:floor_x + 10",
                    "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 + 2"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 10"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 2",
                            "temp:floor_y + 6"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 10",
                            "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 + 2"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 10"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 2",
                            "temp:floor_y + 6"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 10",
                            "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 + 2"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 10"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 2",
                            "temp:floor_y + 6"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 10",
                            "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 + 2"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 10"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 2",
                            "temp:floor_y + 6"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 10",
                            "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,348,  0,251,  0,  0,233,  0,  0,253,  0,363,  1],
    [  1,  0,  0,  1,  1,  1, 83,  1,  1,  1,  0,  0,  1],
    [  1,251,  1,  1,  0,  0,  0,  0,  0,  1,  1,253,  1],
    [  1,  0,  1,  0,  1,  0,  0,  0,  1,  0,  1,  0,  1],
    [  1,  0,  1,  0,  0,  1,  0,  1,  0,  0,  1,  0,  1],
    [  0,233, 83,  0,  0,  0,252,  0,  0,  0, 83,233,  0],
    [  1,  0,  1,  0,  0,  1,  0,  1,  0,  0,  1,  0,  1],
    [  1,  0,  1,  0,  1,  0,  0,  0,  1,  0,  1,  0,  1],
    [  1,235,  1,  1,  0,  0,  0,  0,  0,  1,  1,250,  1],
    [  1,  0,  0,  1,  1,  1, 83,  1,  1,  1,  0,  0,  1],
    [  1,121,  0,235,  0,  0,233,  0,  0,250,  0,343,  1],
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1]
],
    "bgmap": [

],
    "fgmap": [

]
}