main.floors.MAL41= { "floorId": "MAL41", "title": "魔法学院:41F", "name": "主楼 41F", "width": 13, "height": 13, "map": [ [148,148,148,148,148,148,148,148,148,148,148,148,148], [148, 31,148, 0, 22,148, 88,148, 22, 0,148, 31,148], [148, 81,220, 0, 0,148, 0,148, 0, 0,220, 81,148], [148, 81,148, 0,148,148, 0,148,148, 0,148, 81,148], [148, 81,148, 81,148,246, 0,246,148, 81,148, 81,148], [148, 0, 0,219,148,148, 0,148,148,219, 0, 0,148], [148,207, 0, 0, 0, 82, 0, 82, 0, 0, 0,207,148], [148, 0,207, 0,204,148, 81,148,204, 0,207, 0,148], [148, 81,148,148, 81,148, 81,148, 81,148,148, 81,148], [148, 81,148, 31, 0,148, 81,148, 0, 31,148, 81,148], [148, 81,148, 21, 21,148, 0,148, 21, 21,148, 81,148], [148, 32,148, 21,404,148, 87,148,414, 21,148, 32,148], [148,148,148,148,148,148,148,148,148,148,148,148,148] ], "canFlyTo": true, "canFlyFrom": true, "canUseQuickShop": true, "images": [], "ratio": 5, "defaultGround": "magicground", "bgm": "maps4L.mp3", "firstArrive": [ { "type": "setValue", "name": "flag:ratio", "operator": "+=", "value": "1" } ], "eachArrive": [], "parallelDo": "", "events": {}, "changeFloor": { "6,1": { "floorId": ":before", "stair": "upFloor" }, "6,11": { "floorId": ":next", "stair": "downFloor" } }, "afterBattle": { "2,2": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[2, 2],\n\t[10, 2],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "setBlock", "number": "downFly", "loc": [ [ 6, 5 ] ] }, { "type": "setBlock", "number": "148", "loc": [ [ 5, 6 ], [ 6, 6 ], [ 7, 6 ] ] }, { "type": "setBlock", "number": "0", "loc": [ [ 7, 7 ], [ 5, 7 ] ] }, { "type": "function", "function": "function(){\ncore.drawMap()\n}" } ] } ], "10,2": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[2, 2],\n\t[10, 2],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "setBlock", "number": "downFly", "loc": [ [ 6, 5 ] ] }, { "type": "setBlock", "number": "148", "loc": [ [ 5, 6 ], [ 6, 6 ], [ 7, 6 ] ] }, { "type": "setBlock", "number": "0", "loc": [ [ 7, 7 ], [ 5, 7 ] ] }, { "type": "function", "function": "function(){\ncore.drawMap()\n}" } ] } ] }, "afterGetItem": {}, "afterOpenDoor": {}, "cannotMove": {}, "fgmap": [ ], "bgmap": [ ], "upFloor": [ 6, 10 ], "downFloor": [ 6, 2 ], "autoEvent": {}, "beforeBattle": {}, "cannotMoveIn": {}, "bg2map": [], "fg2map": [] }