Beispiel #1
0
        //排序十连抽奖励表内容
        public List <AwardList> TenRollStatementSort(Worksheet ws)
        {
            int nRows = GetRowNumFromItemId(ws);
            List <AwardList> Statement = new List <AwardList>(nRows);

            for (int i = 1; i <= nRows; i++)
            {
                AwardList al = new AwardList();
                al.ALI.ItemId = Convert.ToInt32(ws.Cells[i + 1, 6].ToString());                  //物品id
                al.ALI.IsBind = Convert.ToInt32(CharBindConvert(ws.Cells[i + 1, 3].ToString())); //绑定
                al.ALI.Count  = Convert.ToInt32(ws.Cells[i + 1, 5].ToString());                  //数量
                al.ALI.Chance = Convert.ToInt32(ws.Cells[i + 1, 7]) * 10000;                     //概率
                //播报
                //全服产出

                Statement.Add(al);
            }

            return(Statement);
        }
Beispiel #2
0
 public AwardListPropertyDescriptor(AwardList prop, Attribute[] attrs, int Count) : base(Count.ToString(), attrs)
 {
     ali = prop.ALI;
 }