main.floors.MT49_2=
{
    "floorId": "MT49_2",
    "title": "主塔 49 层",
    "name": "49",
    "width": 13,
    "height": 13,
    "canFlyTo": true,
    "canFlyFrom": true,
    "canUseQuickShop": true,
    "images": [],
    "ratio": 2,
    "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": "0",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 7"
                ]
            },
            {
                "type": "closeDoor",
                "id": "specialDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 7"
                ]
            },
            {
                "type": "playSound",
                "name": "20F.mp3"
            },
            {
                "type": "setBlock",
                "number": "bigBat",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 3"
                ],
                "async": true
            },
            {
                "type": "setBlock",
                "number": "bigBat",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 3"
                ],
                "async": true
            },
            {
                "type": "setBlock",
                "number": "bigBat",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 3"
                ],
                "async": true
            },
            {
                "type": "setBlock",
                "number": "bigBat",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 4"
                ],
                "async": true
            },
            {
                "type": "setBlock",
                "number": "bigBat",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 4"
                ],
                "async": true
            },
            {
                "type": "setBlock",
                "number": "bigBat",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 5"
                ],
                "async": true
            },
            {
                "type": "setBlock",
                "number": "bigBat",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 5"
                ],
                "async": true
            },
            {
                "type": "setBlock",
                "number": "bigBat",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 5"
                ],
                "async": true
            },
            {
                "type": "waitAsync"
            },
            {
                "type": "move",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 3"
                ],
                "time": 600,
                "async": true,
                "steps": [
                    "rightdown:1"
                ]
            },
            {
                "type": "move",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 3"
                ],
                "time": 600,
                "async": true,
                "steps": [
                    "down:1"
                ]
            },
            {
                "type": "move",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 3"
                ],
                "time": 600,
                "async": true,
                "steps": [
                    "leftdown:1"
                ]
            },
            {
                "type": "move",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 4"
                ],
                "time": 600,
                "async": true,
                "steps": [
                    "right:1"
                ]
            },
            {
                "type": "move",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 4"
                ],
                "time": 600,
                "async": true,
                "steps": [
                    "left:1"
                ]
            },
            {
                "type": "move",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 5"
                ],
                "time": 600,
                "async": true,
                "steps": [
                    "rightup:1"
                ]
            },
            {
                "type": "move",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 5"
                ],
                "time": 600,
                "async": true,
                "steps": [
                    "up:1"
                ]
            },
            {
                "type": "move",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 5"
                ],
                "time": 600,
                "async": true,
                "steps": [
                    "leftup:1"
                ]
            },
            {
                "type": "waitAsync"
            },
            {
                "type": "setBlock",
                "number": "vampire",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 4"
                ],
                "time": 300
            },
            "\t[吸血鬼,vampire]嘿，就你是那个打败骷髅入侵我领地的勇者啊？你可别以为我会像他们那样杂鱼。\n我将向你展现不死族的超神战力。喝，来吧！",
            {
                "type": "hide",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 6"
                ],
                "remove": true,
                "destruct": true
            }
        ]
    },
    "changeFloor": {},
    "beforeBattle": {},
    "afterBattle": {
        "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[吸血鬼,vampire]你强，但穞更强。",
            {
                "type": "setBlock",
                "number": "21",
                "loc": [
                    "temp:floor_x + 3",
                    "temp:floor_y + 3"
                ]
            },
            {
                "type": "setBlock",
                "number": "21",
                "loc": [
                    "temp:floor_x + 4",
                    "temp:floor_y + 3"
                ]
            },
            {
                "type": "setBlock",
                "number": "21",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 3"
                ]
            },
            {
                "type": "setBlock",
                "number": "362",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 3"
                ]
            },
            {
                "type": "setBlock",
                "number": "362",
                "loc": [
                    "temp:floor_x + 8",
                    "temp:floor_y + 3"
                ]
            },
            {
                "type": "setBlock",
                "number": "362",
                "loc": [
                    "temp:floor_x + 9",
                    "temp:floor_y + 3"
                ]
            },
            {
                "type": "setBlock",
                "number": "342",
                "loc": [
                    "temp:floor_x + 3",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "setBlock",
                "number": "342",
                "loc": [
                    "temp:floor_x + 4",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "setBlock",
                "number": "342",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "setBlock",
                "number": "347",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "setBlock",
                "number": "347",
                "loc": [
                    "temp:floor_x + 8",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "setBlock",
                "number": "347",
                "loc": [
                    "temp:floor_x + 9",
                    "temp:floor_y + 6"
                ]
            },
            {
                "type": "openDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 7"
                ]
            },
            {
                "type": "openDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 9"
                ]
            }
        ],
        "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"
                        ]
                    }
                ]
            }
        ]
    },
    "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,206,206,206,  0,  0,  1,  0,  1],
    [  1,  0,  1,  0,  1,206,  0,206,  1,  0,  1,  0,  1],
    [  1,  0,  1,  0,  1,206,206,206,  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,214,213,  0,213,214,  0,  1,  0,  1],
    [  1,  0,  1,  1,  1,  1, 83,  1,  1,  1,  1,  0,  1],
    [  1,  0,  1,  0,342,  1,  0,  1,347,  0,  1,  0,  1],
    [  1,121,218,  0,  0,213,  0,213,  0,  0,218,  0,  1],
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1]
],
    "bgmap": [

],
    "fgmap": [

]
}