| | |
| | | MountWin.RedPointMountDan += RedPointMountDan;
|
| | | MountSkillAndItem();
|
| | | MountNumberPreservation();
|
| | | string str = Config.Instance.Get<FuncConfigConfig>("MountSkillEffect").Numerical1;
|
| | | string str = FuncConfigConfig.Get("MountSkillEffect").Numerical1;
|
| | | int[] listeffect = ConfigParse.GetMultipleStr<int>(str);
|
| | | ListEffectSkill.Clear();
|
| | | for (int i = 0; i < listeffect.Length; i++)
|
| | | {
|
| | | ListEffectSkill.Add(listeffect[i]);
|
| | | }
|
| | | string MountRedDotstr = Config.Instance.Get<FuncConfigConfig>("MountPetRedDot").Numerical1;
|
| | | string MountRedDotstr = FuncConfigConfig.Get("MountPetRedDot").Numerical1;
|
| | | DicDefaultMount = ConfigParse.GetDic<int, int>(MountRedDotstr);
|
| | | string HorseUpItem = Config.Instance.Get<FuncConfigConfig>("HorseUpItem").Numerical2;
|
| | | string HorseUpItem = FuncConfigConfig.Get("HorseUpItem").Numerical2;
|
| | | HorseDanExp = int.Parse(HorseUpItem);
|
| | | }
|
| | |
|
| | |
| | | int skillID = config.SkillID[i];
|
| | | if (skillID != 0 && !GetMountSkillAndItem.ContainsKey(skillID))
|
| | | {
|
| | | SkillConfig _skillModel = Config.Instance.Get<SkillConfig>(skillID);
|
| | | SkillConfig _skillModel = SkillConfig.Get(skillID);
|
| | | HorseSkillClass horseSkillClass = new HorseSkillClass();
|
| | | horseSkillClass.SkillID = skillID;
|
| | | horseSkillClass.SkillItem = _skillModel.ExAttr4;
|
| | |
| | | int type = 0;
|
| | | foreach (var key in _DicMountItem.Keys)
|
| | | {
|
| | | var AttrFruit = Config.Instance.Get<AttrFruitConfig>(key);
|
| | | var AttrFruit = AttrFruitConfig.Get(key);
|
| | | if (AttrFruit == null)
|
| | | {
|
| | | continue;
|
| | |
| | | return;
|
| | | }
|
| | | List<int> IntList = new List<int>();
|
| | | FuncConfigConfig _tagfun = Config.Instance.Get<FuncConfigConfig>("HorseUpItem");
|
| | | ItemConfig _tagchine = Config.Instance.Get<ItemConfig>(int.Parse(_tagfun.Numerical1));
|
| | | FuncConfigConfig _tagfun = FuncConfigConfig.Get("HorseUpItem");
|
| | | ItemConfig _tagchine = ItemConfig.Get(int.Parse(_tagfun.Numerical1));
|
| | | int number = playerPack.GetItemCountByID(PackType.rptItem, _tagchine.ID);
|
| | | for (int i = 0; i < SortMount.Count; i++)
|
| | | {
|
| | | int horseID = SortMount[i].HorseID;
|
| | | int MaxLv = Config.Instance.Get<HorseConfig>(horseID).MaxLV;
|
| | | int MaxLv = HorseConfig.Get(horseID).MaxLV;
|
| | | if (_DicHorse.ContainsKey(horseID) && _DicHorse[horseID].Lv < MaxLv)
|
| | | {
|
| | | int _NeedExp = HorseUpConfig.GetHorseIDAndLV(horseID, (_DicHorse[horseID].Lv)).NeedExp;
|
| | |
| | | List<int> IntListSkill = new List<int>();
|
| | | foreach (var key in _DicHorse.Keys)
|
| | | {
|
| | | var mountConfig = Config.Instance.Get<HorseConfig>(key);
|
| | | var mountConfig = HorseConfig.Get(key);
|
| | | if (_DicHorse[key].Lv < mountConfig.MaxLV)
|
| | | {
|
| | | IntListSkill.Add(key);
|
| | |
| | | }
|
| | | foreach (var key in _DicHorse.Keys)//无红点时跳转选中最低阶数且未满级
|
| | | {
|
| | | var mountConfig = Config.Instance.Get<HorseConfig>(key);
|
| | | var mountConfig = HorseConfig.Get(key);
|
| | | if (_DicHorse[key].Lv < MountLV && _DicHorse[key].Lv < mountConfig.MaxLV)
|
| | | {
|
| | | GetMountID = key;
|
| | |
| | | {
|
| | | for (int i = 0; i < info.count; i++)
|
| | | {
|
| | | var configItem = Config.Instance.Get<ItemConfig>((int)info.EatCntList[i].ItemID);
|
| | | var configItem = ItemConfig.Get((int)info.EatCntList[i].ItemID);
|
| | | if (configItem == null)
|
| | | {
|
| | |
|
| | |
| | | {
|
| | | if (_DicMountItem[key] != 0)
|
| | | {
|
| | | ItemConfig itemModel = Config.Instance.Get<ItemConfig>(key);
|
| | | ItemConfig itemModel = ItemConfig.Get(key);
|
| | | if (dic.ContainsKey(itemModel.Effect1))
|
| | | {
|
| | | dic[itemModel.Effect1] += itemModel.EffectValueA1 * _DicMountItem[key];
|
| | |
| | | case HorseEnum.HorseDan:
|
| | | foreach (var key in _DicHorse.Keys)
|
| | | {
|
| | | HorseConfig horseConfig = Config.Instance.Get<HorseConfig>(key);
|
| | | HorseConfig horseConfig = HorseConfig.Get(key);
|
| | | if (horseConfig.MaxLV > _DicHorse[key].Lv)
|
| | | {
|
| | | iSHint = true;
|
| | |
| | | }
|
| | | return iSHint;
|
| | | case HorseEnum.HorseStone:
|
| | | int _maxuse = Config.Instance.Get<AttrFruitConfig>(id).MaxUseCnt;
|
| | | int _maxuse = AttrFruitConfig.Get(id).MaxUseCnt;
|
| | | if (_DicMountItem.ContainsKey(id))
|
| | | {
|
| | | if (_maxuse > _DicMountItem[id])
|
| | |
| | | Dictionary<int, int> mountAttrDict = new Dictionary<int, int>();
|
| | | public Dictionary<int, int> GetMountAttrAddDict(int mountCode)
|
| | | {
|
| | | HorseConfig horseConfig = Config.Instance.Get<HorseConfig>(mountCode);
|
| | | HorseConfig horseConfig = HorseConfig.Get(mountCode);
|
| | | mountAttrDict.Clear();
|
| | | if (horseConfig == null) return mountAttrDict;
|
| | |
|