{

    "ID": 1006,

    "EventTypeTag": [

        "Shop"

    ],

    "Specials": {

        //别动

        "HollowItem":0,

        "hollowitemWeight":10,

        "RandomCard_1": 0,

        "RandomCard_2": 0,

        "RandomCard_3": 0,



        //表格参数

        "odd":50,

        "discount":7000,

        "WeightNormal_B":45,

        "WeightDiscount_B":55,

        "WeightNormal_A":70,

        "WeightDiscount_A":30,

        "WeightNormal_S":85,

        "WeightDiscount_S":15

    },

    "Events": {

        "OnStart": {

            "Actions": [

                {

                    "$type": "Share.CConfigOpenDialog",

                    "OpenEvent": false

                },

                {

                    "$type": "Share.CConfigIf",

                    "OnSuccess": "OnNormalShop",

                    "OnFailure": "OnDarkShop",

                    "Conditions":[

                        {

                            "$type": "Share.CConfigEventByRandom",

                            "Odds": "specials(odd)"

                        }

                    ]

                }

            ]    

        },

        "OnNormalShop":{

            "Actions":[

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"odd",

                    "SpecialValue":100

                },

                {

                    "$type": "Share.CConfigShop",

                    "EmptyMessages":

                    [

                        "Event_1006_Empty"

                    ],

                    "Description": "Event_1006_Normal",

                    "ShopInfo": 

                    [

                        {

                            "ShopType": "Card",

                            "ShowType":"ByGroup",

                            "TokenType": "Coin",

                            "Slot":

                            [

                                {

                                    "ItemType": "Card",

                                    "BuyCount": 1,

                                    "Discount":"specials(discount)",

                                    "Rare":[2],

                                    "Weight": "specials(WeightDiscount_B)",

                                    "Group": 1

                                },

                                {

                                    "ItemType": "Card",

                                    "BuyCount": 1,

                                    "Rare":[2],

                                    "Weight": "specials(WeightNormal_B)",

                                    "Group": 1

                                },



                                {

                                    "ItemType": "Card",

                                    "BuyCount": 1,

                                    "Discount":"specials(discount)",

                                    "Rare":[3],

                                    "Weight": "specials(WeightDiscount_A)",

                                    "Group": 2

                                },

                                {

                                    "ItemType": "Card",

                                    "BuyCount": 1,

                                    "Rare":[3],

                                    "Weight": "specials(WeightNormal_A)",

                                    "Group": 2

                                },



                                {

                                    "ItemType": "Card",

                                    "BuyCount": 1,

                                    "Discount":"specials(discount)",

                                    "Rare":[4],

                                    "Weight": "specials(WeightDiscount_S)",

                                    "Group": 3

                                },

                                {

                                    "ItemType": "Card",

                                    "BuyCount": 1,

                                    "Rare":[4],

                                    "Weight": "specials(WeightNormal_S)",

                                    "Group": 3

                                }

                            ]

                        },

                        {

                            "ShopType": "Gachashop", 

                            "TokenType": "Coin",

                            "Slot":

                            [

                                {   

                                    "ItemID": "207010",

                                    "BuyCount": 1

                                },

                                {

                                    "ItemID": "207011",

                                    "BuyCount": 1

                                },

                                {

                                    "ItemID": "207012",

                                    "BuyCount": 1

                                }

                                // {   

                                //     "ItemID": "1001023",

                                //     "BuyCount": 1

                                // },

                                // {

                                //     "ItemID": "1001024",

                                //     "BuyCount": 1

                                // },

                                // {

                                //     "ItemID": "1001026",

                                //     "BuyCount": 1

                                // }

                            ]

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd"

                }

            ]

        },

        //有暗黑商店

        "OnDarkShop":{

            "Actions":[

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"odd",

                    "SpecialValue":0

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"hollowitemWeight",

                    "SpecialValue":0,

                    "Predicates":

                    [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "HollowItem",

                            "Param":"hollowitem()",

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigShop",

                    "EmptyMessages":

                    [

                        "Event_1006_Empty"

                    ],

                    "Description": "Event_1006_Curse",

                    "ShopInfo": 

                    [

                        {

                            "ShopType": "Gachashop",

                            "TokenType": "Coin",

                            "Slot":

                            [

                                {   

                                    "ItemID": "207010",

                                    "BuyCount": 1

                                },

                                {

                                    "ItemID": "207011",

                                    "BuyCount": 1

                                },

                                {

                                    "ItemID": "207012",

                                    "BuyCount": 1

                                }

                                // {   

                                //     "ItemID": "1001023",

                                //     "BuyCount": 1

                                // },

                                // {

                                //     "ItemID": "1001024",

                                //     "BuyCount": 1

                                // },

                                // {

                                //     "ItemID": "1001026",

                                //     "BuyCount": 1

                                // }

                            ]

                        },

                        {

                            "ShopType": "Curse",

                            "TokenType": "Curse",

                            "Slot":

                            [

                                {

                                    "ItemType": "Card",

                                    "BuyCount": 1,

                                    "Rare":[4],

                                    "Price": 1

                                },

                                {

                                    "ItemType": "Card",

                                    "BuyCount": 1,

                                    "Rare":[4],

                                    "Price": 1

                                },

                                {

                                    "ItemType": "Card",

                                    "BuyCount": 1,

                                    "Rare":[4],

                                    "Price": 1

                                }

                            ]

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd"

                }

            ]

        },

        "OnEnd": {

            "Actions": [

                {

                    "$type": "Share.CConfigCloseDialog"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        }

    }

}

