| | |
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | |
|
| | | public partial class ItemConfig : IConfigPostProcess
|
| | | public partial class ItemConfig
|
| | | {
|
| | | private static Dictionary<int, ItemConfig> m_GemCfgs = new Dictionary<int, ItemConfig>();
|
| | | private const int GEM_TYPE_VALUE = 225;
|
| | |
|
| | | public void OnConfigParseCompleted()
|
| | | public static void GemItemInit()
|
| | | {
|
| | | switch (Type)
|
| | | GemItemConfig.Init(true);
|
| | | var keys = GemItemConfig.GetKeys();
|
| | | foreach (var key in keys)
|
| | | {
|
| | | case 25:
|
| | | case 140:
|
| | | if (Effect1 == GEM_TYPE_VALUE)
|
| | | {
|
| | | m_GemCfgs.Add(EffectValueB1 * 1000 + EffectValueA1, this);
|
| | | }
|
| | | break;
|
| | | default:
|
| | | break;
|
| | | var config = ItemConfig.Get(key);
|
| | | m_GemCfgs.Add(config.EffectValueB1 * 1000 + config.EffectValueA1, config);
|
| | | }
|
| | | }
|
| | |
|