main.floors.MT12=
{
    "floorId": "MT12",
    "title": "魔塔 第12层",
    "name": "第 12 层",
    "width": 13,
    "height": 13,
    "map": [
    [  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1],
    [  1,122,  3,  0,332, 21, 27, 21,332,  0,  3,  3,  1],
    [  1,  1,  1,206,  1,  0,  1,  0,  1,  0,  1,  1,  1],
    [  1,  0,  0,  0,  1,218,  0,218,  1,  0,213,  0,  1],
    [  1,332,  1,  1,  1,  1, 81,  1,  1,  1,  1,332,  1],
    [  1,  0,218,  0, 81,  0,213,  0,  1, 31,  0,206,  1],
    [  1,  1,  1,  1,  1,  0,  0,218, 81,  0, 28,  0,  1],
    [  1, 21, 21,  0,  1,  0, 32,  0,  1, 21,  0,203,  1],
    [  1,332, 22,  0,  1,  1,  1,  1,  1, 82,  1,130,  1],
    [  1,  0,  0,213,  1,  7,131,  8,  1,203,  0,213,  1],
    [  1,  1,  1, 81,  1, 31,  0, 31,  1,  1,  0,  1,  1],
    [  1, 87,  0,  0,332,  0,  0,  0,332,  0,  0, 88,  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": [],
    "eachArrive": [],
    "parallelDo": "",
    "events": {
        "11,1": {
            "trigger": "action",
            "enable": true,
            "noPass": null,
            "displayDamage": true,
            "opacity": 1,
            "filter": {
                "blur": 0,
                "hue": 0,
                "grayscale": 0,
                "invert": false,
                "shadow": 0
            },
            "data": [
                {
                    "type": "while",
                    "condition": "true",
                    "data": [
                        {
                            "type": "if",
                            "condition": "switch:A",
                            "true": [
                                {
                                    "type": "choices",
                                    "text": "\t[商人,woman]本店有很多黄钥匙，101金币1把要吗？",
                                    "choices": [
                                        {
                                            "text": "我太需要了",
                                            "action": [
                                                {
                                                    "type": "if",
                                                    "condition": "(status:money>=101)",
                                                    "true": [
                                                        {
                                                            "type": "setValue",
                                                            "name": "status:money",
                                                            "operator": "-=",
                                                            "value": "101"
                                                        },
                                                        {
                                                            "type": "setValue",
                                                            "name": "item:yellowKey",
                                                            "operator": "+=",
                                                            "value": "1"
                                                        }
                                                    ],
                                                    "false": [
                                                        {
                                                            "type": "tip",
                                                            "text": "你的金币不足101枚，无法交易！"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "text": "下次再说",
                                            "action": [
                                                {
                                                    "type": "exit"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ],
                            "false": [
                                {
                                    "type": "playSound",
                                    "name": "开关门"
                                },
                                {
                                    "type": "openDoor"
                                },
                                {
                                    "type": "setBlock",
                                    "number": "fairy"
                                },
                                {
                                    "type": "setValue",
                                    "name": "switch:A",
                                    "value": "true"
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "6,9": [
            {
                "type": "setValue",
                "name": "flag:ratio",
                "value": "2"
            },
            {
                "type": "setValue",
                "name": "flag:shopratio",
                "value": "Math.max(core.getFlag('shopratio', 1), core.getFlag('ratio', 1))"
            },
            {
                "type": "insert",
                "name": "商店"
            }
        ],
        "4,1": [
            {
                "type": "if",
                "condition": "(core.status.hero.hp>core.values.redPotion * core.status.thisMap.ratio)",
                "true": [
                    {
                        "type": "hide",
                        "loc": [
                            [
                                4,
                                1
                            ],
                            [
                                1,
                                4
                            ]
                        ],
                        "remove": true
                    },
                    {
                        "type": "setBlock",
                        "number": "A333",
                        "loc": [
                            [
                                4,
                                2
                            ],
                            [
                                4,
                                3
                            ],
                            [
                                4,
                                4
                            ],
                            [
                                3,
                                4
                            ],
                            [
                                2,
                                4
                            ]
                        ],
                        "destruct": true,
                        "time": 50
                    },
                    {
                        "type": "function",
                        "function": "function(){\ncore.status.hero.hp -= core.values.redPotion * core.status.thisMap.ratio\n}"
                    },
                    {
                        "type": "tip",
                        "text": "失去 ${core.values.redPotion * core.status.thisMap.ratio} 点生命"
                    }
                ],
                "false": [
                    {
                        "type": "tip",
                        "text": "你的生命不足"
                    }
                ]
            }
        ],
        "1,4": [
            {
                "type": "if",
                "condition": "(core.status.hero.hp>core.values.redPotion * core.status.thisMap.ratio)",
                "true": [
                    {
                        "type": "hide",
                        "loc": [
                            [
                                4,
                                1
                            ],
                            [
                                1,
                                4
                            ]
                        ],
                        "remove": true
                    },
                    {
                        "type": "setBlock",
                        "number": "A333",
                        "loc": [
                            [
                                4,
                                2
                            ],
                            [
                                4,
                                3
                            ],
                            [
                                4,
                                4
                            ],
                            [
                                3,
                                4
                            ],
                            [
                                2,
                                4
                            ]
                        ],
                        "destruct": true,
                        "time": 50
                    },
                    {
                        "type": "function",
                        "function": "function(){\ncore.status.hero.hp -= core.values.redPotion * core.status.thisMap.ratio\n}"
                    },
                    {
                        "type": "tip",
                        "text": "失去 ${core.values.redPotion * core.status.thisMap.ratio} 点生命"
                    }
                ],
                "false": [
                    {
                        "type": "tip",
                        "text": "你的生命不足"
                    }
                ]
            }
        ],
        "1,8": [
            {
                "type": "if",
                "condition": "(core.status.hero.hp>core.values.redPotion * core.status.thisMap.ratio)",
                "true": [
                    {
                        "type": "hide",
                        "loc": [
                            [
                                1,
                                8
                            ],
                            [
                                4,
                                11
                            ]
                        ],
                        "remove": true
                    },
                    {
                        "type": "setBlock",
                        "number": "A333",
                        "loc": [
                            [
                                2,
                                8
                            ],
                            [
                                3,
                                8
                            ],
                            [
                                4,
                                8
                            ],
                            [
                                4,
                                9
                            ],
                            [
                                4,
                                10
                            ]
                        ],
                        "destruct": true,
                        "time": 50
                    },
                    {
                        "type": "function",
                        "function": "function(){\ncore.status.hero.hp -= core.values.redPotion * core.status.thisMap.ratio\n}"
                    },
                    {
                        "type": "tip",
                        "text": "失去 ${core.values.redPotion * core.status.thisMap.ratio} 点生命"
                    }
                ],
                "false": [
                    {
                        "type": "tip",
                        "text": "你的生命不足"
                    }
                ]
            }
        ],
        "4,11": [
            {
                "type": "if",
                "condition": "(core.status.hero.hp>core.values.redPotion * core.status.thisMap.ratio)",
                "true": [
                    {
                        "type": "hide",
                        "loc": [
                            [
                                4,
                                11
                            ]
                        ],
                        "remove": true
                    },
                    {
                        "type": "setBlock",
                        "number": "A333",
                        "loc": [
                            [
                                3,
                                8
                            ],
                            [
                                4,
                                8
                            ],
                            [
                                4,
                                9
                            ],
                            [
                                4,
                                10
                            ]
                        ],
                        "destruct": true,
                        "time": 50
                    },
                    {
                        "type": "if",
                        "condition": "flag:难度",
                        "true": [
                            {
                                "type": "hide",
                                "loc": [
                                    [
                                        1,
                                        8
                                    ]
                                ],
                                "remove": true
                            },
                            {
                                "type": "setBlock",
                                "number": "A333",
                                "loc": [
                                    [
                                        2,
                                        8
                                    ]
                                ],
                                "destruct": true,
                                "time": 50
                            }
                        ]
                    },
                    {
                        "type": "function",
                        "function": "function(){\ncore.status.hero.hp -= core.values.redPotion * core.status.thisMap.ratio\n}"
                    },
                    {
                        "type": "tip",
                        "text": "失去 ${core.values.redPotion * core.status.thisMap.ratio} 点生命"
                    }
                ],
                "false": [
                    {
                        "type": "tip",
                        "text": "你的生命不足"
                    }
                ]
            }
        ],
        "8,11": [
            {
                "type": "if",
                "condition": "(core.status.hero.hp>core.values.redPotion * core.status.thisMap.ratio)",
                "true": [
                    {
                        "type": "hide",
                        "loc": [
                            [
                                11,
                                8
                            ],
                            [
                                8,
                                11
                            ]
                        ],
                        "remove": true
                    },
                    {
                        "type": "setBlock",
                        "number": "A333",
                        "loc": [
                            [
                                8,
                                10
                            ],
                            [
                                8,
                                9
                            ],
                            [
                                8,
                                8
                            ],
                            [
                                9,
                                8
                            ],
                            [
                                10,
                                8
                            ]
                        ],
                        "destruct": true,
                        "time": 50
                    },
                    {
                        "type": "function",
                        "function": "function(){\ncore.status.hero.hp -= core.values.redPotion * core.status.thisMap.ratio\n}"
                    },
                    {
                        "type": "tip",
                        "text": "失去 ${core.values.redPotion * core.status.thisMap.ratio} 点生命"
                    }
                ],
                "false": [
                    {
                        "type": "tip",
                        "text": "你的生命不足"
                    }
                ]
            }
        ],
        "11,8": [
            {
                "type": "if",
                "condition": "(core.status.hero.hp>core.values.redPotion * core.status.thisMap.ratio)",
                "true": [
                    {
                        "type": "hide",
                        "loc": [
                            [
                                11,
                                8
                            ],
                            [
                                8,
                                11
                            ]
                        ],
                        "remove": true
                    },
                    {
                        "type": "setBlock",
                        "number": "A333",
                        "loc": [
                            [
                                8,
                                10
                            ],
                            [
                                8,
                                9
                            ],
                            [
                                8,
                                8
                            ],
                            [
                                9,
                                8
                            ],
                            [
                                10,
                                8
                            ]
                        ],
                        "destruct": true,
                        "time": 50
                    },
                    {
                        "type": "function",
                        "function": "function(){\ncore.status.hero.hp -= core.values.redPotion * core.status.thisMap.ratio\n}"
                    },
                    {
                        "type": "tip",
                        "text": "失去 ${core.values.redPotion * core.status.thisMap.ratio} 点生命"
                    }
                ],
                "false": [
                    {
                        "type": "tip",
                        "text": "你的生命不足"
                    }
                ]
            }
        ],
        "11,4": [
            {
                "type": "if",
                "condition": "(core.status.hero.hp>core.values.redPotion * core.status.thisMap.ratio)",
                "true": [
                    {
                        "type": "hide",
                        "loc": [
                            [
                                8,
                                1
                            ],
                            [
                                11,
                                4
                            ]
                        ],
                        "remove": true
                    },
                    {
                        "type": "setBlock",
                        "number": "A333",
                        "loc": [
                            [
                                8,
                                2
                            ],
                            [
                                8,
                                3
                            ],
                            [
                                8,
                                4
                            ],
                            [
                                9,
                                4
                            ],
                            [
                                10,
                                4
                            ]
                        ],
                        "destruct": true,
                        "time": 50
                    },
                    {
                        "type": "function",
                        "function": "function(){\ncore.status.hero.hp -= core.values.redPotion * core.status.thisMap.ratio\n}"
                    },
                    {
                        "type": "tip",
                        "text": "失去 ${core.values.redPotion * core.status.thisMap.ratio} 点生命"
                    }
                ],
                "false": [
                    {
                        "type": "tip",
                        "text": "你的生命不足"
                    }
                ]
            }
        ],
        "8,1": [
            {
                "type": "if",
                "condition": "(core.status.hero.hp>core.values.redPotion * core.status.thisMap.ratio)",
                "true": [
                    {
                        "type": "hide",
                        "loc": [
                            [
                                8,
                                1
                            ],
                            [
                                11,
                                4
                            ]
                        ],
                        "remove": true
                    },
                    {
                        "type": "setBlock",
                        "number": "A333",
                        "loc": [
                            [
                                8,
                                2
                            ],
                            [
                                8,
                                3
                            ],
                            [
                                8,
                                4
                            ],
                            [
                                9,
                                4
                            ],
                            [
                                10,
                                4
                            ]
                        ],
                        "destruct": true,
                        "time": 50
                    },
                    {
                        "type": "function",
                        "function": "function(){\ncore.status.hero.hp -= core.values.redPotion * core.status.thisMap.ratio\n}"
                    },
                    {
                        "type": "tip",
                        "text": "失去 ${core.values.redPotion * core.status.thisMap.ratio} 点生命"
                    }
                ],
                "false": [
                    {
                        "type": "tip",
                        "text": "你的生命不足"
                    }
                ]
            }
        ]
    },
    "changeFloor": {
        "1,11": {
            "floorId": ":next",
            "stair": "downFloor",
            "time": 0
        },
        "11,11": {
            "floorId": ":before",
            "stair": "upFloor",
            "time": 0
        }
    },
    "afterBattle": {},
    "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": [
        2,
        11
    ],
    "downFloor": [
        10,
        11
    ],
    "autoEvent": {},
    "beforeBattle": {},
    "cannotMoveIn": {}
}