yimengjiutian/project/floors/MT181.js

189 lines
5.6 KiB
JavaScript
Raw Normal View History

2023-06-07 04:06:48 +08:00
main.floors.MT181=
{
"floorId": "MT181",
"title": "主塔 181 层",
"name": "181",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"bgm": "ending.mp3",
2023-06-07 04:06:48 +08:00
"firstArrive": [],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {},
"changeFloor": {
"6,12": {
"floorId": "MT180",
"loc": [
6,
0
]
},
"6,0": {
"floorId": "MT182",
"loc": [
6,
12
]
}
},
2023-06-07 04:06:48 +08:00
"beforeBattle": {},
"afterBattle": {
"6,10": [
{
"type": "setValue",
"name": "flag:wotainanle",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:wotainanle==28)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT183"
}
]
}
],
"6,8": [
{
"type": "setValue",
"name": "flag:wotainanle",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:wotainanle==28)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT183"
}
]
}
],
"6,6": [
{
"type": "setValue",
"name": "flag:wotainanle",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:wotainanle==28)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT183"
}
]
}
],
"6,4": [
{
"type": "setValue",
"name": "flag:wotainanle",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:wotainanle==28)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT183"
}
]
}
],
"6,2": [
{
"type": "setValue",
"name": "flag:wotainanle",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:wotainanle==28)",
"true": [
{
"type": "openDoor",
"loc": [
6,
1
],
"floorId": "MT183"
}
]
}
]
},
2023-06-07 04:06:48 +08:00
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[40044,40044,40044,40044,40044,40044, 91,40044,40044,40044,40044,40044,40044],
[40044,40044,40044,40044,40044,40044, 0,40044,40044,40044,40044,40044,40044],
[40044,40044,40044,40044,40044,40044,920,40044,40044,40044,40044,40044,40044],
[916,916,915, 82,916, 81, 0, 81,916, 82,915,916,916],
[40044,40044,40044,40044,40044,40044,920,40044,40044,40044,40044,40044,40044],
[916,916,915, 82,916, 81, 0, 81,916, 82,915,916,916],
[40044,40044,40044,40044,40044,40044,920,40044,40044,40044,40044,40044,40044],
[962,917,915, 83,916, 81, 0, 81,916, 83,915,917,962],
[40044,40044,40044,40044,40044,40044,920,40044,40044,40044,40044,40044,40044],
[962,962,917,917,917,40044, 0,40044,917,917,917,962,962],
[40044,40044,40044,40044,40044,40044,920,40044,40044,40044,40044,40044,40044],
[40044,40044,40044,40044,40044,40044, 0,40044,40044,40044,40044,40044,40044],
[40044,40044,40044,40044,40044,40044, 93,40044,40044,40044,40044,40044,40044]
2023-06-07 04:06:48 +08:00
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}