| | |
| | | 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()
|
| | |
| | | }
|
| | | }
|
| | | 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)
|
| | | {
|