示例#1
0
 public double ItemRate(DriftBottleItemModel item)
 {
     if (item.Rate == 0)
     {
         return(0);
     }
     return(Math.Round(item.Rate * 1.0 / SumRate * 100, 2));
 }
示例#2
0
        public static int GetItemPrice(DriftBottleItemModel item, long qqNum)
        {
            if (item.Rate == 0)
            {
                return(1);
            }

            var price = item.Price;

            if (OSPersonBuff.CheckBuff(qqNum, "疏雨"))
            {
                price += price * 20 / 100;
            }
            return(price);
        }