| | |
| | | |
| | | public partial class HeroQualityBreakConfig : ConfigBase<int, HeroQualityBreakConfig> |
| | | { |
| | | // public int Quality; |
| | | // public int BreakLV; |
| | | |
| | | // Quality, Dictionary<BreakLV, HeroQualityBreakConfig> |
| | | public static Dictionary<int, Dictionary<int, HeroQualityBreakConfig>> configDics = new Dictionary<int, Dictionary<int, HeroQualityBreakConfig>>(); |
| | | |
| | | public static Dictionary<int, int> maxlvDic = new Dictionary<int, int>(); |
| | | protected override void OnConfigParseCompleted() |
| | | { |
| | | base.OnConfigParseCompleted(); |
| | |
| | | configDics.Add(Quality, tempDic); |
| | | } |
| | | |
| | | if (tempDic.ContainsKey(BreakLV)) |
| | | tempDic[BreakLV] = this; |
| | | if (!maxlvDic.ContainsKey(LVMax) || LVMax > maxlvDic[Quality]) |
| | | { |
| | | tempDic[BreakLV] = this; |
| | | maxlvDic[Quality] = LVMax; |
| | | } |
| | | else |
| | | { |
| | | tempDic.Add(BreakLV, this); |
| | | } |
| | | |
| | | } |
| | | |
| | | public static HeroQualityBreakConfig GetQualityBreakConfig(int quality, int breakLv) |