main.floors.MAR38= { "floorId": "MAR38", "title": "学院图书馆:38F", "name": "图书馆 38F", "width": 13, "height": 13, "map": [ [149,149,149,149,149,149,149,149,149,149,149,149,149], [149, 87, 0, 81,216, 0, 0, 0,216, 83, 0, 88,149], [149, 0, 0,149, 0, 0,402, 0, 0,149, 0, 0,149], [149,212,149,149,149,212,149,149,149,149,149,212,149], [149, 0,149,149,149, 0,149, 0,225,225, 0, 0,149], [149, 0,149,149,149,224,149, 82,149,149,149,149,149], [149, 0,149,149,149, 0,149, 82, 82, 0, 0, 0,149], [149, 0,149,149,149, 0,149,149,149, 0,421, 0,149], [149, 0,149,149,149,412, 0, 31,149, 0, 0, 0,149], [149,212, 0,227,149,149,149,149,149,149,149,149,149], [149, 0,227, 0,149, 0, 0, 0,149,222, 0,222,149], [149, 32, 0,225, 0,213, 0, 0,224, 0, 0, 0,149], [149,149,149,149,149,149,149,149,149,149,149,149,149] ], "canFlyTo": true, "canFlyFrom": true, "canUseQuickShop": true, "images": [], "ratio": 4, "defaultGround": "magicground", "bgm": "maps4R.mp3", "firstArrive": null, "eachArrive": [], "parallelDo": "", "events": {}, "changeFloor": { "1,1": { "floorId": ":next", "stair": "downFloor" }, "11,1": { "floorId": ":before", "stair": "upFloor" } }, "afterBattle": { "9,10": [ { "type": "function", "function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[11, 10],\n\t[9, 10],\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": "function", "function": "function(){\ncore.removeBlock(10, 9)\ncore.drawMap()\n}" } ] } ], "11,10": [ { "type": "function", "function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[1, 10],\n\t[3, 10],\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": "function", "function": "function(){\ncore.removeBlock(10, 9)\ncore.drawMap()\n}" } ] } ] }, "afterGetItem": {}, "afterOpenDoor": {}, "cannotMove": {}, "fgmap": [ ], "bgmap": [ ], "upFloor": [ 2, 1 ], "downFloor": [ 10, 1 ], "autoEvent": {}, "beforeBattle": {}, "cannotMoveIn": {}, "bg2map": [], "fg2map": [] }