| | |
| | |
|
| | | public partial class ItemPlusMaxConfig : IConfigPostProcess
|
| | | {
|
| | | private static Dictionary<string, ItemPlusMaxConfig> t_ItemPM = new Dictionary<string, ItemPlusMaxConfig>();
|
| | | private static Dictionary<int, ItemPlusMaxConfig> t_ItemPM = new Dictionary<int, ItemPlusMaxConfig>();
|
| | |
|
| | | private static Dictionary<int, int> m_ItemPlusMaxLvDict = new Dictionary<int, int>();
|
| | |
|
| | | public void OnConfigParseCompleted()
|
| | | {
|
| | | t_ItemPM.Add(StringUtility.Contact(EquipType, equipStar).ToString(), this);
|
| | | var key = EquipType * 100 + equipStar;
|
| | | t_ItemPM[key] = this;
|
| | | }
|
| | |
|
| | | public static ItemPlusMaxConfig GetEquipTypeAndEquipStar(int equipType, int equipStar)//获取强化类型,装备星数
|
| | | {
|
| | | var key = equipType * 100 + equipStar;
|
| | | ItemPlusMaxConfig itemPMax = null;
|
| | | t_ItemPM.TryGetValue(StringUtility.Contact(equipType, equipStar).ToString(), out itemPMax);
|
| | | t_ItemPM.TryGetValue(key, out itemPMax);
|
| | | return itemPMax;
|
| | | }
|
| | |
|