| | |
| | | return properties;
|
| | | }
|
| | |
|
| | | private Dictionary<int, int> GetEquipShenProperties(int itemId)
|
| | | {
|
| | | var shenProperties = ShenPropertyUtility.GetEquipShenProperties(itemId);
|
| | | var properties = new Dictionary<int, int>();
|
| | | if (shenProperties != null)
|
| | | {
|
| | | foreach (var item in shenProperties)
|
| | | {
|
| | | properties[item.x] = item.y;
|
| | | }
|
| | | }
|
| | |
|
| | | return properties;
|
| | | }
|
| | |
|
| | | public bool IsCustomItem(int itemId)
|
| | | {
|
| | | if (!ItemConfig.Has(itemId))
|
| | |
| | | return 0;
|
| | | }
|
| | |
|
| | | properties.AddRange(GetEquipShenProperties(itemId));
|
| | |
|
| | | var minAttack = properties.ContainsKey((int)PropertyType.MinAtk) ? properties[(int)PropertyType.MinAtk] : 0;
|
| | | var maxAttack = properties.ContainsKey((int)PropertyType.MaxAtk) ? properties[(int)PropertyType.MaxAtk] : 0;
|
| | | var attack = properties.ContainsKey((int)PropertyType.ATK) ? properties[(int)PropertyType.ATK] : 0;
|