|
@@ -109,6 +109,17 @@ namespace GFGGame
|
|
|
}
|
|
|
return itemList;
|
|
|
}
|
|
|
+ public static List<ItemData> CreateItemDataList(int[][] bonus, int num)
|
|
|
+ {
|
|
|
+ List<ItemData> itemList = new List<ItemData>();
|
|
|
+ foreach (int[] item in bonus)
|
|
|
+ {
|
|
|
+ ItemData itemData = createItemData(item[0], item[1] * num);
|
|
|
+ itemList.Add(itemData);
|
|
|
+
|
|
|
+ }
|
|
|
+ return itemList;
|
|
|
+ }
|
|
|
public static List<ItemData> CreateItemDataList(int itemId, int count)
|
|
|
{
|
|
|
List<ItemData> itemList = new List<ItemData>();
|