main.floors.MT21=
{
    "floorId": "MT21",
    "title": "第 21 层",
    "name": "第 21 层",
    "width": 13,
    "height": 13,
    "canFlyTo": false,
    "canUseQuickShop": false,
    "cannotViewMap": false,
    "images": [],
    "ratio": 1,
    "defaultGround": "ground",
    "firstArrive": [],
    "eachArrive": [],
    "parallelDo": "",
    "events": {},
    "changeFloor": {
        "6,8": {
            "floorId": ":before",
            "stair": "upFloor"
        },
        "6,1": {
            "floorId": ":next",
            "stair": "downFloor"
        }
    },
    "afterBattle": {
        "6,2": [
            "\t[冥灵魔王,vampire]啊……\n怎么可能，我怎么可能会被你打败呢！",
            {
                "type": "playSound",
                "name": "dialogue.mp3"
            },
            "\t[冥灵魔王,vampire]不，不要这样…………",
            {
                "type": "function",
                "function": "function(){\ncore.setEnemy('redKing', 'hp', 30000);\ncore.setEnemy('redKing', 'atk', 2666);\ncore.setEnemy('redKing', 'def', 2666);\ncore.setEnemy('redKing', 'money', 166);\ncore.setEnemy('redKing', 'exp', 166);\n\ncore.setEnemy('darkKnight', 'hp', 2400);\ncore.setEnemy('darkKnight', 'atk', 2612);\ncore.setEnemy('darkKnight', 'def', 2400);\ncore.setEnemy('darkKnight', 'money', 146);\ncore.setEnemy('darkKnight', 'exp', 125);\n\ncore.setEnemy('ghostSkeleton', 'hp', 4999);\ncore.setEnemy('ghostSkeleton', 'atk', 2400);\ncore.setEnemy('ghostSkeleton', 'def', 2266);\ncore.setEnemy('ghostSkeleton', 'money', 140);\ncore.setEnemy('ghostSkeleton', 'exp', 125);\n\ncore.setEnemy('blackMagician', 'hp', 3000);\ncore.setEnemy('blackMagician', 'atk', 2212);\ncore.setEnemy('blackMagician', 'def', 1946);\ncore.setEnemy('blackMagician', 'money', 132);\ncore.setEnemy('blackMagician', 'exp', 116);\n\ncore.setEnemy('vampire', 'hp', 60000);\ncore.setEnemy('vampire', 'atk', 3400);\ncore.setEnemy('vampire', 'def', 3000);\ncore.setEnemy('vampire', 'money', 390);\ncore.setEnemy('vampire', 'exp', 343);\n}"
            },
            {
                "type": "playSound",
                "name": "dialogue.mp3"
            },
            {
                "type": "if",
                "condition": "flag:开启暴击",
                "true": [
                    {
                        "type": "choices",
                        "text": "\t[作者,king]提交成绩？",
                        "choices": [
                            {
                                "text": "我太需要了",
                                "action": [
                                    {
                                        "type": "comment",
                                        "text": "=== 步骤1：初始化结局名前缀（根据模式） ==="
                                    },
                                    {
                                        "type": "switch",
                                        "condition": "flag:模式",
                                        "caseList": [
                                            {
                                                "case": "1",
                                                "action": [
                                                    {
                                                        "type": "setValue",
                                                        "name": "flag:结局名",
                                                        "value": "\"一次暴击\""
                                                    }
                                                ]
                                            },
                                            {
                                                "case": "2",
                                                "action": [
                                                    {
                                                        "type": "setValue",
                                                        "name": "flag:结局名",
                                                        "value": "\"期望暴击\""
                                                    }
                                                ]
                                            },
                                            {
                                                "case": "3",
                                                "action": [
                                                    {
                                                        "type": "setValue",
                                                        "name": "flag:结局名",
                                                        "value": "\"次次暴击\""
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "comment",
                                        "text": "=== 步骤2：拼接中缀（是否开战） ==="
                                    },
                                    {
                                        "type": "if",
                                        "condition": "flag:开战",
                                        "true": [
                                            {
                                                "type": "setValue",
                                                "name": "flag:结局名",
                                                "operator": "+=",
                                                "value": "\"开战版\""
                                            }
                                        ],
                                        "false": [
                                            {
                                                "type": "setValue",
                                                "name": "flag:结局名",
                                                "operator": "+=",
                                                "value": "\"不开战版\""
                                            }
                                        ]
                                    },
                                    {
                                        "type": "comment",
                                        "text": "=== 步骤3：拼接后缀（处理特殊结局逻辑） ==="
                                    },
                                    {
                                        "type": "setValue",
                                        "name": "flag:结局名",
                                        "operator": "+=",
                                        "value": "\"（击败冥灵）\""
                                    },
                                    {
                                        "type": "comment",
                                        "text": "=== 步骤4：选择计分方式（提交榜单类型并追加后缀） ==="
                                    },
                                    {
                                        "type": "while",
                                        "condition": "true",
                                        "data": [
                                            {
                                                "type": "choices",
                                                "text": "\t[恭喜通关,king]当前模式：${flag:结局名}\n请选择要提交的榜单成绩类型：",
                                                "choices": [
                                                    {
                                                        "text": "生命值",
                                                        "action": [
                                                            {
                                                                "type": "setValue",
                                                                "name": "flag:结局名",
                                                                "operator": "+=",
                                                                "value": "\"（最高生命）\""
                                                            },
                                                            {
                                                                "type": "break",
                                                                "n": 1
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "攻防和",
                                                        "action": [
                                                            {
                                                                "type": "setValue",
                                                                "name": "flag:结局名",
                                                                "operator": "+=",
                                                                "value": "\"（最高攻防和）\""
                                                            },
                                                            {
                                                                "type": "setValue",
                                                                "name": "status:hp",
                                                                "value": "status:atk + status:def",
                                                                "norefresh": true
                                                            },
                                                            {
                                                                "type": "break",
                                                                "n": 1
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "type": "comment",
                                        "text": "=== 步骤5：触发结局 ==="
                                    },
                                    {
                                        "type": "win",
                                        "reason": "${flag:结局名}"
                                    }
                                ]
                            },
                            {
                                "text": "继续游戏",
                                "action": [
                                    {
                                        "type": "setBlock",
                                        "number": "upFloor",
                                        "loc": [
                                            [
                                                6,
                                                1
                                            ]
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "false": [
                    {
                        "type": "if",
                        "condition": "flag:22",
                        "true": [
                            {
                                "type": "setBlock",
                                "number": "upFloor",
                                "loc": [
                                    [
                                        6,
                                        1
                                    ]
                                ]
                            }
                        ],
                        "false": [
                            {
                                "type": "setValue",
                                "name": "status:hp",
                                "value": "flag:时间",
                                "norefresh": true
                            },
                            {
                                "type": "win",
                                "reason": "计时版通关（21层结局）"
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "afterGetItem": {},
    "afterOpenDoor": {},
    "cannotMove": {},
    "map": [
    [  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3],
    [  3,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  3],
    [  3,  4,  4,  0,  0,  4,208,  4,  0,  0,  4,  4,  3],
    [  3,  4,  0,  0,  4,  4,247,  4,  4,  0,  0,  4,  3],
    [  3,  4,  0,  0,  0,  4,247,  4,  0,  0,  0,  4,  3],
    [  3,  4,  4,  0,  0,  0,  0,  0,  0,  0,  4,  4,  3],
    [  3,  4,  4,  0,  0,  0,  0,  0,  0,  0,  4,  4,  3],
    [  3,  4,  4,  4,  0,  0,  4,  0,  0,  4,  4,  4,  3],
    [  3,  4,  4,  4,  4, 86, 88, 86,  4,  4,  4,  4,  3],
    [  3,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  3],
    [  3,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  3],
    [  3,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  3],
    [  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3]
],
    "bgmap": [

],
    "fgmap": [

],
    "bgm": "startText.mp3",
    "downFloor": [
        6,
        6
    ],
    "upFloor": [
        6,
        3
    ],
    "beforeBattle": {},
    "cannotMoveIn": {},
    "autoEvent": {}
}