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

187 lines
6.1 KiB
JavaScript

main.floors.MAL30=
{
"floorId": "MAL30",
"title": "魔法学院:30F",
"name": "主楼 30F",
"width": 13,
"height": 13,
"map": [
[148,148,148,148,148,148,148,148,148,148,148,148,148],
[148,148,148,148,148, 0, 87, 0,148,148,148,148,148],
[148,148,148,148,148, 0, 0, 0,148,148,148,148,148],
[148,148,148,148,148,148, 0,148,148,148,148,148,148],
[148,148,148,148,148,148, 85,148,148,148,148,148,148],
[148,148,148,203,202,201, 0,201,202,203,148,148,148],
[148,148,148, 0, 0, 0, 0, 0, 0, 0,148,148,148],
[148,148,148,148,148,148, 0,148,148,148,148,148,148],
[148,148,148,148,148,148, 0,148,148,148,148,148,148],
[148,148,148,148,148, 0, 0, 0,148,148,148,148,148],
[148,148,148,148,148, 0, 0, 0,148,148,148,148,148],
[148,148,148,148,148, 0, 88, 0,148,148,148,148,148],
[148,148,148,148,148,148,148,148,148,148,148,148,148]
],
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 3,
"defaultGround": "magicground",
"bgm": "maps4L.mp3",
"firstArrive": null,
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {
"6,11": {
"floorId": ":before",
"stair": "upFloor"
},
"6,1": {
"floorId": ":next",
"stair": "downFloor"
}
},
"afterBattle": {
"5,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[3, 5],\n\t[4, 5],\n\t[5, 5],\n\t[7, 5],\n\t[8, 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": [
6,
4
]
}
]
}
],
"3,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[3, 5],\n\t[4, 5],\n\t[5, 5],\n\t[7, 5],\n\t[8, 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": [
6,
4
]
}
]
}
],
"4,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[3, 5],\n\t[4, 5],\n\t[5, 5],\n\t[7, 5],\n\t[8, 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": [
6,
4
]
}
]
}
],
"7,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[3, 5],\n\t[4, 5],\n\t[5, 5],\n\t[7, 5],\n\t[8, 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": [
6,
4
]
}
]
}
],
"8,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[3, 5],\n\t[4, 5],\n\t[5, 5],\n\t[7, 5],\n\t[8, 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": [
6,
4
]
}
]
}
],
"9,5": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[3, 5],\n\t[4, 5],\n\t[5, 5],\n\t[7, 5],\n\t[8, 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": [
6,
4
]
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"cannotMove": {},
"fgmap": [
],
"bgmap": [
],
"downFloor": [
6,
10
],
"upFloor": [
6,
2
],
"autoEvent": {
"6,7": {
"0": null,
"1": null
}
},
"beforeBattle": {},
"cannotMoveIn": {},
"bg2map": [],
"fg2map": []
}