main.floors.MT40_1=
{
    "floorId": "MT40_1",
    "title": "主塔 40 层",
    "name": "40",
    "width": 13,
    "height": 13,
    "canFlyTo": true,
    "canFlyFrom": true,
    "canUseQuickShop": true,
    "images": [],
    "ratio": 1,
    "defaultGround": "ground",
    "bgm": "section1.mp3",
    "firstArrive": [],
    "eachArrive": [],
    "parallelDo": "",
    "events": {
        "6,6": [
            {
                "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;\nlet bool = (core.getBlockCls(f_x + 6, f_y + 5) === \"enemys\" && core.getBlockCls(f_x + 6, f_y + 3) !== \"enemys\")\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骷髅队长,skeletonCaptain]哈哈哈 你是如此的幸运能安全到达这里 但现在好运离你而去了 你中埋伏了 弟兄们给我上",
                    {
                        "type": "playSound",
                        "name": "10F.mp3"
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 6"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 6"
                        ],
                        "async": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ],
                        "async": true
                    },
                    {
                        "type": "setBlock",
                        "number": "0",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "0",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "0",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "0",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    },
                    {
                        "type": "playBgm",
                        "name": "boss1.mp3"
                    },
                    {
                        "type": "move",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 5"
                        ],
                        "time": 200,
                        "keep": true,
                        "async": true,
                        "steps": [
                            "up:2"
                        ]
                    },
                    {
                        "type": "move",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ],
                        "time": 200,
                        "keep": true,
                        "async": true,
                        "steps": [
                            "right:3"
                        ]
                    },
                    {
                        "type": "move",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 6"
                        ],
                        "time": 200,
                        "keep": true,
                        "async": true,
                        "steps": [
                            "up:1",
                            "right:2"
                        ]
                    },
                    {
                        "type": "move",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 7"
                        ],
                        "time": 200,
                        "keep": true,
                        "async": true,
                        "steps": [
                            "right:2"
                        ]
                    },
                    {
                        "type": "move",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 6"
                        ],
                        "time": 200,
                        "keep": true,
                        "async": true,
                        "steps": [
                            "right:1"
                        ]
                    },
                    {
                        "type": "move",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ],
                        "time": 200,
                        "keep": true,
                        "async": true,
                        "steps": [
                            "left:2"
                        ]
                    },
                    {
                        "type": "move",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 6"
                        ],
                        "time": 200,
                        "keep": true,
                        "async": true,
                        "steps": [
                            "down:1",
                            "left:2"
                        ]
                    },
                    {
                        "type": "move",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 7"
                        ],
                        "time": 200,
                        "keep": true,
                        "async": true,
                        "steps": [
                            "left:3"
                        ]
                    },
                    {
                        "type": "move",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 6"
                        ],
                        "time": 200,
                        "keep": true,
                        "async": true,
                        "steps": [
                            "left:1"
                        ]
                    },
                    {
                        "type": "sleep",
                        "time": 600
                    },
                    {
                        "type": "waitAsync"
                    },
                    {
                        "type": "closeDoor",
                        "id": "specialDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ],
                        "async": true
                    },
                    {
                        "type": "closeDoor",
                        "id": "specialDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 8"
                        ],
                        "async": true
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            },
            {
                "type": "hide",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 6"
                ],
                "remove": true,
                "destruct": true
            }
        ],
        "6,4": [
            {
                "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;\nlet bool = (core.getBlockCls(f_x + 6, f_y + 3) === \"enemys\")\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骷髅队长,skeletonCaptain]你怎能杀出重围 我是绝不会让你通过的 来吧 我要与你决斗"
                ]
            },
            {
                "type": "hide",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 4"
                ],
                "remove": true,
                "destruct": true
            }
        ]
    },
    "changeFloor": {},
    "beforeBattle": {},
    "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[6, 5],\n\t[7, 5],\n\t[5, 6],\n\t[7, 6],\n\t[5, 7],\n\t[6, 7],\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": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "darkLight",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    }
                ]
            }
        ],
        "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, 5],\n\t[6, 5],\n\t[7, 5],\n\t[5, 6],\n\t[7, 6],\n\t[5, 7],\n\t[6, 7],\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": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "darkLight",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    }
                ]
            }
        ],
        "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, 5],\n\t[6, 5],\n\t[7, 5],\n\t[5, 6],\n\t[7, 6],\n\t[5, 7],\n\t[6, 7],\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": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "darkLight",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    }
                ]
            }
        ],
        "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[6, 5],\n\t[7, 5],\n\t[5, 6],\n\t[7, 6],\n\t[5, 7],\n\t[6, 7],\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": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "darkLight",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    }
                ]
            }
        ],
        "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, 5],\n\t[6, 5],\n\t[7, 5],\n\t[5, 6],\n\t[7, 6],\n\t[5, 7],\n\t[6, 7],\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": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "darkLight",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    }
                ]
            }
        ],
        "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[6, 5],\n\t[7, 5],\n\t[5, 6],\n\t[7, 6],\n\t[5, 7],\n\t[6, 7],\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": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "darkLight",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    }
                ]
            }
        ],
        "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, 5],\n\t[6, 5],\n\t[7, 5],\n\t[5, 6],\n\t[7, 6],\n\t[5, 7],\n\t[6, 7],\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": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "darkLight",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    }
                ]
            }
        ],
        "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[6, 5],\n\t[7, 5],\n\t[5, 6],\n\t[7, 6],\n\t[5, 7],\n\t[6, 7],\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": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "darkLight",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 4"
                        ]
                    }
                ]
            }
        ],
        "6,3": [
            "\t[骷髅队长,skeletonCaptain]你以为你已经非常强大了吗，我只是四大天王中最弱小的一个，你别太得意，骑士队长会替我报仇的。",
            {
                "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}"
            },
            {
                "type": "playSound",
                "name": "door.mp3",
                "stop": true
            },
            {
                "type": "setBlock",
                "number": "341",
                "loc": [
                    "temp:floor_x + 3",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "341",
                "loc": [
                    "temp:floor_x + 3",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "setBlock",
                "number": "341",
                "loc": [
                    "temp:floor_x + 3",
                    "temp:floor_y + 7"
                ]
            },
            {
                "type": "setBlock",
                "number": "346",
                "loc": [
                    "temp:floor_x + 9",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "346",
                "loc": [
                    "temp:floor_x + 9",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "setBlock",
                "number": "346",
                "loc": [
                    "temp:floor_x + 9",
                    "temp:floor_y + 7"
                ]
            },
            {
                "type": "setBlock",
                "number": "361",
                "loc": [
                    "temp:floor_x + 4",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "361",
                "loc": [
                    "temp:floor_x + 4",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "setBlock",
                "number": "361",
                "loc": [
                    "temp:floor_x + 4",
                    "temp:floor_y + 7"
                ]
            },
            {
                "type": "setBlock",
                "number": "21",
                "loc": [
                    "temp:floor_x + 8",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "21",
                "loc": [
                    "temp:floor_x + 8",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "setBlock",
                "number": "21",
                "loc": [
                    "temp:floor_x + 8",
                    "temp:floor_y + 7"
                ]
            },
            {
                "type": "openDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 8"
                ],
                "async": true
            },
            {
                "type": "waitAsync"
            }
        ]
    },
    "afterGetItem": {},
    "afterOpenDoor": {},
    "autoEvent": {},
    "cannotMove": {},
    "cannotMoveIn": {},
    "map": [
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1],
    [  1,346,  0,210,  0,  0,202,  0,  0,217,  0,361,  1],
    [  1,  0,  0,  1,  1,  1,  1,  1,  1,  1,  0,  0,  1],
    [  1,210,  1,  1,  0,  0,  0,  0,  0,  1,  1,217,  1],
    [  1,  0,  1,  1,  1,  1, 85,  1,  1,  1,  1,  0,  1],
    [  1,  0,  1,209,  0,  1,211,  1,  0,209,  1,  0,  1],
    [  0,202,  1,209,210, 85,166, 85,210,209,  1,202,  0],
    [  1,  0,  1,209,  0,  1,  0,  1,  0,209,  1,  0,  1],
    [  1,  0,  1,  1,  1,  1,  0,  1,  1,  1,  1,  0,  1],
    [  1,205,  1,  1,  0,  0,  0,  0,  0,  1,  1,209,  1],
    [  1,  0,  0,  1,  1,  1, 83,  1,  1,  1,  0,  0,  1],
    [  1,121,  0,205,  0,  0,202,  0,  0,209,  0,341,  1],
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1]
],
    "bgmap": [

],
    "fgmap": [

]
}