main.floors.MT22_2=
{
    "floorId": "MT22_2",
    "title": "主塔 22 层",
    "name": "22",
    "width": 13,
    "height": 13,
    "canFlyTo": true,
    "canFlyFrom": true,
    "canUseQuickShop": true,
    "images": [],
    "ratio": 2,
    "defaultGround": "ground",
    "bgm": "section1.mp3",
    "firstArrive": [],
    "eachArrive": [],
    "parallelDo": "",
    "events": {},
    "changeFloor": {},
    "beforeBattle": {},
    "afterBattle": {
        "7,9": [
            {
                "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[7, 9],\n\t[7, 11],\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 + 8",
                            "temp:floor_y + 10"
                        ]
                    }
                ]
            }
        ],
        "7,11": [
            {
                "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[7, 9],\n\t[7, 11],\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 + 8",
                            "temp:floor_y + 10"
                        ]
                    }
                ]
            }
        ],
        "7,3": [
            {
                "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[7, 1],\n\t[7, 3],\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 + 8",
                            "temp:floor_y + 2"
                        ]
                    }
                ]
            }
        ],
        "7,1": [
            {
                "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[7, 1],\n\t[7, 3],\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 + 8",
                            "temp:floor_y + 2"
                        ]
                    }
                ]
            }
        ]
    },
    "afterGetItem": {},
    "afterOpenDoor": {},
    "autoEvent": {},
    "cannotMove": {},
    "cannotMoveIn": {},
    "map": [
    [  1,  1,  1,  1,  1,  1, 81,  1,  1,  1,  1,  1,  1],
    [  1, 21,357,  0,  1, 21,  0,206,  1, 21,  0, 21,  1],
    [  1,342,  0,218,  1,  0,121,  0, 85,  0, 21,  0,  1],
    [  1,  1,  1, 81,  1,357,  0,206,  1, 21,  0, 21,  1],
    [  1,203,  0,  0,  1,  1, 81,  1,  1,  1,  1,  1,  1],
    [  1,  0,  1,  0, 82,  0,  0,  0,210,  0,  0,210,  1],
    [  0,  0,  0,218,  1,  1,218,  1,  1, 81,  1,  0,  0],
    [  1,  0,  1,  0, 82,  0,  0,  0,203,  0,  0,203,  1],
    [  1,203,  0,  0,  1,  1, 81,  1,  1,  1, 82,  1,  1],
    [  1,  1,  1, 81,  1,357,  0,221,  1,  0,  0,  0,  1],
    [  1,347,  0,213,  1,  0,122,  0, 85,  0, 37,  0,  1],
    [  1, 22,362,  0,  1, 21,  0,221,  1,  0,  0,  0,  1],
    [  1,  1,  1,  1,  1,  1, 81,  1,  1,  1,  1,  1,  1]
],
    "bgmap": [

],
    "fgmap": [

]
}