main.floors.MT20=
{
    "floorId": "MT20",
    "title": "魔塔 第20层",
    "name": "第 20 层",
    "width": 13,
    "height": 13,
    "map": [
    [  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1],
    [  1,  0,218, 21,  1,  0, 87,  0,  1,218, 81,  0,  1],
    [  1, 22,  0,  1,  1,  0,  0,  0,  1,  0,  1,203,  1],
    [  1,  0,214,  0,  1,  1, 85,  1,  1,  0,  1, 81,  1],
    [  1,  1, 81,213, 83, 83,332,  1,  0, 23,  1,206,  1],
    [  1, 32,214, 81,  1,  1, 83,  1, 82,  1,  1, 81,  1],
    [  1,213,  0,  0,  0,  1, 83,  1,213,  0,  0,  0,  1],
    [  1,  0,  0,  0,203,  1,  0, 81,  0,  1,  1, 21,  1],
    [  1,  1, 85,  1, 81,  1,218, 81,214,  1, 27, 82,  1],
    [  1, 28, 27,  1,206,  0,  0,  0,  0,  1, 28,  1,  1],
    [  1, 28, 27,  1,  0,  0,  0,  0,  1,  1,  1, 21,  1],
    [  1, 28, 27, 32,  1,  0, 88, 85, 32, 32, 21, 21,  1],
    [  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1]
],
    "canFlyTo": true,
    "canFlyFrom": true,
    "canUseQuickShop": true,
    "images": [],
    "ratio": 2,
    "defaultGround": "ground",
    "bgm": "section2.mp3",
    "firstArrive": [
        {
            "type": "setValue",
            "name": "flag:20",
            "value": "0"
        }
    ],
    "eachArrive": [],
    "parallelDo": "",
    "events": {},
    "changeFloor": {
        "6,11": {
            "floorId": ":before",
            "stair": "upFloor",
            "time": 0
        },
        "6,1": {
            "floorId": ":next",
            "stair": "downFloor"
        }
    },
    "afterBattle": {
        "6,4": [
            {
                "type": "openDoor",
                "loc": [
                    2,
                    8
                ]
            },
            {
                "type": "openDoor",
                "loc": [
                    6,
                    3
                ]
            },
            {
                "type": "openDoor",
                "loc": [
                    7,
                    11
                ]
            },
            "\t[兽人队长,E332]你真的这么想去更高的楼层吗？希望你不要后悔。",
            {
                "type": "setValue",
                "name": "flag:gold2",
                "value": "core.status.hero.hp%10 + 1"
            },
            {
                "type": "if",
                "condition": "(flag:gold1 > flag:gold2)",
                "true": [
                    {
                        "type": "setValue",
                        "name": "flag:990",
                        "value": "(flag:gold1 - flag:gold2)%5"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:660",
                        "value": "(flag:gold1*2 - flag:gold2)%5"
                    }
                ],
                "false": [
                    {
                        "type": "setValue",
                        "name": "flag:990",
                        "value": "(flag:gold2 - flag:gold1)%5"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:660",
                        "value": "(flag:gold2*2 - flag:gold1)%5"
                    }
                ]
            },
            {
                "type": "switch",
                "condition": "flag:660",
                "caseList": [
                    {
                        "case": "0",
                        "action": [
                            {
                                "type": "setValue",
                                "name": "flag:13left",
                                "value": "2556"
                            },
                            {
                                "type": "setValue",
                                "name": "flag:13right",
                                "value": "1948"
                            }
                        ]
                    },
                    {
                        "case": "1",
                        "action": [
                            {
                                "type": "setValue",
                                "name": "flag:13left",
                                "value": "1934"
                            },
                            {
                                "type": "setValue",
                                "name": "flag:13right",
                                "value": "2538"
                            }
                        ]
                    },
                    {
                        "case": "2",
                        "action": [
                            {
                                "type": "setValue",
                                "name": "flag:13left",
                                "value": "721"
                            },
                            {
                                "type": "setValue",
                                "name": "flag:13right",
                                "value": "1363"
                            }
                        ]
                    },
                    {
                        "case": "3",
                        "action": [
                            {
                                "type": "setValue",
                                "name": "flag:13left",
                                "value": "1933"
                            },
                            {
                                "type": "setValue",
                                "name": "flag:13right",
                                "value": "1371"
                            }
                        ]
                    },
                    {
                        "case": "4",
                        "action": [
                            {
                                "type": "setValue",
                                "name": "flag:13left",
                                "value": "1283"
                            },
                            {
                                "type": "setValue",
                                "name": "flag:13right",
                                "value": "2597"
                            }
                        ]
                    }
                ]
            },
            {
                "type": "setValue",
                "name": "flag:13slime1",
                "value": "flag:13left"
            },
            {
                "type": "setValue",
                "name": "flag:13slime2",
                "value": "flag:13left"
            },
            {
                "type": "setValue",
                "name": "flag:13slime3",
                "value": "flag:13left"
            },
            {
                "type": "setValue",
                "name": "flag:13slime4",
                "value": "flag:13left"
            },
            {
                "type": "setValue",
                "name": "flag:13slime5",
                "value": "flag:13right"
            },
            {
                "type": "setValue",
                "name": "flag:13slime6",
                "value": "flag:13right"
            },
            {
                "type": "setValue",
                "name": "flag:13slime7",
                "value": "flag:13right"
            },
            {
                "type": "setValue",
                "name": "flag:13slime8",
                "value": "flag:13right"
            },
            {
                "type": "setValue",
                "name": "flag:13slime4",
                "operator": "%=",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:13slime3",
                "operator": "//=",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:13slime3",
                "operator": "%=",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:13slime2",
                "operator": "//=",
                "value": "25"
            },
            {
                "type": "setValue",
                "name": "flag:13slime2",
                "operator": "%=",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:13slime1",
                "operator": "//=",
                "value": "625"
            },
            {
                "type": "setValue",
                "name": "flag:13slime8",
                "operator": "%=",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:13slime7",
                "operator": "//=",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:13slime7",
                "operator": "%=",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:13slime6",
                "operator": "//=",
                "value": "25"
            },
            {
                "type": "setValue",
                "name": "flag:13slime6",
                "operator": "%=",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:13slime5",
                "operator": "//=",
                "value": "625"
            },
            {
                "type": "setValue",
                "name": "flag:13slime1",
                "operator": "+=",
                "value": "200"
            },
            {
                "type": "setValue",
                "name": "flag:13slime2",
                "operator": "+=",
                "value": "200"
            },
            {
                "type": "setValue",
                "name": "flag:13slime3",
                "operator": "+=",
                "value": "200"
            },
            {
                "type": "setValue",
                "name": "flag:13slime4",
                "operator": "+=",
                "value": "200"
            },
            {
                "type": "setValue",
                "name": "flag:13slime5",
                "operator": "+=",
                "value": "200"
            },
            {
                "type": "setValue",
                "name": "flag:13slime6",
                "operator": "+=",
                "value": "200"
            },
            {
                "type": "setValue",
                "name": "flag:13slime7",
                "operator": "+=",
                "value": "200"
            },
            {
                "type": "setValue",
                "name": "flag:13slime8",
                "operator": "+=",
                "value": "200"
            },
            {
                "type": "function",
                "function": "function(){\ncore.setBlock(flags['13slime1'], 6, 5,\"MT21\");\n}"
            },
            {
                "type": "function",
                "function": "function(){\ncore.setBlock(flags['13slime2'], 5, 5,\"MT21\");\n}"
            },
            {
                "type": "function",
                "function": "function(){\ncore.setBlock(flags['13slime3'], 5, 6,\"MT21\");\n}"
            },
            {
                "type": "function",
                "function": "function(){\ncore.setBlock(flags['13slime4'], 5, 7,\"MT21\");\n}"
            },
            {
                "type": "function",
                "function": "function(){\ncore.setBlock(flags['13slime5'], 6, 7,\"MT21\");\n}"
            },
            {
                "type": "function",
                "function": "function(){\ncore.setBlock(flags['13slime6'], 7, 5,\"MT21\");\n}"
            },
            {
                "type": "function",
                "function": "function(){\ncore.setBlock(flags['13slime7'], 7, 6,\"MT21\");\n}"
            },
            {
                "type": "function",
                "function": "function(){\ncore.setBlock(flags['13slime8'], 7, 7,\"MT21\");\n}"
            },
            {
                "type": "setValue",
                "name": "flag:gcy22",
                "value": "0"
            },
            {
                "type": "setValue",
                "name": "flag:gcy42",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:gcy62",
                "value": "2"
            },
            {
                "type": "setValue",
                "name": "flag:gcy82",
                "value": "7"
            },
            {
                "type": "setValue",
                "name": "flag:gcy102",
                "value": "4"
            },
            {
                "type": "setValue",
                "name": "flag:gcy24",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:gcy44",
                "value": "1"
            },
            {
                "type": "setValue",
                "name": "flag:gcy64",
                "value": "3"
            },
            {
                "type": "setValue",
                "name": "flag:gcy84",
                "value": "0"
            },
            {
                "type": "setValue",
                "name": "flag:gcy104",
                "value": "8"
            },
            {
                "type": "setValue",
                "name": "flag:gcy26",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:gcy46",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:gcy66",
                "value": "2"
            },
            {
                "type": "setValue",
                "name": "flag:gcy86",
                "value": "0"
            },
            {
                "type": "setValue",
                "name": "flag:gcy106",
                "value": "4"
            },
            {
                "type": "setValue",
                "name": "flag:gcy28",
                "value": "7"
            },
            {
                "type": "setValue",
                "name": "flag:gcy48",
                "value": "1"
            },
            {
                "type": "setValue",
                "name": "flag:gcy68",
                "value": "3"
            },
            {
                "type": "setValue",
                "name": "flag:gcy88",
                "value": "6"
            },
            {
                "type": "setValue",
                "name": "flag:gcy108",
                "value": "9"
            },
            {
                "type": "setValue",
                "name": "flag:gcy210",
                "value": "7"
            },
            {
                "type": "setValue",
                "name": "flag:gcy410",
                "value": "1"
            },
            {
                "type": "setValue",
                "name": "flag:gcy610",
                "value": "3"
            },
            {
                "type": "setValue",
                "name": "flag:gcy810",
                "value": "5"
            },
            {
                "type": "setValue",
                "name": "flag:gcy1010",
                "value": "8"
            },
            {
                "type": "setValue",
                "name": "flag:gcy7all",
                "value": "0"
            },
            {
                "type": "setValue",
                "name": "flag:991",
                "value": "1"
            },
            {
                "type": "setValue",
                "name": "flag:992",
                "value": "2"
            },
            {
                "type": "setValue",
                "name": "flag:993",
                "value": "3"
            },
            {
                "type": "setValue",
                "name": "flag:994",
                "value": "4"
            },
            {
                "type": "setValue",
                "name": "flag:995",
                "value": "1"
            },
            {
                "type": "setValue",
                "name": "flag:996",
                "value": "2"
            },
            {
                "type": "setValue",
                "name": "flag:997",
                "value": "3"
            },
            {
                "type": "setValue",
                "name": "flag:998",
                "value": "4"
            },
            {
                "type": "function",
                "function": "function(){\nlet variety = （flags['gold1']*1+flags['gold2']*4)%11;\nif(variety > 5){\nlet temp = flags['992'];\nflags['992']=flags['993'];\nflags['993']=temp;\n}\nvariety = （flags['gold1']*2+flags['gold2']*3)%11;\nif(variety > 5){\nlet temp = flags['994'];\nflags['994']=flags['995'];\nflags['995']=temp;\n}\nvariety = （flags['gold1']*3+flags['gold2']*2)%11;\nif(variety > 5){\nlet temp = flags['995'];\nflags['995']=flags['996'];\nflags['996']=temp;\n}\nvariety = （flags['gold1']*4+flags['gold2']*1)%11;\nif(variety > 5){\nlet temp = flags['998'];\nflags['998']=flags['997'];\nflags['997']=temp;\n}\nvariety = （flags['gold1']*flags['gold2'])%11;\nif(variety > 4){\nlet temp = flags['991'];\nflags['991']=flags['998'];\nflags['998']=temp;\n}\n}"
            },
            {
                "type": "if",
                "condition": "(flag:generate2223==0)",
                "true": [
                    {
                        "type": "setValue",
                        "name": "flag:gcy7all",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:generate2223",
                        "value": "1"
                    },
                    {
                        "type": "function",
                        "function": "function(){\ncore.plugin.changeForDiversity();\n}"
                    },
                    {
                        "type": "function",
                        "function": "function(){\nlet arr=[201,202,205,217,209,210,253,215,206,235];\nlet a = arr[flags['gcy22']];\ncore.setBlock(a,2,2,'MT22');\na = arr[flags['gcy42']];\ncore.setBlock(a,4,2,'MT22');\na = arr[flags['gcy62']];\ncore.setBlock(a,6,2,'MT22');\na = arr[flags['gcy82']];\ncore.setBlock(a,8,2,'MT22');\na = arr[flags['gcy102']];\ncore.setBlock(a,10,2,'MT22');\na = arr[flags['gcy24']];\ncore.setBlock(a,2,4,'MT22');\na = arr[flags['gcy44']];\ncore.setBlock(a,4,4,'MT22');\na = arr[flags['gcy64']];\ncore.setBlock(a,6,4,'MT22');\na = arr[flags['gcy84']];\ncore.setBlock(a,8,4,'MT22');\na = arr[flags['gcy104']];\ncore.setBlock(a,10,4,'MT22');\na = arr[flags['gcy26']];\ncore.setBlock(a,2,6,'MT22');\na = arr[flags['gcy46']];\ncore.setBlock(a,4,6,'MT22');\na = arr[flags['gcy66']];\ncore.setBlock(a,6,6,'MT22');\na = arr[flags['gcy86']];\ncore.setBlock(a,8,6,'MT22');\na = arr[flags['gcy106']];\ncore.setBlock(a,10,6,'MT22');\na = arr[flags['gcy28']];\ncore.setBlock(a,2,8,'MT22');\na = arr[flags['gcy48']];\ncore.setBlock(a,4,8,'MT22');\na = arr[flags['gcy68']];\ncore.setBlock(a,6,8,'MT22');\na = arr[flags['gcy88']];\ncore.setBlock(a,8,8,'MT22');\na = arr[flags['gcy108']];\ncore.setBlock(a,10,8,'MT22');\na = arr[flags['gcy210']];\ncore.setBlock(a,2,10,'MT22');\na = arr[flags['gcy410']];\ncore.setBlock(a,4,10,'MT22');\na = arr[flags['gcy610']];\ncore.setBlock(a,6,10,'MT22');\na = arr[flags['gcy810']];\ncore.setBlock(a,8,10,'MT22');\na = arr[flags['gcy1010']];\ncore.setBlock(a,10,10,'MT22');\n}"
                    },
                    {
                        "type": "function",
                        "function": "function(){\nlet arr= core.plugin.solveable(flags['gcy22'],flags['gcy42'],flags['gcy62'],flags['gcy82'],flags['gcy102']);\nif(arr===0){\nflags['gcy7all']+=1;\n}\narr= core.plugin.solveable(flags['gcy24'],flags['gcy44'],flags['gcy64'],flags['gcy84'],flags['gcy104']);\nif(arr===0){\nflags['gcy7all']+=1;\n}\narr= core.plugin.solveable(flags['gcy26'],flags['gcy46'],flags['gcy66'],flags['gcy86'],flags['gcy106']);\nif(arr===0){\nflags['gcy7all']+=1;\n}\narr= core.plugin.solveable(flags['gcy28'],flags['gcy48'],flags['gcy68'],flags['gcy88'],flags['gcy108']);\nif(arr===0){\nflags['gcy7all']+=1;\n}\narr= core.plugin.solveable(flags['gcy210'],flags['gcy410'],flags['gcy610'],flags['gcy810'],flags['gcy1010']);\nif(arr===0){\nflags['gcy7all']+=1;\n}\n}"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:powerAccumulate",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock1Cross1",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock1Cross2",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock1Cross3",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock2Cross1",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock2Cross2",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock2Cross3",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock3Cross1",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock3Cross2",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock3Cross3",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock4Cross1",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock4Cross2",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock4Cross3",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock5Cross1",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock5Cross2",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock5Cross3",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock6Cross1",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock6Cross2",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock6Cross3",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock7Cross1",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock7Cross2",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock7Cross3",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock8Cross1",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock8Cross2",
                        "value": "0"
                    },
                    {
                        "type": "setValue",
                        "name": "flag:lock8Cross3",
                        "value": "0"
                    },
                    {
                        "type": "function",
                        "function": "function(){\ncore.plugin.unique_number_nine();\n}"
                    }
                ]
            }
        ]
    },
    "afterGetItem": {},
    "afterOpenDoor": {
        "5,4": [
            {
                "type": "if",
                "condition": "(flag:persuade == 0)",
                "true": [
                    "\t[兽人队长,E332]我劝你尽快离开魔塔，不要再去更高的楼层了。",
                    {
                        "type": "setValue",
                        "name": "flag:persuade",
                        "value": "1"
                    }
                ]
            }
        ],
        "6,5": [
            {
                "type": "if",
                "condition": "(flag:persuade == 0)",
                "true": [
                    "\t[兽人队长,E332]我劝你尽快离开魔塔，不要再去更高的楼层了。",
                    {
                        "type": "setValue",
                        "name": "flag:persuade",
                        "value": "1"
                    }
                ]
            }
        ]
    },
    "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]
],
    "downFloor": [
        6,
        10
    ],
    "upFloor": [
        6,
        2
    ],
    "autoEvent": {},
    "beforeBattle": {},
    "cannotMoveIn": {}
}