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

220 lines
7.2 KiB
JavaScript

main.floors.MAL17=
{
"floorId": "MAL17",
"title": "魔法学院:17F",
"name": "主楼 17F",
"width": 13,
"height": 13,
"map": [
[148,148,148,148,148,148,148,148,148,148,148,148,148],
[148, 0, 0, 0,148, 0, 87, 0,148,401, 0,411,148],
[148, 0, 63, 0,148, 0, 0, 0,148, 0, 32, 0,148],
[148, 0, 0, 0,148,214,148,206,148, 21, 0, 21,148],
[148,148, 85,148,148, 0,148, 0,148,148, 85,148,148],
[148,221, 0,221,148, 81,148, 82,148,214, 0,214,148],
[148, 0, 0, 0,148, 0,148, 0,148, 0, 0, 0,148],
[148,148, 85,148,148,213,148,203,148,148, 85,148,148],
[148,221, 0,221,148, 0, 0, 0,148,213, 0,213,148],
[148, 0, 0, 0,148,148,218,148,148, 0, 0, 0,148],
[148,148, 81,148,148, 0, 0, 0,148,148, 81,148,148],
[148, 31, 0, 0,206, 0, 88, 0,206, 0, 0, 31,148],
[148,148,148,148,148,148,148,148,148,148,148,148,148]
],
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 2,
"defaultGround": "magicground",
"bgm": "maps4L.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": []
}