| | |
| | | public int petUpgradeToolId { get; set; }
|
| | |
|
| | | public event Action PlayerLoginOkData;
|
| | | private Dictionary<int, int> DicDefaultPet = new Dictionary<int, int>();
|
| | |
|
| | | public override void Init()
|
| | | {
|
| | |
| | | {
|
| | | ListEffectSkill.Add(listeffect[i]);
|
| | | }
|
| | | string PetRedDotstr = Config.Instance.Get<FuncConfigConfig>("MountPetRedDot").Numerical2;
|
| | | DicDefaultPet = ConfigParse.GetDic<int, int>(PetRedDotstr);
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | |
| | | PetAttributeWin.IsRedPointCultivate -= IsRedPointCultivate;
|
| | | }
|
| | |
|
| | | |
| | |
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | |
| | | if (!Wait)
|
| | | {
|
| | | TimeSpan timeS = DateTime.Now - dateTimeA;
|
| | | if (timeS.Seconds>= 2f)
|
| | | if (timeS.Seconds >= 2f)
|
| | | {
|
| | | Wait = true;
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void SendPetTrainQuest(int petIndex,int number)
|
| | | public void SendPetTrainQuest(int petIndex, int number)
|
| | | {
|
| | | CA704_tagCMPetClassUP _tagCA704 = new CA704_tagCMPetClassUP();
|
| | | _tagCA704.PetItemIndex = (byte)petIndex;
|
| | |
| | | }
|
| | | }
|
| | | int itemCount = playerPack.GetItemCountByID(PackType.rptItem, 4151);
|
| | | foreach (var key in _DicPetBack.Keys)//因为有成就任务限制所有 第一只坐骑红点逻辑特殊写
|
| | | {
|
| | | if (DicDefaultPet.ContainsKey(key) && DicDefaultPet[key] > _DicPetBack[key].PetClass
|
| | | && itemCount > 0 && CultivateRedPoint.ContainsKey(key))
|
| | | {
|
| | | CultivateRedPoint[key].state = RedPointState.Simple;
|
| | | CanEssence = true;
|
| | | return;
|
| | | }
|
| | | }
|
| | | PetInfoConfig petinfo = Config.Instance.Get<PetInfoConfig>(GetPetId);
|
| | | if (PlayerDatas.Instance.baseData.LV >= 1500)
|
| | | {
|
| | | if (CultivateRedPoint.ContainsKey(GetPetId) && itemCount > 0 && RedPointMaxLv && petinfo.MaxRank> petLv)
|
| | | if (CultivateRedPoint.ContainsKey(GetPetId) && itemCount > 0 && RedPointMaxLv && petinfo.MaxRank > petLv)
|
| | | {
|
| | | CultivateRedPoint[GetPetId].state = RedPointState.Simple;
|
| | | CanEssence = true;
|
| | |
| | | CultivateRedPoint[GetPetId].state = RedPointState.Simple;
|
| | | CanEssence = true;
|
| | | }
|
| | | } |
| | | }
|
| | | }
|
| | |
|
| | | public int GetMinPetLv()
|
| | |
| | | PetInfoConfig petInfo = Config.Instance.Get<PetInfoConfig>(PetID);
|
| | | if (petInfo != null)
|
| | | {
|
| | | curPetUnlocks= ConfigParse.GetMultipleStr<int>(petInfo.SkillUnLock);
|
| | | maxskillLV = curPetUnlocks[(curPetUnlocks.Length)-1];
|
| | | curPetUnlocks = ConfigParse.GetMultipleStr<int>(petInfo.SkillUnLock);
|
| | | maxskillLV = curPetUnlocks[(curPetUnlocks.Length) - 1];
|
| | | }
|
| | | return maxskillLV;
|
| | | }
|
| | |
| | | {
|
| | | Event_H0704Add();
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public int IsPetPanelRedPointState()//用于判断当前灵宠页签是否有红点亮起
|
| | | public int IsPetPanelRedPointState()//用于判断当前灵宠页签是否有红点亮起
|
| | | {
|
| | | int Type = 0;
|
| | | foreach (var value in DeblockingRedPoint.Values)
|
| | |
| | | Type = 2;
|
| | | return Type;
|
| | | }
|
| | | } |
| | | }
|
| | | if (MainRedDot.Instance.redPonintPetFunc2.state == RedPointState.Simple)
|
| | | {
|
| | | Type = 1;
|
| | |
| | |
|
| | | #region 预览宠物碎片属性
|
| | | Dictionary<int, int> petAttrDict = new Dictionary<int, int>();
|
| | | public Dictionary<int,int> GetPetAttrAddDict(int petCode)
|
| | | public Dictionary<int, int> GetPetAttrAddDict(int petCode)
|
| | | {
|
| | | PetInfoConfig infoConfig = Config.Instance.Get<PetInfoConfig>(petCode);
|
| | | petAttrDict.Clear();
|
| | | if (infoConfig == null) return petAttrDict;
|
| | |
|
| | | int maxRank = infoConfig.MaxRank;
|
| | | PetClassCostConfig cost = PetClassCostConfig.GetPetIdAndRank(petCode,maxRank);
|
| | | PetClassCostConfig cost = PetClassCostConfig.GetPetIdAndRank(petCode, maxRank);
|
| | | int allAtkAdd = 0;
|
| | | if(cost != null)
|
| | | if (cost != null)
|
| | | {
|
| | | allAtkAdd = cost.AtkAdd;
|
| | | }
|
| | | petAttrDict.Add(7,allAtkAdd);
|
| | | petAttrDict.Add(7, allAtkAdd);
|
| | | return petAttrDict;
|
| | | }
|
| | | #endregion
|