yimengjiutian/project/floors/BOSS6.js

175 lines
6.6 KiB
JavaScript

main.floors.BOSS6=
{
"floorId": "BOSS6",
"title": "主塔 181 层",
"name": "181",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "heidong.jpg",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"bgm": "heidian.mp3",
"firstArrive": [
{
"type": "setCurtain",
"time": 500
}
],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"heidong2.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, -180, -180);\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": {},
"beforeBattle": {},
"afterBattle": {
"6,6": [
{
"type": "confirm",
"text": "确认要argue薪资吗?",
"yes": [
{
"type": "switch",
"condition": "item:pickaxe",
"caseList": [
{
"case": "5",
"action": [
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "3"
}
]
},
{
"case": "4",
"action": [
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "2"
}
]
},
{
"case": "3",
"action": [
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "2"
}
]
},
{
"case": "2",
"action": [
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "2"
},
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "1"
}
]
},
{
"case": "1",
"action": [
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "1"
}
]
},
{
"case": "0",
"action": [
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "1"
}
]
}
]
}
],
"no": []
},
{
"type": "changeFloor",
"floorId": "MT179",
"loc": [
6,
12
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 17, 0, 17, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 17, 17, 17, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 17,810, 17, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 17, 0, 17, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 17, 0, 17, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 17, 0, 17, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 17, 0, 17, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 17, 0, 17, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 17, 0, 17, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}