| | |
| | | { |
| | | Dictionary<int, int> properties = new Dictionary<int, int>(); |
| | | |
| | | public int this[int id] { get { return properties[id]; } } |
| | | public int this[int id] { get { return properties[id]; } set { properties[id] = value; } } |
| | | |
| | | public List<int> Keys { get { return new List<int>(properties.Keys); } } |
| | | |
| | |
| | | AddRange(config.LegendAttrID, config.LegendAttrValue); |
| | | AddRange(config.OutOfPrintAttr, config.OutOfPrintAttrValue); |
| | | } |
| | | |
| | | public bool ContainsKey(int id)
|
| | | {
|
| | | return properties.ContainsKey(id);
|
| | | } |
| | | |
| | | } |
| | | |
| | | public int GetEquipScore(PackType type, int itemId, Dictionary<int, List<int>> useDataDic = null, bool isPreview = false) |
| | |
| | | return 0; |
| | | } |
| | | |
| | | 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;
|
| | |
|
| | | properties[(int)PropertyType.MinAtk] = minAttack + attack;
|
| | | properties[(int)PropertyType.MaxAtk] = maxAttack + attack; |
| | | |
| | | Equation.Instance.Clear(); |
| | | curEquipAttrDict.Clear(); |
| | | |
| | |
| | | { |
| | | case PropertyType.ATKSPEED: |
| | | case PropertyType.OnlyFinalHurt: |
| | | case PropertyType.PVPAtkBackHP: |
| | | case PropertyType.PVPAtkBackHP:
|
| | | case PropertyType.MinAtk:
|
| | | case PropertyType.MaxAtk: |
| | | curEquipAttrDict.Add(attrType, properties[key]); |
| | | break; |
| | | break;
|
| | | default: |
| | | if (GSProValueDict != null && GSProValueDict.ContainsKey(attrType)) |
| | | { |