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

162 lines
6.1 KiB
JavaScript

main.floors.DPR6_1=
{
"floorId": "DPR6_1",
"title": "龙宫游乐园:6-1",
"name": "6-1",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"cannotMoveDirectly": false,
"images": [],
"ratio": 1,
"defaultGround": "magicground2",
"bgm": "maps5A.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {
"9,5": [
{
"type": "if",
"condition": "switch:A",
"true": [
"\t[商人,woman]灵活使用你的卡牌",
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,woman]我以200星币特价卖${core.hasItem(\"Backpack\") ?6:3}把黄钥匙,先到先得。",
"choices": [
{
"text": "我太需要了",
"need": "status:money>=200",
"action": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "200"
},
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "3"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "3"
}
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
{
"text": "使用1星光支付",
"need": "flags.star.level>0",
"condition": "item:FriendshipBadge&&!switch:B",
"action": [
{
"type": "function",
"function": "function(){\nflags.star.level--\n}"
},
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "3"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "3"
}
]
},
{
"type": "setValue",
"name": "switch:B",
"value": "true"
}
]
},
{
"text": "离开",
"action": []
}
]
}
]
}
]
},
"changeFloor": {
"1,12": {
"floorId": "DPR5_1",
"loc": [
1,
1
],
"direction": "down"
},
"12,11": {
"floorId": "DPR6_2",
"loc": [
1,
11
],
"direction": "right"
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[142,142,142,142,142,142,142,142,142,142,142,142,142],
[142, 0, 0, 0, 0, 0,214, 0, 0, 0, 0, 0,142],
[142, 0,142, 81,142, 82,142, 81,142, 81,142, 0,142],
[142, 0,142,227,142,227,142,225,142,216,142, 0,142],
[142, 0,142, 31,142,402,142, 31,142, 0,142, 0,142],
[142,212,142, 32,142,412,142, 22,142,122,142,212,142],
[142, 0,142,142,142,142,142,142,142,142,142, 0,142],
[142, 0,142, 0, 31, 0,142, 0, 31, 0,142, 0,142],
[142, 0, 81,216, 0,402, 81,225, 0,412,142, 0,142],
[142, 0,142, 0, 22, 0,142, 0, 21, 0,142, 0,142],
[142, 0,142,142,142,142,142,142,142,142,142, 0,142],
[142, 0, 81, 81, 81, 22,142, 23,227,227, 81, 0, 94],
[142, 93,142,142,142,142,142,142,142,142,142,142,142]
],
"bgmap": [
],
"fgmap": [
]
}