少年修仙传客户端代码仓库
client_linchunjie
2018-12-17 0b48054fb9b2e846aee89ee69e52891177511fc7
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
9个文件已修改
79 ■■■■■ 已修改文件
Fight/GameActor/GA_NpcCollect.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_NpcFunc.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GActorPlayerBase.cs 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FindPrecious/DemonJarAutoDoubleSettingWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/InGamePushContainer.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Mount/MountStoneTipsWin.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Pet/PetAttributeMethods.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI/Common/UI3DModelExhibition.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI/Common/UI3DModelFactory.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_NpcCollect.cs
@@ -156,17 +156,18 @@
        WindowCenter.Instance.windowAfterOpenEvent += CheckOpenCollectIcon;
        WindowCenter.Instance.windowAfterCloseEvent += AfterCloseMainWin;
        if (GeneralDefine.NpcPosOffset.ContainsKey(NpcConfig.NPCID))
        {
            Pos = GeneralDefine.NpcPosOffset[NpcConfig.NPCID];
            //Debug.Log("矫正位置: " + Pos);
        }
        // 执行挖洞逻辑
        if (NpcConfig.Dig == 1)
        {
            m_Dig = SoMap.CreateImpasse.GeneralCircle(Pos, NpcConfig.ModelRadius);
        }
        if (GeneralDefine.NpcPosOffset.ContainsKey(NpcConfig.NPCID))
        {
            Pos = GeneralDefine.NpcPosOffset[NpcConfig.NPCID];
            //Debug.Log("矫正位置: " + Pos);
        }
    }
    private void AfterCloseMainWin(Window obj)
Fight/GameActor/GA_NpcFunc.cs
@@ -63,8 +63,15 @@
        bool _needHide = (NpcConfig.Show == 0);
        PlayerTaskDatas _model = ModelCenter.Instance.GetModel<PlayerTaskDatas>();
        if (_model.NPCShowDic.ContainsKey(NpcConfig.NPCID)
         && _model.NPCShowDic[NpcConfig.NPCID] == 1)
        var _npcID = NpcConfig.NPCID;
        if(_npcID == 10404101)
        {
            _npcID = 10404100;
        }
        if (_model.NPCShowDic.ContainsKey(_npcID)
         && _model.NPCShowDic[_npcID] == 1)
        {
            _needHide = false;
        }
Fight/GameActor/GActorPlayerBase.cs
@@ -1382,8 +1382,7 @@
        }
        HorseID = _newHorseID;
        if (ShowOrHide)
        if (m_HorseModel && ShowOrHide)
        {
            ShowHorseEffect();
        }
@@ -1403,11 +1402,20 @@
    public void ShowHorseEffect()
    {
        HideHorseEffect();
        if(HorseID <= 0)
        {
            return;
        }
        var _horseConfig = Config.Instance.Get<HorseConfig>((int)HorseID);
        if (_horseConfig == null)
        {
            Debug.LogError("找不到配置HorseConfig: " + HorseID);
            return;
        }
        var _config = Config.Instance.Get<ModelResConfig>(_horseConfig.Model);
        if (_config == null)
        {
            Debug.LogError("找不到配置: " + HorseID);
            Debug.LogError("找不到配置ModelResConfig: " + _horseConfig.Model);
            return;
        }
        var _dict = ModelResConfig.GetEffectDict(_config.ResourcesName);
System/FindPrecious/DemonJarAutoDoubleSettingWin.cs
@@ -63,7 +63,7 @@
        private void SetAutoChallenge()
        {
            var autoable = vipModel.GetVipPrivilegeCnt(VipPrivilegeType.DemonJarAuto) >= 1;
            if (autoable || model.oldDouble)
            if (autoable)
            {
                model.autoChallenge = !model.autoChallenge;
            }
@@ -77,7 +77,7 @@
        private void SetDoubleChallenge()
        {
            var candouble = vipModel.GetVipPrivilegeCnt(VipPrivilegeType.DemonJarDouble) >= 1;
            if (candouble)
            if (candouble || model.oldDouble)
            {
                model.RequestSetDoubleAward(!model.isDoubleAward);
            }
System/MainInterfacePanel/InGamePushContainer.cs
@@ -103,11 +103,16 @@
        private void CheckHelpPointExchange()
        {
            int pushId = exchageModel.currentShopId;
            m_HelpPointExchangeNotify.gameObject.SetActive(pushId != 0);
            if (pushId != 0)
            StoreConfig storeConfig = Config.Instance.Get<StoreConfig>(pushId);
            if (pushId != 0 && storeConfig != null)
            {
                m_HelpPointExchangeNotify.gameObject.SetActive(true);
                m_HelpPointExchangeNotify.SetDisplay();
            }
            else
            {
                m_HelpPointExchangeNotify.gameObject.SetActive(false);
            }
        }
        private void CheckRealmBetterEquip()
System/Mount/MountStoneTipsWin.cs
@@ -184,20 +184,24 @@
                foreach (var item in _dic.Keys)
                {
                    textNumber += 1;
                    val += Config.Instance.Get<PlayerPropertyConfig>(item).Name;
                    if (item == 15 || item == 16)
                    var propertyConfig = Config.Instance.Get<PlayerPropertyConfig>(item);
                    val += propertyConfig.Name;
                    switch (propertyConfig.ISPercentage)
                    {
                        val += "<color=#109d06>  +" + (_dic[item] * _max) / 100 + "%   </color>";
                    }
                    else
                    {
                        val += "<color=#109d06>  +" + (_dic[item] * _max).ToString() + "   </color>";
                        case 0:
                            val += "<color=#109d06>  +" + (_dic[item] * _max) + "   </color>";
                            break;
                        case 1:
                            val += "<color=#109d06> +" + (_dic[item] * _max) / 100 + "%   </color>";
                            break;
                        case 2:
                            val += "<color=#109d06> +" + (_dic[item] * _max) + "%   </color>";
                            break;
                    }
                    if (textNumber == 3)
                    {
                        val += "\n";
                    }
                }
                _text.text = val;
            }
System/Pet/PetAttributeMethods.cs
@@ -399,13 +399,15 @@
                            }
                        }
                    }
                    _scoreNumAll = Mathf.FloorToInt(_tagPetClass.AtkAdd * 2.5f) + _scoreNum;
                    Dictionary<int, int> Dic = new Dictionary<int, int>();
                    Dic.Add(78, _tagPetClass.AtkAdd);
                    Dic.Add(77, _tagPetClass.AtkAdd);
                    _scoreNumAll = UIHelper.GetFightPower(Dic) + _scoreNum;
                    sumFight += _scoreNumAll;
                }
                allFightText.text = (sumFight + InitFightPower).ToString();
                attackSpeed.text = ((float)UIHelper.GetPropertyMapPlayerData(AttrEnum.ATKSPEED) / 100).ToString();
            }
        }
        public void RefreshPetUpgradeCostUI(bool isRefresh = false)
UI/Common/UI3DModelExhibition.cs
@@ -384,6 +384,8 @@
            instance.transform.SetParentEx(m_HorseShowPoint, position, rotation, modelConfig.UIScale);
            instance.SetActive(true);
            ResetCameraColor();
            ShowNpcEffect(instance.transform, modelConfig.ResourcesName);
        }
        private GameObject ObjEquipment;
UI/Common/UI3DModelFactory.cs
@@ -176,7 +176,7 @@
    public static GameObject LoadUIHorse(int id)
    {
        var prefab = InstanceResourcesLoader.LoadModelRes(id, true);
        var prefab = InstanceResourcesLoader.LoadModelRes(id, false);
        if (prefab == null)
        {
            return null;