| | |
| | | public int MountStoneItemId = 0;
|
| | | public bool IsOk = false;
|
| | | public bool IsRedPointSingleFeed = true;
|
| | | public List<int> ListEffectSkill = new List<int>();
|
| | | public List<int> ListEffectSkill = new List<int>();
|
| | | PlayerPackModel _playerPack;
|
| | | PlayerPackModel playerPack
|
| | | {
|
| | |
| | | public bool Wait = true;//等待回包(使用坐骑丹)
|
| | | public static Action<int, bool> MultipleEvent;
|
| | | public static event Action PlayerLoginOKData;
|
| | | private Dictionary<int, int> DicDefaultMount = new Dictionary<int, int>();
|
| | | public override void Init()
|
| | | { |
| | | ToAddSorting(); |
| | | {
|
| | | ToAddSorting();
|
| | | playerPack.RefreshItemCountAct += OnItemRefreshEvent;
|
| | | MountWin.RedPointMountDan += RedPointMountDan;
|
| | | MountSkillAndItem();
|
| | |
| | | {
|
| | | ListEffectSkill.Add(listeffect[i]);
|
| | | }
|
| | | string MountRedDotstr = Config.Instance.Get<FuncConfigConfig>("MountPetRedDot").Numerical1;
|
| | | DicDefaultMount = ConfigParse.GetDic<int, int>(MountRedDotstr);
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | |
| | | foreach (var index in singPack.GetPackModelIndexDict().Keys)
|
| | | {
|
| | | OnItemRefreshEvent(singPack.packType, index, singPack.GetPackModelIndexDict()[index].itemId);
|
| | | } |
| | | }
|
| | | if (PlayerLoginOKData != null)
|
| | | {
|
| | | PlayerLoginOKData();
|
| | |
| | |
|
| | | int GetMountID = 0;
|
| | | int GetMountLv = 0;
|
| | |
|
| | | for (int i = 0; i < SortMount.Count; i++)
|
| | | {
|
| | | int horseID = SortMount[i].HorseID;
|
| | |
| | | ItemConfig _tagchine = Config.Instance.Get<ItemConfig>(int.Parse(_tagfun.Numerical1));
|
| | | HorseConfig horsecon = Config.Instance.Get<HorseConfig>(GetMountID);
|
| | | int number = playerPack.GetItemCountByID(PackType.rptItem, _tagchine.ID);
|
| | | foreach (var key in _DicHorse.Keys)//因为有成就任务限制所有 第一只坐骑红点逻辑特殊写
|
| | | {
|
| | | if (DicDefaultMount.ContainsKey(key) && DicDefaultMount[key] > _DicHorse[key].Lv
|
| | | && number > 0 && ASingleFeedRedPoint.ContainsKey(key))
|
| | | {
|
| | | ASingleFeedRedPoint[key].state = RedPointState.Simple;
|
| | | return;
|
| | | }
|
| | |
|
| | | }
|
| | | if (ASingleFeedRedPoint.ContainsKey(GetMountID) && number > 0 && GetMountLv < horsecon.MaxLV)
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.LV >= 1500)
|
| | |
| | | ASingleFeedRedPoint[GetMountID].state = RedPointState.Simple;
|
| | | return;
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | int SkillLv = 0;
|
| | | foreach (var key in GetMountSkillAndItem.Keys)
|
| | | {
|
| | | if (GetMountSkillAndItem[key].HorseID == MountId) |
| | | if (GetMountSkillAndItem[key].HorseID == MountId)
|
| | | {
|
| | | if (GetMountSkillAndItem[key].HorseLV > SkillLv)
|
| | | {
|
| | |
| | | Type = 2;
|
| | | return Type;
|
| | | }
|
| | | } |
| | | }
|
| | | if (MainRedDot.Instance.redPointMountFunc.state == RedPointState.Simple)
|
| | | {
|
| | | Type = 1;
|
| | |
| | |
|
| | | int maxRank = horseConfig.MaxLV;
|
| | | HorseUpConfig cost = HorseUpConfig.GetHorseIDAndLV(mountCode, maxRank);
|
| | | if(cost != null)
|
| | | if (cost != null)
|
| | | {
|
| | | int[] attrIds = ConfigParse.GetMultipleStr<int>(cost.AttrType);
|
| | | int[] attrValues = ConfigParse.GetMultipleStr<int>(cost.AttrValue);
|