游戏狂人
 
- 贡献度
- 31
- 金元
- 12915
- 积分
- 1416
- 精华
- 0
- 注册时间
- 2011-4-1
|
必掉改这里ItemSupplier.LotDropItem
private static List<string> LotDropItem(MmItemSupplier.Param supplier, int dropCount)
{
List<string> result = new List<string>();
List<MmItemSupplier.ItemLot> list = new List<MmItemSupplier.ItemLot>();
foreach (MmItemSupplier.ItemLot itemLot in supplier.ItemLots)
{
if (itemLot.LotRate > 0f)
{
list.Add(itemLot);
}
else
{
ItemSupplier.AddId(ref result, itemLot.ItemId);
}
}
int num = 0;
for (int i = 0; i < list.Count; i++)
{
num += (int)list[i].LotRate;
}
for (int j = 0; j < list.Count; j++)
{
ItemSupplier.AddId(ref result, list[j].ItemId);
}
return result;
} |
|