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

191 lines
6.8 KiB
JavaScript

main.floors.MAL12=
{
"floorId": "MAL12",
"title": "魔法学院:12F",
"name": "主楼 12F",
"width": 13,
"height": 13,
"map": [
[148,148,148,148,148,148,148,148,148,148,148,148,148],
[148,122, 0, 0,148, 21,401, 21,148, 0, 0,1002,148],
[148,148,148,206,148, 0,148, 0,148, 0,148,148,148],
[148, 0, 0, 0,148,218, 0,218,148, 0,213, 0,148],
[148, 81,148,148,148,148, 81,148,148,148,148, 0,148],
[148, 0,218, 0, 81, 0,213, 0,148, 31, 0,206,148],
[148,148,148,148,148, 0, 0,218, 81, 0,411, 0,148],
[148, 21, 21, 0,148, 0, 32, 0,148, 21, 0,203,148],
[148, 21, 22, 0,148,148,148,148,148, 82,148, 81,148],
[148, 0, 0,213,148, 31, 0, 31,148,203, 0,213,148],
[148,148,148, 81,148, 0, 0, 0,148,148, 0,148,148],
[148, 87, 0, 0,205, 0, 0, 0,205, 0, 0, 88,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": {
"1,1": [
{
"type": "if",
"condition": "switch:A",
"true": [
"\t[商人,woman]打完BOSS别急着吃血瓶 立马上楼再折返 你会发现血瓶立刻升1级",
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,woman]我800星币卖${core.hasItem(\"Backpack\") ?2:1}把珍稀的红钥匙,你买吗?",
"choices": [
{
"text": "我太需要了",
"need": "status:money>=800",
"action": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "800"
},
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "1"
}
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
{
"text": "使用4星光支付",
"need": "flags.star.level>3",
"condition": "item:FriendshipBadge&&!switch:B",
"action": [
{
"type": "function",
"function": "function(){\nflags.star.level-=4\n}"
},
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "1"
}
]
},
{
"type": "setValue",
"name": "switch:B",
"value": "true"
}
]
},
{
"text": "离开",
"action": []
}
]
}
]
}
],
"11,1": {
"trigger": "action",
"enable": true,
"noPass": null,
"displayDamage": true,
"opacity": 1,
"filter": {
"blur": 0,
"hue": 0,
"grayscale": 0,
"invert": false,
"shadow": 0
},
"data": [
{
"type": "openShop",
"id": "battletokenshop",
"open": true
}
]
}
},
"changeFloor": {
"11,11": {
"floorId": ":before",
"stair": "upFloor"
},
"1,11": {
"floorId": ":next",
"stair": "downFloor"
}
},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"cannotMove": {},
"fgmap": [
],
"bgmap": [
],
"upFloor": [
2,
11
],
"downFloor": [
10,
11
],
"autoEvent": {},
"beforeBattle": {},
"cannotMoveIn": {
"11,2": [
"up",
"down",
"left",
"right"
],
"10,1": []
},
"bg2map": [],
"fg2map": []
}