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

171 lines
5.3 KiB
JavaScript

main.floors.MAR41=
{
"floorId": "MAR41",
"title": "学院图书馆:41F",
"name": "图书馆 41F",
"width": 13,
"height": 13,
"map": [
[149,149,149,149,149,149,149,149,149,149,149,149,149],
[149, 31,149,149,149,149, 0,149,149,149,149, 31,149],
[149, 81,220, 0,149,149, 0,149,149, 0,220, 81,149],
[149, 81,149, 0,149,149, 0,149,149, 0,149, 81,149],
[149, 81,149, 0,149,246, 0,246,149, 0,149, 81,149],
[149, 0, 0,219,149,149, 0,149,149,219, 0, 0,149],
[149,207, 0, 0, 0, 0, 0, 0, 0, 0, 0,207,149],
[149, 0,207, 0, 0, 0, 0, 0, 0, 0,207, 0,149],
[149, 81,149,149,204,149, 81,149,204,149,149, 81,149],
[149, 81,149, 31,404,149, 0,149,414, 31,149, 81,149],
[149, 81,149,149,149,149, 0,149,149,149,149, 81,149],
[149, 32,149,149,149,149, 87,149,149,149,149, 32,149],
[149,149,149,149,149,149,149,149,149,149,149,149,149]
],
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 5,
"defaultGround": "magicground",
"bgm": "maps4R.mp3",
"firstArrive": null,
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {
"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": "421",
"loc": [
[
6,
1
]
]
},
{
"type": "setBlock",
"number": "149",
"loc": [
[
5,
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": "421",
"loc": [
[
6,
1
]
]
},
{
"type": "setBlock",
"number": "149",
"loc": [
[
5,
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": null,
"downFloor": null,
"autoEvent": {},
"beforeBattle": {},
"cannotMoveIn": {},
"bg2map": [],
"fg2map": [],
"flyPoint": [
6,
10
],
"underGround": true
}