import { WeChat } from "../Share/share";
import { GameTool } from "../Tool/GameTool";


const { ccclass, property } = cc._decorator;
@ccclass('GameConfig')
export class GameConfig  {
    //所有控制信息都通过GameAppStart内控制
    private static _instance : GameConfig = null;
    //用于盛放埋点数据上传，每次上传后清空
    static CLICK_DATA: {
        type: number; //上传数据类型
        success: boolean; //此局游戏正确与否
        round: number; //回合数
        choice: number; //玩家选择，0：时间截止前未做选择，1，2，3：三个按钮从上到下依次对应
        rightChoice: number; //本轮的按正确答案，含义与choice相同
        item: string; //此关展示的物品
        roundType: number; //展示方式。1：图像 2：音频
        stepTime: number; //玩家每一关用时毫秒数  音频关卡从播放结束开始计时
        levelConfig: number; //使用的是哪一套关卡配置
        ignite: boolean; //玩家此轮有没有点火
        igniteCount: number; //玩家总计成功点火数
    };
    static GAME_DATA: any[];
    //关卡数据
    static LEVEL_INFO: {
        custom: {
            id: number; //植物ID
            item: string; //植物名稱
            type: number; //種類1为头像2是音频
            flammable: number; //是否有柴火
        }[];
    }[];
    static GM_INFO: {
        // isEnd: false,
        mean_Time: number; //平均放箭速度
        total: number; //总共对的个数
        currSeed: number; //用于随机数种子
        gameId: string; //游戏ID
        userId: number; //用户ID
        scode: string,  //用户code,从网页后缀获取
        guide: boolean; //是否有引导
        url: string; //访问域名
        success: boolean; //用户游戏成功与否
        matchId: any; //用于埋点上传的ID
        custom: number; //用于测试跳关卡
        level: number; //具体游戏内进行到第几步 
        stepTimeList: number; //整局游戏用时，由于涉及场景切换，数据需要保留
        successList: any[]; //整局胜负
        gameTime: number;   //单次游戏倒计时时间
        igniteCount: number; //玩家总计成功点火数
     
    };
    //游戏内信息



    static get Instance()
    {
        if (this._instance == null)
        {
            this._instance = new GameConfig();
        }
        return this._instance;
    }
    //getSeedRandom
    static init(Authentication){
        this.CLICK_init();
        this.LEVEL_INFO_init();
        this.GM_INFO_init();
        var self = this;
        cc.resources.load('Json/CLICK_DATA', (err: any, res: cc.JsonAsset) => {
            if (err) {
                return;
            }
            let jsonData: object = res.json!;
            self.CLICK_DATA = jsonData["data"];
        })
        cc.resources.load('Json/LEVEL_INFO', (err: any, res: cc.JsonAsset) => {
            if (err) {
                return;
            }
            let jsonData: object = res.json!;
            self.LEVEL_INFO = jsonData["data"];
            self.Change_Level();
        })
        cc.resources.load('Json/GM_INFO', (err: any, res: cc.JsonAsset) => {
            if (err) {
                if(!Authentication) self.Authentication();
                return;
            }
           
            let jsonData: object = res.json!;
            self.GM_INFO = jsonData["data"];
            self.setCode(self.getKey("scode"));
            cc.fx.GameTool.getCustom(false);
            if(!Authentication) self.Authentication();
        })

        //GAME_DATA 废弃了，暂时不删除以防后面修改回 一整局传一次
        self.GAME_DATA = [
        ]
    }
    
    //数据备用
    static GM_INFO_init() {
        this.GM_INFO = {
            // isEnd: false,
            mean_Time: 0,               //平均放箭速度
            total: 0,                   //总共对的个数
            currSeed: 200000,           //用于随机数种子
            gameId: "100014",           //游戏ID
            userId: 200139,             //用户ID
            scode: "",                  //用户code,从网页后缀获取
            guide: true,                 //是否有引导
            url: "https://api.sparkus.cn",//访问域名
            success: false,             //用户游戏成功与否
            matchId: null,              //用于埋点上传的ID
            custom: 0,                  //用于测试跳关卡
            level: 0,                    //具体游戏内进行到第几步 
            stepTimeList:0,             //整局游戏用时，由于涉及场景切换，数据需要保留
            successList:[],              //整局胜负
            gameTime:8,
            igniteCount: 0,             //玩家总计成功点火数
        };
        this.setCode(this.getKey("scode"));
    }
    static GM_INFO_SET(key,value) {

        this.GM_INFO[key] = value;
    }
    static CLICK_init() {
        this.CLICK_DATA =
        {
            type: 1,            //上传数据类型
            success: false,     //此局游戏正确与否
            round: 0,           //回合数
            choice: 0,          //玩家选择，0：时间截止前未做选择，1，2，3：三个按钮从上到下依次对应
            rightChoice: 0,     //本轮的按正确答案，含义与choice相同
            item: "",           //此关展示的物品
            roundType: 0,       //展示方式。1：图像 2：音频
            stepTime: 0,        //玩家每一关用时毫秒数  音频关卡从播放结束开始计时
            levelConfig: 0,     //使用的是哪一套关卡配置
            ignite: false,      //玩家此轮有没有点火
            igniteCount: 0,             //玩家总计成功点火数
        }
    }

    static CLICK_SET(key,value) {
        this.CLICK_DATA[key] = value;
    }

    static LEVEL_INFO_init() {
        this.LEVEL_INFO = [
            {
                "custom": [
                    {
                        "id": 1000,
                        "item": "danshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1001,
                        "item": "danggui",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1002,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1003,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1004,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1005,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1006,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1007,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1008,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1009,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1010,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1011,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1012,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1013,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1014,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1015,
                        "item": "muchai",
                        "type": 1,
                        "flammable": 1
                    },
                    {
                        "id": 1016,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1017,
                        "item": "renshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1018,
                        "item": "jinju",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1019,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1020,
                        "item": "gouqi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1021,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1022,
                        "item": "pugongying",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1023,
                        "item": "lizhi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1024,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1025,
                        "item": "chixiaodou",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1026,
                        "item": "dazao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1027,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1028,
                        "item": "pugongying",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1029,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1030,
                        "item": "ganjiang",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1031,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1032,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1033,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1034,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1035,
                        "item": "muchai",
                        "type": 2,
                        "flammable": 1
                    },
                    {
                        "id": 1036,
                        "item": "ganjiang",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1037,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1038,
                        "item": "dazao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 1039,
                        "item": "lizhi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 1040,
                        "item": "renshen",
                        "type": 2,
                        "flammable": 0
                    }
                ]
            },
            {
                "custom": [
                    {
                        "id": 2000,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2001,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2002,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2003,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2004,
                        "item": "muchai",
                        "type": 1,
                        "flammable": 1
                    },
                    {
                        "id": 2005,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2006,
                        "item": "renshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2007,
                        "item": "jinju",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2008,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2009,
                        "item": "gouqi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2010,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2011,
                        "item": "pugongying",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2012,
                        "item": "lizhi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2013,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2014,
                        "item": "chixiaodou",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2015,
                        "item": "dazao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2016,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2017,
                        "item": "pugongying",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2018,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2019,
                        "item": "ganjiang",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2020,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2021,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2022,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2023,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2024,
                        "item": "muchai",
                        "type": 2,
                        "flammable": 1
                    },
                    {
                        "id": 2025,
                        "item": "ganjiang",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2026,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2027,
                        "item": "dazao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2028,
                        "item": "lizhi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2029,
                        "item": "renshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2030,
                        "item": "danshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2031,
                        "item": "danggui",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2032,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2033,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2034,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2035,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2036,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2037,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 2038,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2039,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 2040,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    }
                ]
            },
            {
                "custom": [
                    {
                        "id": 3000,
                        "item": "danggui",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3001,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3002,
                        "item": "pugongying",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3003,
                        "item": "danggui",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3004,
                        "item": "taozi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3005,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3006,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3007,
                        "item": "taozi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3008,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3009,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3010,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3011,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3012,
                        "item": "ganjiang",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3013,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3014,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3015,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3016,
                        "item": "taozi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3017,
                        "item": "muchai",
                        "type": 1,
                        "flammable": 1
                    },
                    {
                        "id": 3018,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3019,
                        "item": "danshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3020,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3021,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3022,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3023,
                        "item": "taozi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3024,
                        "item": "putao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3025,
                        "item": "gouqi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3026,
                        "item": "chixiaodou",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3027,
                        "item": "muchai",
                        "type": 1,
                        "flammable": 1
                    },
                    {
                        "id": 3028,
                        "item": "jinju",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3029,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3030,
                        "item": "renshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3031,
                        "item": "baishao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3032,
                        "item": "danshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3033,
                        "item": "jingjie",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3034,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3035,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3036,
                        "item": "gouqi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3037,
                        "item": "ganjiang",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3038,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 3039,
                        "item": "jingjie",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 3040,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    }
                ]
            },
            {
                "custom": [
                    {
                        "id": 4000,
                        "item": "baishao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4001,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4002,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4003,
                        "item": "jinju",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4004,
                        "item": "dazao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4005,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4006,
                        "item": "baishao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4007,
                        "item": "ganjiang",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4008,
                        "item": "taozi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4009,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4010,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4011,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4012,
                        "item": "zhuye",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4013,
                        "item": "muchai",
                        "type": 1,
                        "flammable": 1
                    },
                    {
                        "id": 4014,
                        "item": "gouqi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4015,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4016,
                        "item": "danggui",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4017,
                        "item": "chixiaodou",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4018,
                        "item": "baishao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4019,
                        "item": "jingjie",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4020,
                        "item": "jinju",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4021,
                        "item": "gouqi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4022,
                        "item": "pugongying",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4023,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4024,
                        "item": "moli",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4025,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4026,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4027,
                        "item": "gouqi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4028,
                        "item": "jingjie",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4029,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4030,
                        "item": "pugongying",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4031,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4032,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4033,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4034,
                        "item": "muchai",
                        "type": 2,
                        "flammable": 1
                    },
                    {
                        "id": 4035,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4036,
                        "item": "ganjiang",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4037,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4038,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 4039,
                        "item": "pugongying",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 4040,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    }
                ]
            },
            {
                "custom": [
                    {
                        "id": 5000,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5001,
                        "item": "pugongying",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5002,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5003,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5004,
                        "item": "longyan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5005,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5006,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5007,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5008,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5009,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5010,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5011,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5012,
                        "item": "gouqi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5013,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5014,
                        "item": "chixiaodou",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5015,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5016,
                        "item": "muchai",
                        "type": 2,
                        "flammable": 1
                    },
                    {
                        "id": 5017,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5018,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5019,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5020,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5021,
                        "item": "baishao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5022,
                        "item": "danggui",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5023,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5024,
                        "item": "chixiaodou",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5025,
                        "item": "dazao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5026,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5027,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5028,
                        "item": "danshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5029,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5030,
                        "item": "baishao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5031,
                        "item": "muchai",
                        "type": 2,
                        "flammable": 1
                    },
                    {
                        "id": 5032,
                        "item": "jinju",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5033,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5034,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5035,
                        "item": "pugongying",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5036,
                        "item": "danshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5037,
                        "item": "gouqi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5038,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 5039,
                        "item": "jingjie",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 5040,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    }
                ]
            },
            {
                "custom": [
                    {
                        "id": 6000,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6001,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6002,
                        "item": "gouqi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6003,
                        "item": "renshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6004,
                        "item": "dazao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6005,
                        "item": "chixiaodou",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6006,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6007,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6008,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6009,
                        "item": "danshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6010,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6011,
                        "item": "baishao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6012,
                        "item": "muchai",
                        "type": 1,
                        "flammable": 1
                    },
                    {
                        "id": 6013,
                        "item": "jinju",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6014,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6015,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6016,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6017,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6018,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6019,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6020,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6021,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6022,
                        "item": "gouqi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6023,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6024,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6025,
                        "item": "jinjie",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6026,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6027,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6028,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6029,
                        "item": "jinju",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6030,
                        "item": "muchai",
                        "type": 2,
                        "flammable": 1
                    },
                    {
                        "id": 6031,
                        "item": "baishao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6032,
                        "item": "chixiaodou",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6033,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6034,
                        "item": "danshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6035,
                        "item": "gouqi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6036,
                        "item": "zhuye",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 6037,
                        "item": "taozi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6038,
                        "item": "putao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6039,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 6040,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    }
                ]
            },
            {
                "custom": [
                    {
                        "id": 7000,
                        "item": "chixiaodou",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7001,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7002,
                        "item": "danshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7003,
                        "item": "gouqi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7004,
                        "item": "zhuye",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7005,
                        "item": "taozi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7006,
                        "item": "putao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7007,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7008,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7009,
                        "item": "putao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7010,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7011,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7012,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7013,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7014,
                        "item": "jinju",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7015,
                        "item": "muchai",
                        "type": 2,
                        "flammable": 1
                    },
                    {
                        "id": 7016,
                        "item": "baishao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7017,
                        "item": "chixiaodou",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7018,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7019,
                        "item": "pugongying",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7020,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7021,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7022,
                        "item": "gouqi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7023,
                        "item": "renshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7024,
                        "item": "dazao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7025,
                        "item": "chixiaodou",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7026,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7027,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7028,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7029,
                        "item": "danshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7030,
                        "item": "baishao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7031,
                        "item": "ganjiang",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7032,
                        "item": "taozi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7033,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7034,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 7035,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7036,
                        "item": "zhuye",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7037,
                        "item": "muchai",
                        "type": 1,
                        "flammable": 1
                    },
                    {
                        "id": 7038,
                        "item": "jingjie",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7039,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 7040,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    }
                ]
            },
            {
                "custom": [
                    {
                        "id": 8000,
                        "item": "chixiaodou",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8001,
                        "item": "moli",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8002,
                        "item": "danshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8003,
                        "item": "gouqi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8004,
                        "item": "zhuye",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8005,
                        "item": "taozi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8006,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8007,
                        "item": "longyan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8008,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8009,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8010,
                        "item": "renshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8011,
                        "item": "baishao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8012,
                        "item": "muchai",
                        "type": 1,
                        "flammable": 1
                    },
                    {
                        "id": 8013,
                        "item": "jinju",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8014,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8015,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8016,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8017,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8018,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8019,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8020,
                        "item": "pugongying",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8021,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8022,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8023,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8024,
                        "item": "dazao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8025,
                        "item": "gouqi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8026,
                        "item": "jingjie",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8027,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8028,
                        "item": "pugongying",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8029,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8030,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8031,
                        "item": "taozi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8032,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8033,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8034,
                        "item": "muchai",
                        "type": 1,
                        "flammable": 1
                    },
                    {
                        "id": 8035,
                        "item": "moli",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8036,
                        "item": "pugongying",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8037,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8038,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 8039,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 8040,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    }
                ]
            },
            {
                "custom": [
                    {
                        "id": 9000,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9001,
                        "item": "taozi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9002,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9003,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9004,
                        "item": "danshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9005,
                        "item": "moli",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9006,
                        "item": "pugongying",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9007,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9008,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9009,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9010,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9011,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9012,
                        "item": "danggui",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9013,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9014,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9015,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9016,
                        "item": "jinju",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9017,
                        "item": "pugongying",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9018,
                        "item": "chixiaodou",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9019,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9020,
                        "item": "jingjie",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9021,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9022,
                        "item": "gouqi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9023,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9024,
                        "item": "muchai",
                        "type": 2,
                        "flammable": 1
                    },
                    {
                        "id": 9025,
                        "item": "ganjiang",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9026,
                        "item": "moli",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9027,
                        "item": "dazao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9028,
                        "item": "danshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9029,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9030,
                        "item": "gouqi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9031,
                        "item": "muchai",
                        "type": 1,
                        "flammable": 1
                    },
                    {
                        "id": 9032,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9033,
                        "item": "ganjiang",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9034,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9035,
                        "item": "lizhi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9036,
                        "item": "danggui",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9037,
                        "item": "gouqi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 9038,
                        "item": "cha",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9039,
                        "item": "dazao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 9040,
                        "item": "danggui",
                        "type": 1,
                        "flammable": 0
                    }
                ]
            },
            {
                "custom": [
                    {
                        "id": 10000,
                        "item": "gouqi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10001,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10002,
                        "item": "ganjiang",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10003,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10004,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10005,
                        "item": "danggui",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10006,
                        "item": "gouqi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10007,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10008,
                        "item": "dazao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10009,
                        "item": "danggui",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10010,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10011,
                        "item": "longyan",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10012,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10013,
                        "item": "putao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10014,
                        "item": "renshen",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10015,
                        "item": "baishao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10016,
                        "item": "danshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10017,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10018,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10019,
                        "item": "lizi",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10020,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10021,
                        "item": "danggui",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10022,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10023,
                        "item": "muchai",
                        "type": 2,
                        "flammable": 1
                    },
                    {
                        "id": 10024,
                        "item": "gancao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10025,
                        "item": "mudan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10026,
                        "item": "zhuye",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10027,
                        "item": "danshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10028,
                        "item": "renshen",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10029,
                        "item": "danggui",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10030,
                        "item": "baishao",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10031,
                        "item": "muchai",
                        "type": 2,
                        "flammable": 1
                    },
                    {
                        "id": 10032,
                        "item": "ganjiang",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10033,
                        "item": "putao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10034,
                        "item": "cha",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10035,
                        "item": "mulan",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10036,
                        "item": "danggui",
                        "type": 2,
                        "flammable": 0
                    },
                    {
                        "id": 10037,
                        "item": "taozi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10038,
                        "item": "lizhi",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10039,
                        "item": "putao",
                        "type": 1,
                        "flammable": 0
                    },
                    {
                        "id": 10040,
                        "item": "gouqi",
                        "type": 2,
                        "flammable": 0
                    }
                ]
            }
        ]
        
    }
    //根據简易版本修改关卡信息
    static Change_Level() {
        for(let i=0; i<this.LEVEL_INFO.length;i++){
            for(let j=0; j<this.LEVEL_INFO[i].custom.length; j++){
                if(this.LEVEL_INFO[i].custom[j].item == "muchai"){
                    this.LEVEL_INFO[i].custom.splice(j,1);
                    j--;
                }
            }
        }
    }

    static setCode(code){
        this.GM_INFO.scode = code;
    }
    
    static getKey(key){
        var reg = new RegExp('(^|&)' + key + '=([^&]*)(&|$)', 'i');
        var r = window.location.search.substr(1).match(reg);
        if (r != null) {
            return unescape(r[2]);
        }
        return "";
    }

    static Authentication(){
        cc.fx.GameTool.Authentication();
    }
}

