少年修仙传客户端代码仓库
client_linchunjie
2018-09-04 a8bf44d6cce9db087914827d78f2bb75ca388ff9
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
3个文件已修改
21 ■■■■■ 已修改文件
System/MainInterfacePanel/PlayerTaskDatas.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/TaskListTip.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/TreasureFindHost/TreasureFindHostModel.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/PlayerTaskDatas.cs
@@ -128,6 +128,8 @@
    private float BossDelayTimeint = 0;
    private List<int> FaBaoNPCIdList = new List<int>();//用于获取需要消失的法宝NPCID;
    public Vector3 UIeffectFabaoVec = new Vector3();//法宝NPC消失时获取的坐标
    PlayerPackModel _playerPack;
    PlayerPackModel playerPack
    {
@@ -207,6 +209,10 @@
    {
        try
        {
            if (AutomaticityBool)
            {
                TaskupToDate = MissionID;
            }
            var pytaskM = Config.Instance.Get<PyTaskConfig>(MissionID);
            if (pytaskM == null)
            {
@@ -1505,6 +1511,7 @@
        }
    }
    //--------主要用于记录任务列表选中条的智能性 (-_-||)
    public int TaskupToDate = 0;//获取最新任务ID
    public int GetOnTaskId = 0;
    public bool IsGetOnBool = false;
    private  int NeedTime = 10;
System/MainInterfacePanel/TaskListTip.cs
@@ -427,7 +427,10 @@
            int type = 0;
            if (TaskID == 0)
            {
                type= _list.IndexOf(taskmodel.GetNowTaskID);
                if (_list.Contains(taskmodel.TaskupToDate))
                {
                    type = _list.IndexOf(taskmodel.TaskupToDate);
                }
            }
            else
            {
System/TreasureFindHost/TreasureFindHostModel.cs
@@ -15,6 +15,7 @@
 
        public List<int> treasureIdlist { get; set; }
        public event Action TreasureFindHostCompleteAct;
        public int[] specEquipIds { get; private set;}
        public override void Init()
        {
@@ -43,6 +44,8 @@
            playerPack.RefreshItemCountAct += RefreshEquipInfo;
            playerSuit.RefreshSuitModelAct += RefreshSuitInfo;
            treasureModel.treasureStateChangeEvent += RefreshTreasureState;
            FuncConfigConfig SamboSpecialUnlock = Config.Instance.Get<FuncConfigConfig>("SamboSpecialUnlock");
            specEquipIds = ConfigParse.GetMultipleStr<int>(SamboSpecialUnlock.Numerical1);
        }
        public void OnBeforePlayerDataInitialize()
@@ -135,12 +138,18 @@
            SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptEquip);
            if (singlePack == null) return false;
            foreach (var condi in treasureInfo.needConditionsDict.Values)
            {
                progress = 0;
                ItemModel itemModel = playerPack.GetItemModelByIndex(PackType.rptEquip,condi[3]);
                if(itemModel != null)
                {
                    if(specEquipIds != null && specEquipIds.Contains(condi[3]))
                    {
                        progress += 1;
                        return true;
                    }
                    if(itemModel.chinItemModel.LV >= condi[0]
                        && itemModel.chinItemModel.ItemColor >= condi[1]
                        && itemModel.chinItemModel.StarLevel >= condi[2])