main.floors.MT38=
{
    "floorId": "MT38",
    "title": "魔塔 第38层",
    "name": "第 38 层",
    "width": 13,
    "height": 13,
    "map": [
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1],
    [  1, 22,  0, 81,225,  0,  0,  0,216, 81,  0,344,  1],
    [  1,  0,121,  1, 21,  0,122,  0,  0,  1,  0,  0,  1],
    [  1, 81,  1,  1,  1,216,  1, 82,  1,  1,  1, 81,  1],
    [  1,225,  0,  0,212,  0,  1,  0,  1, 21, 82,  0,  1],
    [  1,  1,  0,  1,  1, 82,  1,212,  1, 21,  1,212,  1],
    [  0,  0,  0,  0, 81,  0, 81,  0,  1, 21,  1,  0,  0],
    [  1,222,  0,222,  1,  1,  1,224, 81,  0,227,  0,  1],
    [  1,  1, 85,  1,  1,349,359,  0,  1, 82,  1, 81,  1],
    [  1,  0,  0,  0,  1,  1,  1,  1,  1, 21,  0,225,  1],
    [  1,  0, 40,  0,  1,  0,  0,  0,  1,  0,227,  0,  1],
    [  1,  0,  0,  0, 83,224,  0,251, 81,212,  0,364,  1],
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1]
],
    "canFlyTo": true,
    "canFlyFrom": true,
    "canUseQuickShop": true,
    "images": [],
    "ratio": 4,
    "defaultGround": "ground",
    "bgm": "section4.mp3",
    "firstArrive": [],
    "eachArrive": [],
    "parallelDo": "",
    "events": {},
    "changeFloor": {},
    "afterBattle": {
        "1,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[1, 7],\n\t[3, 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 + 2",
                            "temp:floor_y + 8"
                        ]
                    }
                ]
            }
        ],
        "3,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[1, 7],\n\t[3, 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 + 2",
                            "temp:floor_y + 8"
                        ]
                    }
                ]
            }
        ]
    },
    "afterGetItem": {},
    "afterOpenDoor": {},
    "cannotMove": {},
    "fgmap": [

],
    "bgmap": [

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