51_AstralParty/project/floors/MAR17.js
2025-09-11 22:30:07 +08:00

220 lines
7.2 KiB
JavaScript

main.floors.MAR17=
{
"floorId": "MAR17",
"title": "学院图书馆:17F",
"name": "图书馆 17F",
"width": 13,
"height": 13,
"map": [
[149,149,149,149,149,149,149,149,149,149,149,149,149],
[149,149,149,149,149, 0, 87, 0,149,149,149,149,149],
[149,401, 32,411,149, 0, 0, 0,149, 0, 63, 0,149],
[149, 0, 0, 0,149,206,149,214,149, 0, 0, 0,149],
[149,149, 85,149,149, 0,149, 0,149,149, 85,149,149],
[149,214, 0,214,149, 82,149, 81,149,221, 0,221,149],
[149, 0, 0, 0,149, 0,149, 0,149, 0, 0, 0,149],
[149,149, 85,149,149,203,149,213,149,149, 85,149,149],
[149,213, 0,213,149, 0, 0, 0,149,221, 0,221,149],
[149, 0, 0, 0,149,149,218,149,149, 0, 0, 0,149],
[149,149, 0,149,149, 0, 0, 0,149,149, 0,149,149],
[149, 31, 0, 0,206, 0, 88, 0,206, 0, 0, 31,149],
[149,149,149,149,149,149,149,149,149,149,149,149,149]
],
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 2,
"defaultGround": "magicground",
"bgm": "maps4R.mp3",
"firstArrive": null,
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {
"6,11": {
"floorId": ":before",
"stair": "upFloor"
},
"6,1": {
"floorId": ":next",
"stair": "downFloor"
}
},
"afterBattle": {
"1,8": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[1, 8],\n\t[3, 8],\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": "openDoor",
"loc": [
2,
7
]
}
]
}
],
"3,8": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[1, 8],\n\t[3, 8],\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": "openDoor",
"loc": [
2,
7
]
}
]
}
],
"1,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[1, 5],\n\t[3, 5],\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": "openDoor",
"loc": [
2,
4
]
}
]
}
],
"3,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[1, 5],\n\t[3, 5],\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": "openDoor",
"loc": [
2,
4
]
}
]
}
],
"9,8": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[9, 8],\n\t[11, 8],\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": "openDoor",
"loc": [
10,
7
]
}
]
}
],
"11,8": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[9, 8],\n\t[11, 8],\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": "openDoor",
"loc": [
10,
7
]
}
]
}
],
"9,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[9, 5],\n\t[11, 5],\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": "openDoor",
"loc": [
10,
4
]
}
]
}
],
"11,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[9, 5],\n\t[11, 5],\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": "openDoor",
"loc": [
10,
4
]
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"cannotMove": {},
"fgmap": [
],
"bgmap": [
],
"downFloor": [
6,
10
],
"upFloor": [
6,
2
],
"autoEvent": {},
"beforeBattle": {},
"cannotMoveIn": {},
"bg2map": [],
"fg2map": []
}