| | |
| | | new Dictionary<int, List<GodWeaponEffectProperty>>();
|
| | | Dictionary<int, Dictionary<int, int>> effectFightPower = new Dictionary<int, Dictionary<int, int>>();
|
| | | Dictionary<int, int> godWeaponEffectEquipDict = new Dictionary<int, int>();
|
| | | Dictionary<int, List<GodWeaponEffectInfo>> godWeaponEffectInfos = new Dictionary<int, List<GodWeaponEffectInfo>>();
|
| | | int[] autoHammerExpArea { get; set; }
|
| | | int[] autoHammerCount { get; set; }
|
| | |
|
| | |
| | | {
|
| | | godWeaponEffectTypes.Add(config.type);
|
| | | }
|
| | |
|
| | | List<GodWeaponEffectInfo> effectInfos;
|
| | | if (!godWeaponEffectInfos.TryGetValue(config.type, out effectInfos))
|
| | | {
|
| | | effectInfos = new List<GodWeaponEffectInfo>();
|
| | | godWeaponEffectInfos.Add(config.type, effectInfos);
|
| | | }
|
| | | Dictionary<int, string> skillIconDict = new Dictionary<int, string>();
|
| | | var iconJson = LitJson.JsonMapper.ToObject(config.icon);
|
| | | foreach (var key in iconJson.Keys)
|
| | | {
|
| | | var job = int.Parse(key);
|
| | | skillIconDict.Add(job, iconJson[key].ToString());
|
| | | }
|
| | | effectInfos.Add(new GodWeaponEffectInfo()
|
| | | {
|
| | | level = config.level,
|
| | | skillIconDict = skillIconDict,
|
| | | });
|
| | | }
|
| | |
|
| | | funcConfig = Config.Instance.Get<FuncConfigConfig>("MagicExterior");
|
| | |
| | | return displaySkillLevels;
|
| | | }
|
| | |
|
| | | public string GetEffectSkillIcon(int type, int level)
|
| | | {
|
| | | var job = PlayerDatas.Instance.baseData.Job;
|
| | | if (godWeaponEffectInfos.ContainsKey(type))
|
| | | {
|
| | | var list = godWeaponEffectInfos[type];
|
| | | var index = list.FindIndex((x) =>
|
| | | {
|
| | | return x.level == level;
|
| | | });
|
| | | if (index != -1)
|
| | | {
|
| | | if (list[index].skillIconDict.ContainsKey(job))
|
| | | {
|
| | | return list[index].skillIconDict[job];
|
| | | }
|
| | | }
|
| | | }
|
| | | return string.Empty;
|
| | | }
|
| | |
|
| | | void CheckGodWeaponEffectOn()
|
| | | {
|
| | | var value = PlayerDatas.Instance.baseData.equipShowSwitch;
|
| | |
| | | public int level;
|
| | | public Dictionary<int, int> propertyDict;
|
| | | }
|
| | |
|
| | | public struct GodWeaponEffectInfo
|
| | | {
|
| | | public int level;
|
| | | public Dictionary<int, string> skillIconDict;
|
| | | }
|
| | | }
|
| | |
|