1using System.Collections.Generic;
6 public static Dictionary<string, SpawnList>
allList =
new Dictionary<string, SpawnList>();
12 public List<CardRow>
rows =
new List<CardRow>();
21 if (spawnList !=
null)
45 bool flag = row.type ==
"chara";
47 cardFilter.isChara = flag;
48 cardFilter.strTag = row.
tag;
49 cardFilter.strFilter = row.
filter;
50 cardFilter.filterCategory = row.
category;
51 cardFilter.idCard = row.
idCard;
69 List<CardRow> list = (parent.IsEmpty() ? EClass.sources.cards.rows :
Get(parent).
rows);
70 for (
int i = 0; i < list.Count; i++)
81 foreach (
string key
in idCard)
92 tempList.totalChance = 0;
94 for (
int i = 0; i <
rows.Count; i++)
104 for (
int j = 0; j < mainElement.Length; j++)
106 string[] array = mainElement[j].Split(
'/');
108 if (Mathf.Abs(cardRow.
LV * row.
eleP / 100 - lv) < levelRange)
119 else if (Mathf.Abs(cardRow.
LV - lv) >= levelRange)
124 else if (cardRow.
LV > lv)
129 tempList.totalChance += cardRow.
chance;
133 Debug.Log(
"list contains no item: " +
id +
"/" + lv);
143 if (levelRange != -1)
145 for (
int i = 0; i < 50; i++)
148 if (spawnList.
rows.Count > 5)
150 return spawnList.
Select();
160 for (
int j = 0; j < 100; j++)
163 if (cardRow !=
null && cardRow.
Category.IsChildOf(r))
184 Debug.Log(
"no item:" +
id);
187 Debug.Log(tag.name +
"/" + tag.exclude);
List< SourceCategory.Row > categoriesInclude
bool Pass(CardRow source)
static SourceManager sources
SourceCategory.Row Category
Dictionary< string, CardRow > map
SourceSpawnList spawnLists
SpawnList Filter(int lv, int levelRange=-1)
static SpawnList Get(string id, string parent=null, CardFilter filter=null)
CardRow Select(int lv=-1, int levelRange=-1)
void CreateMaster(CardFilter _filter, string parent=null)
static SpawnList tempList
static Dictionary< string, SpawnList > allList
SpawnList(string id=null)