586 lines
16 KiB
JavaScript
586 lines
16 KiB
JavaScript
main.floors.MT166=
|
|
{
|
|
"floorId": "MT166",
|
|
"title": "最后的大学",
|
|
"name": "最后的大学",
|
|
"width": 13,
|
|
"height": 13,
|
|
"canFlyTo": true,
|
|
"canFlyFrom": true,
|
|
"canUseQuickShop": true,
|
|
"cannotViewMap": false,
|
|
"images": [
|
|
{
|
|
"name": "yuzhou.jpg",
|
|
"canvas": "bg",
|
|
"x": 0,
|
|
"y": 0
|
|
}
|
|
],
|
|
"ratio": 1,
|
|
"defaultGround": "ground",
|
|
"bgm": "gaolikangzhi.mp3",
|
|
"firstArrive": [],
|
|
"eachArrive": [],
|
|
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"yuzhou.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, -150, -140);\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": {
|
|
"0,6": {
|
|
"floorId": "MT165",
|
|
"loc": [
|
|
12,
|
|
6
|
|
]
|
|
},
|
|
"6,0": {
|
|
"floorId": "MT167",
|
|
"loc": [
|
|
6,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"beforeBattle": {},
|
|
"afterBattle": {
|
|
"3,5": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"3,7": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"5,4": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"9,3": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"6,2": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"0,9": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"7,9": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"5,8": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"4,12": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"2,1": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"6,5": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"2,4": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"11,5": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"10,2": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"9,8": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"6,11": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"12,10": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"4,3": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"afterGetItem": {},
|
|
"afterOpenDoor": {},
|
|
"autoEvent": {},
|
|
"cannotMove": {},
|
|
"cannotMoveIn": {},
|
|
"map": [
|
|
[ 4, 4, 4, 21, 4, 0, 91, 0, 4, 4, 4, 4, 4],
|
|
[ 21, 21,529, 0, 4,888, 0,913, 4,890, 0,891, 4],
|
|
[ 4, 4, 4, 81, 4, 4,528, 4, 4, 4,550, 4, 4],
|
|
[891,913, 4, 0,549, 0, 0,888, 0,528, 0, 21, 21],
|
|
[913, 0,950, 0, 4,529, 4, 4, 4, 4, 83, 4, 4],
|
|
[ 4, 4, 4,633, 4, 0,950, 0, 4, 0, 22,546, 0],
|
|
[ 92, 0,913, 0, 81,913, 4,912, 4,890, 0, 4,912],
|
|
[ 4, 4, 4,529, 4, 0, 4,890, 4, 0,891, 4,892],
|
|
[ 0, 81,913, 0, 4,949, 4, 4, 4,549, 4, 4, 4],
|
|
[528, 4, 0,888, 4, 0, 82,949, 21, 0, 81,911, 0],
|
|
[886, 4, 4, 4, 4,913, 4, 4, 4,886, 4, 4,549],
|
|
[887, 4,913,886, 4, 0,549, 0,913, 0, 4,890, 0],
|
|
[ 4, 4,887, 0,546, 0, 4, 4, 4,888, 4, 23,891]
|
|
],
|
|
"bgmap": [
|
|
|
|
],
|
|
"fgmap": [
|
|
|
|
],
|
|
"bg2map": [
|
|
|
|
],
|
|
"fg2map": [
|
|
|
|
],
|
|
"flyPoint": [
|
|
0,
|
|
6
|
|
]
|
|
} |