main.floors.MT1=
{
    "floorId": "MT1",
    "title": "魔塔 第01层",
    "name": "第 1 层",
    "width": 13,
    "height": 13,
    "map": [
    [  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1],
    [  1, 87,  0,201,202,201,  0,  0,  0,  0,  0,  0,  1],
    [  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  0,  1],
    [  1, 31,  0,  0, 81,  0,  1, 27, 21,  0,  1,  0,  1],
    [  1,  0,209,  0,  1,  0,  1, 28, 31,  0,  1,  0,  1],
    [  1,  1, 81,  1,  1,  0,  1,  1,  1, 81,  1,  0,  1],
    [  1, 21,  0,  0,  1,  0, 81,205,217,205,  1,  0,  1],
    [  1,  0,210,  0,  1,  0,  1,  1,  1,  1,  1,  0,  1],
    [  1,  1, 81,  1,  1,  0,  0,  0,  0,  0,  0,  0,  1],
    [  1,  0,  0,  0,  1,  1, 81,  1,  1,  1, 81,  1,  1],
    [  1, 31,  0, 21,  1, 21,  0,  0,  1,  0,205,  0,  1],
    [  1, 31,  0, 21,  1,129,  0,  0,  1,201, 32,201,  1],
    [  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1]
],
    "canFlyTo": true,
    "canFlyFrom": true,
    "canUseQuickShop": true,
    "images": [],
    "ratio": 1,
    "defaultGround": "ground",
    "bgm": "section1.mp3",
    "firstArrive": [
        {
            "type": "setValue",
            "name": "item:I333",
            "value": "1"
        },
        {
            "type": "setValue",
            "name": "item:wand",
            "value": "1"
        },
        {
            "type": "setValue",
            "name": "flag:fly",
            "value": "true"
        },
        {
            "type": "tip",
            "text": "游戏已重启"
        },
        {
            "type": "function",
            "function": "function(){\nif (core.isReplaying()) return;\nif (typeof core.domStyle.isVertical === 'undefined') {\n\tcore.domStyle.isVertical = (main.dom.body.clientHeight > main.dom.body.clientWidth);\n}\nif (core.domStyle.isVertical)\n\tcore.strokeRect('outerUI', 346, 538, 32, 32, '#FF0000', 2);\nelse\n\tcore.strokeRect('outerUI', 593, 318, 32, 32, '#FF0000', 2);\n}"
        },
        {
            "type": "setValue",
            "name": "flag:开启特性",
            "value": "0"
        },
        {
            "type": "hide",
            "loc": [
                [
                    5,
                    5
                ],
                [
                    6,
                    5
                ],
                [
                    7,
                    5
                ],
                [
                    6,
                    6
                ]
            ],
            "floorId": "MT35",
            "remove": true
        },
        {
            "type": "setValue",
            "name": "flag:额外功能开关",
            "value": "true"
        },
        {
            "type": "setValue",
            "name": "flag:ratio",
            "value": "1"
        },
        {
            "type": "setValue",
            "name": "item:book",
            "value": "1"
        },
        {
            "type": "setValue",
            "name": "flag:up",
            "value": "0"
        },
        {
            "type": "setValue",
            "name": "flag:sword",
            "value": "0"
        },
        {
            "type": "setValue",
            "name": "flag:shield",
            "value": "0"
        },
        {
            "type": "function",
            "function": "function(){\nvar yellow = [21, 81, 211, 213, 214, 221, 215, 219, 224, 226]\nvar blue = [22, 28, 32, 82, 131, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 205, 206, 212, 217, 222, 225, 246]\nvar red = [23, 27, 31, 83, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 199, 202, 207, 218, 220, 223, 227, 245, 257, 258]\nvar green = [201, 204, 216]\nvar blackwhite = [203, 208, 209, 210, 228, 247]\nvar items = [26, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 47, 49, 51, 52, 53, 55, 56, 62, 331]\nflags.blues = [22, 28, 32, 82, 131, 205, 206, 212, 217, 222, 225, 246]\nflags.reds = [23, 27, 31, 83, 202, 207, 218, 220, 223, 227, 245, 257, 258]\nflags.yellows = [21, 81, 211, 213, 214, 221, 215, 219, 224, 226]\nflags.__visited__.MT49 = true;\nfor (var floorId of core.floorIds) core.extractBlocks(floorId);\n\nfor (var lists of [yellow, blue, red, green, blackwhite, items]) {\n\tif (lists === items) {\n\t\tcore.plugin.shuffleItemsCollection(items);\n\t\tcontinue;\n\t}\n\tvar blocks = []\n\tfor (var floorId of core.floorIds)\n\t\tcore.status.maps[floorId].blocks.forEach(function (block) {\n\n\t\t\tif (lists.includes(block.id)) {\n\t\t\t\tblocks.push(core.clone(block));\n\t\t\t\tdelete block.event.event;\n\t\t\t}\n\t\t})\n\tfor (var floorId of core.floorIds)\n\t\tcore.status.maps[floorId].blocks.forEach(function (block) {\n\t\t\tif (lists.includes(block.id)) {\n\t\t\t\tvar index = core.rand(blocks.length);\n\t\t\t\tvar toNumber = blocks[index].id;\n\t\t\t\twhile (floorId == 'MT20' && toNumber == 131 && block.x >= 5 && block.x <= 7 && block.y >= 5 && block.y <= 7) {\n\t\t\t\t\tindex = core.rand(blocks.length);\n\t\t\t\t\ttoNumber = blocks[index].id;\n\t\t\t\t}\n\t\t\t\tblock.id = toNumber;\n\t\t\t\tblocks.splice(index, 1);\n\t\t\t\tvar toBlock = core.maps.getBlockByNumber(toNumber, true);\n\t\t\t\tblock.event = {}\n\t\t\t\tfor (var one in toBlock.event) {\n\n\t\t\t\t\tblock.event[one] = core.clone(toBlock.event[one]);\n\t\t\t\t\t//if (toNumber >= 181 && toNumber <= 198) debugger;\n\t\t\t\t\t//if (toNumber >= 181 && toNumber <= 198) console.log(one, toBlock.event, block.event, block.event.event)\n\t\t\t\t}\n\t\t\t\t//if (toNumber >= 181 && toNumber <= 198) console.log(block.event, block.event.event)\n\t\t\t\tcore.maps._updateMapArray(floorId, block.x, block.y);\n\t\t\t\t//if (toNumber >= 181 && toNumber <= 198) console.log(block.event, block.event.event)\n\t\t\t\t//let tmp = block.event,\n\t\t\t\t//\tump = tmp.event\n\t\t\t\t//if (toNumber >= 181 && toNumber <= 198) console.log(\"\", tmp, ump, Object.keys(tmp))\n\t\t\t\t//if (toNumber >= 181 && toNumber <= 198) flags.tmp = tmp;\n\t\t\t\t//if (toNumber >= 181 && toNumber <= 198) console.log(\"\", flags.tmp, Object.keys(flags.tmp))\n\t\t\t}\n\t\t});\n\t//console.log(123)\n\t//if (flags.tmp) console.log(\"\", flags.tmp, Object.keys(flags.tmp))\n}\n//for (var floorId of core.floorIds) core.extractBlocks(floorId);\ncore.redrawMap();\n//console.log(123)\n//console.log(\"\", flags.tmp, Object.keys(flags.tmp))\n\ncore.plugin.initPins();\ncore.plugin.initHiddenItems();\n}"
        },
        {
            "type": "choices",
            "text": "选择难度",
            "choices": [
                {
                    "text": "100%怪物属性，勇者开局1000/10/10",
                    "color": [
                        111,
                        234,
                        171,
                        1
                    ],
                    "action": [
                        {
                            "type": "setValue",
                            "name": "flag:difficulty",
                            "value": "0"
                        },
                        {
                            "type": "setValue",
                            "name": "status:hp",
                            "value": "1000"
                        },
                        {
                            "type": "setValue",
                            "name": "status:atk",
                            "value": "10"
                        },
                        {
                            "type": "setValue",
                            "name": "status:def",
                            "value": "10"
                        }
                    ]
                },
                {
                    "text": "125%怪物属性，勇者开局500/5/5",
                    "color": [
                        252,
                        225,
                        78,
                        1
                    ],
                    "action": [
                        {
                            "type": "setValue",
                            "name": "flag:difficulty",
                            "value": "2.5"
                        },
                        {
                            "type": "setValue",
                            "name": "status:hp",
                            "value": "500"
                        },
                        {
                            "type": "setValue",
                            "name": "status:atk",
                            "value": "5"
                        },
                        {
                            "type": "setValue",
                            "name": "status:def",
                            "value": "5"
                        }
                    ]
                },
                {
                    "text": "150%怪物属性，勇者开局1/0/0",
                    "color": [
                        255,
                        91,
                        91,
                        1
                    ],
                    "action": [
                        {
                            "type": "setValue",
                            "name": "flag:difficulty",
                            "value": "5"
                        }
                    ]
                },
                {
                    "text": "自定义怪物属性，勇者开局1/0/0",
                    "color": [
                        255,
                        91,
                        219,
                        1
                    ],
                    "action": [
                        {
                            "type": "setValue",
                            "name": "flag:input",
                            "value": "0"
                        },
                        {
                            "type": "while",
                            "condition": "((flags.input===0)||(flags.input<151))",
                            "data": [
                                {
                                    "type": "input",
                                    "text": "请输入一个≥151的自然数N，怪物的属性将调整为N%"
                                }
                            ]
                        },
                        "本局游戏为 \r[rgb(255,91,219,1)]\\d${flags.input}%\r\\d 怪物属性",
                        {
                            "type": "setValue",
                            "name": "flag:difficulty",
                            "value": "(flags.input-100)/10"
                        }
                    ]
                }
            ]
        },
        {
            "type": "setEnemyOnPoint",
            "loc": [
                [
                    6,
                    3
                ]
            ],
            "floorId": "MT49",
            "name": "atk",
            "operator": "*=",
            "value": "10"
        },
        {
            "type": "setEnemyOnPoint",
            "loc": [
                [
                    6,
                    3
                ]
            ],
            "floorId": "MT49",
            "name": "def",
            "operator": "*=",
            "value": "10"
        },
        {
            "type": "setEnemyOnPoint",
            "loc": [
                [
                    6,
                    3
                ]
            ],
            "floorId": "MT49",
            "name": "hp",
            "operator": "*=",
            "value": "10"
        }
    ],
    "eachArrive": [],
    "parallelDo": "",
    "events": {
        "5,11": [
            "\\c[14]\r[gold]\\d【MOD规则】\r\\d\n\n①大部分图块分别在自身合集内进行了洗牌（重新排序）：\n绿色合集（绿色怪物）\n黄色合集（黄色怪物、黄门、黄钥匙）\n蓝色合集（蓝色怪物、蓝宝石、蓝药水、蓝门、蓝钥匙、老人、商店）\n红色合集（红色怪物、红宝石、红药水、红门、红钥匙、商人）\n  \r[red]\\d但50层依然打败魔王\r\\d\n黑白合集（黑色怪物、白色怪物）\n特殊道具合集（所有剑盾+特殊道具）\n  \r[red]\\d地震、冰冻徽章随商人和魔龙进入红色合集\r\\d\n\n②\r[orange]\\d隐藏图块（特殊道具除外）\r\\d会\r[orange]\\d随机\r\\d变成自身合集内的图块（非洗牌）",
            "\\c[14]③初始商店、剑盾效果均为\r[orange]\\d一区状态\r\\d，在商店选择升级后（消耗4张凭证），这些\r[lime]\\d效果会提升1次\r\\d\n凭证获取途径：\n\r[gold]\\d>>每次拾取剑、盾后，凭证+1\n>>摧毁商店后，凭证+2\n>>BOSS战（10、20、40、49层）结束后，凭证+1\n>>击杀回收钥匙商人，凭证+2\r\\d\n\n④最终持有的\r[orange]\\d凭证\r\\d可以削弱50层魔王 \r[lime]\\d2%\r\\d 的全属性/张\n\n⑤楼传为\r[orange]\\d超级楼传\r\\d，可以在任意位置传送到0、44、50以外的楼层"
        ]
    },
    "changeFloor": {
        "1,1": {
            "floorId": ":next",
            "stair": "downFloor",
            "time": 0
        }
    },
    "afterBattle": {},
    "afterGetItem": {},
    "afterOpenDoor": {},
    "cannotMove": {},
    "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]
],
    "fgmap": [

],
    "upFloor": [
        2,
        1
    ],
    "downFloor": [
        2,
        1
    ],
    "autoEvent": {},
    "beforeBattle": {},
    "cannotMoveIn": {}
}