main.floors.MT50=
{
    "floorId": "MT50",
    "title": "魔塔 第50层",
    "name": "第 50 层",
    "width": 13,
    "height": 13,
    "map": [
    [  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4],
    [  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4],
    [  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4],
    [  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4],
    [  4,  4,  4,  4,  1,  1,  1,  1,  1,  4,  4,  4,  4],
    [  4,  4,  4,  4,  1,  0,249,  0,  1,  4,  4,  4,  4],
    [  4,  4,  4,  4,  1,  0,  0,  0,  1,  4,  4,  4,  4],
    [  4,  4,  4,  4,  1,  0,  0,  0,  1,  4,  4,  4,  4],
    [  4,  4,  4,  4,  1,  1,  1,  1,  1,  4,  4,  4,  4],
    [  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4],
    [  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4],
    [  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4],
    [  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4]
],
    "canFlyTo": false,
    "canFlyFrom": false,
    "canUseQuickShop": true,
    "images": [],
    "ratio": 5,
    "defaultGround": "ground",
    "bgm": null,
    "firstArrive": [
        "\t[redKing]嚯嚯，不打算逃跑反而还向我走过来了吗？",
        "\t[勇者,child]接下来要打倒你，连一秒钟都不用！"
    ],
    "eachArrive": [],
    "parallelDo": "",
    "events": {
        "6,5": [
            "\t[hero]你怎会在这里！你到底是谁？",
            "\t[小偷,thief]我在这里只有一个理由，那就是…",
            {
                "type": "hide",
                "time": 500
            },
            {
                "type": "setBlock",
                "number": "249"
            },
            {
                "type": "show",
                "time": 500
            },
            "\t[hero]啊！你就是魔王！你怎么还活着？",
            "\t[redKing]我是不会死的。以前我只是对你的能力做测试而已。",
            "\t[hero]什么？你这是什么意思？你为什么要做这样的事情？",
            "\t[redKing]神圣剑 是你拥有的武器，智慧权杖 是我所拥有的武器。传说中说过无论谁使用它们都必需要有足够的智慧，且剑只能被真正的战士使用。",
            "\t[hero]如你所说我就是那个战士",
            "\t[redKing]是的，你是最合适的人选。但你刚到魔塔时，你的能力还不足以支配神圣剑。因此我在塔内安排了各类机关，让你通过战斗直到可以控制神圣剑。",
            "\t[hero]很好，那么外面传说有一个公主被困在魔塔，就是为了把我骗到这里。是这样的吗？",
            "\t[redKing]是的。现在如果我们能够合作那么闹剧就结束了。现在让我们一起用权杖破坏神圣剑，这样伟大的时代就要降临了。",
            "\t[hero]我不会让你毁了神圣剑, 让黑暗降临的。"
        ]
    },
    "changeFloor": {},
    "afterBattle": {
        "6,5": [
            {
                "type": "if",
                "condition": "(!flags.redKing2)",
                "true": [
                    {
                        "type": "setValue",
                        "name": "flag:redKing2",
                        "value": "true"
                    },
                    {
                        "type": "moveHero",
                        "steps": [
                            "backward:1"
                        ]
                    },
                    "\t[魔王,redKing]你果然是个合格的勇士！",
                    "\t[魔王,redKing]来当我的走狗吧！你就是下一个骑士队长！",
                    {
                        "type": "choices",
                        "text": "\t[魔王,redKing]是否投靠魔王",
                        "choices": [
                            {
                                "text": "果断反对",
                                "action": [
                                    {
                                        "type": "show",
                                        "loc": [
                                            [
                                                6,
                                                5
                                            ]
                                        ]
                                    },
                                    {
                                        "type": "setBlock",
                                        "number": "redKing",
                                        "loc": [
                                            [
                                                6,
                                                5
                                            ]
                                        ]
                                    },
                                    "\t[魔王,redKing]偷偷点否，折磨队友？",
                                    {
                                        "type": "function",
                                        "function": "function(){\ncore.setFlag('495',false);\n}"
                                    },
                                    {
                                        "type": "if",
                                        "condition": "flags.harddddd",
                                        "true": [
                                            {
                                                "type": "function",
                                                "function": "function(){\ncore.material.enemys.redKing.hp = 80000; \t\tcore.material.enemys.redKing.atk = 50000; \t\tcore.material.enemys.redKing.def = 10000;\n}"
                                            }
                                        ],
                                        "false": [
                                            {
                                                "type": "function",
                                                "function": "function(){\ncore.material.enemys.redKing.hp = 8000; \t\tcore.material.enemys.redKing.atk = 5000; \t\tcore.material.enemys.redKing.def = 1000;\n}"
                                            }
                                        ]
                                    },
                                    "\t[魔王,redKing]让你看看我真正实力！",
                                    "\t[勇者,child]混蛋！不要小看我们之间的羁绊啊！",
                                    "\t[魔王,redKing]什么！这熟悉的台词！",
                                    {
                                        "type": "function",
                                        "function": "function(){\ncore.myFiveRedKing();\n}"
                                    }
                                ]
                            },
                            {
                                "text": "坚决投降",
                                "condition": "flags.turn2==0",
                                "action": [
                                    "\t[勇者,child]那么答案只有一个了！",
                                    "\t[勇者,child]我要向您宣誓效忠！",
                                    "\t[魔王,redKing]桀桀桀桀桀桀桀桀桀桀！",
                                    {
                                        "type": "function",
                                        "function": "function(){\nhero.hp=flags.Allstatus[0].hp+flags.mark\n}"
                                    },
                                    {
                                        "type": "choices",
                                        "text": "\t[妖精,fairy]直接提交还是查看结局？",
                                        "choices": [
                                            {
                                                "text": "直接提交",
                                                "action": [
                                                    {
                                                        "type": "win",
                                                        "reason": "投降"
                                                    }
                                                ]
                                            },
                                            {
                                                "text": "查看结局",
                                                "action": [
                                                    "\t[妖精,fairy]作者偷懒没有做。",
                                                    {
                                                        "type": "win",
                                                        "reason": "投降"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "false": [
                    {
                        "type": "setCurtain",
                        "color": [
                            111,
                            111,
                            111,
                            1
                        ],
                        "time": 0,
                        "keep": true
                    },
                    {
                        "type": "function",
                        "function": "function(){\nfor(var x=1;x<=11;x++)for(var y=1;y<=11;y++){core.addPop(32 * x - 32, 32 * y - 32, core.getBlockId(x, y));}\n}"
                    },
                    {
                        "type": "function",
                        "function": "function(){\nfor(var x=5;x<=7;x++)for(var y=5;y<=7;y++){core.addPop(32 * x - 32, 32 * y - 32,'ground');}\n}"
                    },
                    {
                        "type": "function",
                        "function": "function(){\nfor (var i in flags.Allstatus){core.addPop(32 * flags.Allstatus[i].x - 32, 32 * flags.Allstatus[i].y - 32,flags.Allstatus[i].name);}\n}"
                    },
                    {
                        "type": "function",
                        "function": "function(){\n{core.addPop(32 * 6 - 32, 32 * 5 - 32,'redKing');}\n}"
                    },
                    "\t[勇者,child]……结束了吗？",
                    "\t[妖精,fairy]恭喜你！",
                    "\t[勇者,child]呼……总算是……",
                    {
                        "type": "if",
                        "condition": "flags.harddddd",
                        "true": [
                            "\t[妖精,fairy]通过了普通难度！",
                            "\t[勇者,child]……",
                            {
                                "type": "function",
                                "function": "function(){\nhero.hp=flags.Allstatus[0].hp+flags.mark\n}"
                            },
                            {
                                "type": "function",
                                "function": "function(){\nhero.hp*=(flags.super_hp+1)\n}"
                            },
                            {
                                "type": "win",
                                "reason": "普通胜利"
                            }
                        ],
                        "false": [
                            "\t[妖精,fairy]通过了新手教程！",
                            "\t[勇者,child]……",
                            {
                                "type": "choices",
                                "text": "\t[妖精,fairy]提交成绩还是进入下周目？",
                                "choices": [
                                    {
                                        "text": "提交成绩",
                                        "action": [
                                            {
                                                "type": "function",
                                                "function": "function(){\nhero.hp=flags.Allstatus[0].hp+flags.Allstatus[1].hp+flags.Allstatus[2].hp+flags.Allstatus[3].hp+flags.Allstatus[4].hp+flags.Allstatus[5].hp+flags.mark\n}"
                                            },
                                            {
                                                "type": "function",
                                                "function": "function(){\nhero.hp*=(flags.super_hp+1)\n}"
                                            },
                                            {
                                                "type": "function",
                                                "function": "function(){\nhero.hp+=flags.allMark\n}"
                                            },
                                            {
                                                "type": "function",
                                                "function": "function(){\nhero.atk=1\n}"
                                            },
                                            {
                                                "type": "function",
                                                "function": "function(){\nhero.def=1\n}"
                                            },
                                            {
                                                "type": "if",
                                                "condition": "(flags.turn2>0)",
                                                "true": [
                                                    {
                                                        "type": "if",
                                                        "condition": "(hero.hp<=Math.pow(2,63))",
                                                        "true": [
                                                            {
                                                                "type": "win",
                                                                "reason": "多周目胜利"
                                                            }
                                                        ],
                                                        "false": [
                                                            {
                                                                "type": "function",
                                                                "function": "function(){\nhero.hp=Math.ceil(Math.log10(hero.hp))\n}"
                                                            },
                                                            {
                                                                "type": "win",
                                                                "reason": "限界突破"
                                                            }
                                                        ]
                                                    }
                                                ],
                                                "false": [
                                                    {
                                                        "type": "win",
                                                        "reason": "暂时胜利"
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "下一周目",
                                        "action": [
                                            {
                                                "type": "if",
                                                "condition": "(flags.turn2>0)",
                                                "true": [
                                                    {
                                                        "type": "function",
                                                        "function": "function(){\nflags.allMark+=(flags.Allstatus[0].hp+flags.Allstatus[1].hp+flags.Allstatus[2].hp+flags.Allstatus[3].hp+flags.Allstatus[4].hp+flags.Allstatus[5].hp+flags.mark)*(flags.super_hp+1)\n}"
                                                    }
                                                ],
                                                "false": [
                                                    {
                                                        "type": "function",
                                                        "function": "function(){\nflags.allMark+=(flags.Allstatus[0].hp+flags.mark)*(flags.super_hp+1)\n}"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "insert",
                                                "name": "二周目"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "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": [

],
    "autoEvent": {},
    "beforeBattle": {},
    "cannotMoveIn": {}
}