main.floors.MT49_5=
{
    "floorId": "MT49_5",
    "title": "主塔 49 层",
    "name": "49",
    "width": 13,
    "height": 13,
    "canFlyTo": true,
    "canFlyFrom": true,
    "canUseQuickShop": true,
    "images": [],
    "ratio": 5,
    "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;\n}"
            },
            {
                "type": "setBlock",
                "number": "specialDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 7"
                ]
            },
            {
                "type": "setBlock",
                "number": "redKing",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 4"
                ],
                "time": 500
            },
            "\t[魔王,redKing]你终于来了，我很想与你立刻决斗，但我的部下不同意。",
            {
                "type": "setBlock",
                "number": "whiteKing",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 3"
                ],
                "time": 250
            },
            {
                "type": "setBlock",
                "number": "whiteKing",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 3"
                ],
                "time": 250
            },
            {
                "type": "setBlock",
                "number": "whiteKing",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 5"
                ],
                "time": 250
            },
            {
                "type": "setBlock",
                "number": "whiteKing",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 5"
                ],
                "time": 250
            },
            "\t[魔王,redKing]完蛋了，我被封印了，功力只剩一层",
            {
                "type": "setBlock",
                "number": "whiteKing",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 5"
                ],
                "time": 250
            },
            {
                "type": "setBlock",
                "number": "whiteKing",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 4"
                ],
                "time": 250
            },
            {
                "type": "setBlock",
                "number": "whiteKing",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 3"
                ],
                "time": 250
            },
            {
                "type": "setBlock",
                "number": "whiteKing",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 4"
                ],
                "time": 250
            },
            {
                "type": "playBgm",
                "name": "Zeno.mp3"
            },
            {
                "type": "hide",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 6"
                ],
                "remove": true,
                "destruct": true
            },
            {
                "type": "waitAsync"
            }
        ],
        "6,2": [
            {
                "type": "setCurtain",
                "color": [
                    0,
                    0,
                    0
                ],
                "time": 200,
                "keep": true
            },
            {
                "type": "sleep",
                "time": 1200
            },
            {
                "type": "changeFloor",
                "floorId": "MT50",
                "loc": [
                    6,
                    7
                ],
                "direction": "up",
                "time": 200
            },
            {
                "type": "setCurtain",
                "time": 200
            }
        ]
    },
    "changeFloor": {},
    "beforeBattle": {},
    "afterBattle": {
        "4,8": [
            {
                "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[4, 8],\n\t[5, 8],\n\t[7, 8],\n\t[8, 8],\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 + 7"
                        ]
                    }
                ]
            }
        ],
        "5,8": [
            {
                "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[4, 8],\n\t[5, 8],\n\t[7, 8],\n\t[8, 8],\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 + 7"
                        ]
                    }
                ]
            }
        ],
        "7,8": [
            {
                "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[4, 8],\n\t[5, 8],\n\t[7, 8],\n\t[8, 8],\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 + 7"
                        ]
                    }
                ]
            }
        ],
        "8,8": [
            {
                "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[4, 8],\n\t[5, 8],\n\t[7, 8],\n\t[8, 8],\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 + 7"
                        ]
                    }
                ]
            }
        ],
        "6,4": [
            {
                "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}"
            },
            "\t[魔王,redKing]哈哈哈，很好，你是个合格的战士。",
            {
                "type": "setBlock",
                "number": "23",
                "loc": [
                    "temp:floor_x + 4",
                    "temp:floor_y + 3"
                ]
            },
            {
                "type": "setBlock",
                "number": "62",
                "loc": [
                    "temp:floor_x + 8",
                    "temp:floor_y + 3"
                ]
            },
            {
                "type": "setBlock",
                "number": "365",
                "loc": [
                    "temp:floor_x + 3",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "365",
                "loc": [
                    "temp:floor_x + 4",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "365",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "374",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "374",
                "loc": [
                    "temp:floor_x + 8",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "374",
                "loc": [
                    "temp:floor_x + 9",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "345",
                "loc": [
                    "temp:floor_x + 3",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "345",
                "loc": [
                    "temp:floor_x + 4",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "345",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "350",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "350",
                "loc": [
                    "temp:floor_x + 8",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "350",
                "loc": [
                    "temp:floor_x + 9",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "166",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 2"
                ]
            },
            {
                "type": "openDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 7"
                ]
            },
            {
                "type": "openDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 9"
                ]
            }
        ]
    },
    "afterGetItem": {},
    "afterOpenDoor": {},
    "autoEvent": {},
    "cannotMove": {},
    "cannotMoveIn": {},
    "map": [
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1],
    [  1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1],
    [  1,  0,  1,  1,  1,  1,  1,  1,  1,  1,  1,  0,  1],
    [  1,  0,  1,  0,  0,  0,  0,  0,  0,  0,  1,  0,  1],
    [  1,  0,  1,  0,  1,  0,  0,  0,  1,  0,  1,  0,  1],
    [  1,  0,  1,  0,  1,  0,  0,  0,  1,  0,  1,  0,  1],
    [  0,  0,  1,  0,  0,  0,166,  0,  0,  0,  1,  0,  0],
    [  1,  0,  1,  1,  1,  1, 85,  1,  1,  1,  1,  0,  1],
    [  1,  0,  1,  0,228,220,  0,220,228,  0,  1,  0,  1],
    [  1,  0,  1,  1,  1,  1, 83,  1,  1,  1,  1,  0,  1],
    [  1,  0,  1,  0,345,  1,  0,  1,350,  0,  1,  0,  1],
    [  1,121,219,  0,  0,246,  0,246,  0,  0,219,  0,  1],
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1]
],
    "bgmap": [

],
    "fgmap": [

]
}