262 幻境阁 修复获取气泡、头像、头像框、形象、称号的激活物品,外层没显示红点bug
2个文件已修改
34 ■■■■ 已修改文件
Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/PhantasmPavilion/PhantasmPavilionManager.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs
@@ -180,6 +180,32 @@
        }
    }
    private HashSet<int> UpdateRedPointItemSet = new HashSet<int>();
    public HashSet<int> GetUpdateRedPointItemSet()
    {
        if (UpdateRedPointItemSet.Count > 0)
            return UpdateRedPointItemSet;
        var types = (PhantasmPavilionType[])System.Enum.GetValues(typeof(PhantasmPavilionType));
        foreach (var type in types)
        {
            List<int> keys = GetTableKeys(type);
            if (keys == null)
                continue;
            foreach (var id in keys)
            {
                if (GetUnlockWay(type, id) != 2)
                    continue;
                int itemId = GetUnlockValue(type, id);
                UpdateRedPointItemSet.Add(itemId);
            }
        }
        return UpdateRedPointItemSet;
    }
    public List<int> newSkinIDModelList = new List<int>();
    public List<int> newSkinIDFaceList = new List<int>();
    string modelSkinKey { get { return StringUtility.Concat("PhantasmPavilion_Redponit_ModelSkin_", PlayerDatas.Instance.PlayerId.ToString()); } }
@@ -318,7 +344,8 @@
        {
            int[] arr = LocalSave.GetIntArray(faceSkinKey);
            newSkinIDFaceList = arr.IsNullOrEmpty() ? new List<int>() : arr.ToList();
        }else
        }
        else
        {
            newSkinIDFaceList = new List<int>();
        }
Main/System/PhantasmPavilion/PhantasmPavilionManager.cs
@@ -99,9 +99,8 @@
    {
        if (type != PackType.Item)
            return;
        if (itemID <= 0)
            return;
        if (ItemConfig.Get(itemID).Type != 146)
        var map = GetUpdateRedPointItemSet();
        if (!map.Contains(itemID))
            return;
        UpdateRedPoint();
    }