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

101 lines
3.0 KiB
JavaScript

main.floors.MAR11=
{
"floorId": "MAR11",
"title": "学院图书馆:11F",
"name": "图书馆 11F",
"width": 13,
"height": 13,
"map": [
[149,149,149,149,149,149,149,149,149,149,149,149,149],
[149,149,149,149, 0,205, 0,401,149, 0, 0, 0,149],
[149,149,149,149, 0,149, 0, 0,149, 0,421, 0,149],
[149, 0, 0,213, 0,149,149, 0,149, 0, 0, 0,149],
[149,203,149,149,149,149,206, 0,149,149, 85,149,149],
[149, 0,149, 0, 0,218, 0,213,149,218, 0,218,149],
[149, 0,149, 31, 0,149,149,149,149, 0, 0, 0,149],
[149,206,149, 0, 0,203, 0, 0,206, 0, 0, 0,149],
[149, 0,149,149,149,149,149,149,149,149,149, 82,149],
[149, 0, 0, 0,205, 0, 0,203, 0, 0, 0,206,149],
[149, 0, 0, 0,149, 81,149,149,149,149,149,149,149],
[149, 87, 0, 0,149,206, 0, 0, 32,149,149,149,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": {
"1,11": {
"floorId": ":next",
"stair": "downFloor"
}
},
"afterBattle": {
"11,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[11, 5],\n\t[9, 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
]
}
]
}
],
"9,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[11, 5],\n\t[9, 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": {},
"bgmap": [
],
"fgmap": [
],
"upFloor": null,
"downFloor": null,
"autoEvent": {},
"beforeBattle": {},
"cannotMoveIn": {},
"bg2map": [],
"fg2map": [],
"flyPoint": [
1,
10
],
"underGround": true
}