main.floors.SC38_1= { "floorId": "SC38_1", "title": "御魂庆典:38F", "name": "第 38 层", "width": 13, "height": 13, "map": [ [330,330,330,330,330,330,330,330,330,330,330,330,330], [330, 88, 0, 81,202, 0, 0, 0,202, 81, 0, 87,330], [330, 0, 0, 1, 0,122, 21, 0, 0, 1, 0, 0,330], [330,205, 1, 1, 1, 1, 1, 81, 1, 1, 1, 81,330], [330, 0, 0,217,217, 0, 1, 0, 1, 21, 1, 0,330], [330, 1, 0, 1, 1, 82, 1, 0, 1, 21, 1, 0,330], [330, 0, 0, 0, 82, 82, 1,205, 1, 21, 1,202,330], [330, 0, 63, 0, 1, 1, 1,209, 1, 0,210, 0,330], [330, 0, 0, 0, 1, 28, 31, 0, 1, 1, 1, 81,330], [330, 1, 1, 1, 1, 1, 1, 1, 1, 21, 0,205,330], [330,221, 0,221, 1, 0, 0, 0, 1, 0,210, 0,330], [330, 0, 0, 0, 81,202, 0,201, 81,217, 0, 32,330], [330,330,330,330,330,330,330,330,330,330,330,330,330] ], "canFlyTo": true, "canFlyFrom": true, "canUseQuickShop": true, "images": [], "ratio": 4, "defaultGround": "ground", "bgm": "maps2.mp3", "firstArrive": null, "eachArrive": [], "parallelDo": "", "events": { "2,6": [ { "type": "closeDoor", "id": "yellowWall", "loc": [ 2, 5 ] }, { "type": "hide", "remove": true, "time": 0 } ], "5,2": [ { "type": "choices", "text": "\t[商人,woman]我以50星币特价卖${core.hasItem(\"Backpack\") ?6:3}把黄钥匙,先到先得。", "choices": [ { "text": "我太需要了", "need": "status:money>=50", "action": [ { "type": "setValue", "name": "status:money", "operator": "-=", "value": "50" }, { "type": "setValue", "name": "item:yellowKey", "operator": "+=", "value": "3" }, { "type": "if", "condition": "core.hasItem(\"Backpack\")", "true": [ { "type": "setValue", "name": "item:yellowKey", "operator": "+=", "value": "3" } ] }, { "type": "hide", "remove": 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,1": { "floorId": ":before", "stair": "upFloor" }, "11,1": { "floorId": ":next", "stair": "downFloor" } }, "afterBattle": { "1,10": [ { "type": "function", "function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[1, 10],\n\t[3, 10],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 2, 9 ] } ] } ], "3,10": [ { "type": "function", "function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[1, 10],\n\t[3, 10],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 2, 9 ] } ] } ] }, "afterGetItem": {}, "afterOpenDoor": {}, "cannotMove": {}, "fgmap": [ ], "bgmap": [ [ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17], [ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17], [ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17], [ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17], [ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17], [ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17], [ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17], [ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17], [ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17], [ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17], [ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17], [ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17], [ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17] ], "upFloor": [ 10, 1 ], "downFloor": [ 2, 1 ], "autoEvent": {}, "beforeBattle": {}, "cannotMoveIn": {}, "bg2map": [], "fg2map": [] }