hch
2025-10-22 af6e207c6d185ed66125e85e18c02c63bea597f9
Main/System/HeroUI/HeroUIManager.Collect.cs
@@ -11,13 +11,12 @@
    public Dictionary<int, List<int>> heroCollectDict { get; private set; } = new Dictionary<int, List<int>>();  //武将图鉴按品质列表
    public List<int> heroCollectList = new List<int>(); //武将图鉴列表
    public int selectHeroCollectListJob = 0;    //武将列表界面 筛选职业
    public int selectHeroCollectListCountry = 0;    //武将列表界面筛选国家
    public int selectCollectHeroID; //选中的武将id
    public int selectCollectHeroID; //选中的武将id 用于升级
    public int bookMoneyType; //图鉴奖励货币类型
    public int bookMoneyValue;//图鉴奖励货币数量
    public int selectForPreviewHeroID; //选中的武将id 用于预览
    //图鉴和皮肤的激活情况
    Dictionary<int, HB122_tagSCHeroInfo.tagSCHero> heroCollectInfoDic = new Dictionary<int, HB122_tagSCHeroInfo.tagSCHero>();
@@ -33,6 +32,7 @@
        }
        allHeroBookPer = GetHeroCollectBookPer();
        OnHeroCollectEvent?.Invoke();
        UpdateHeroBookRedpoint();
    }
@@ -71,6 +71,8 @@
        foreach (var heroID in heroIDs)
        {
            HeroConfig heroConfig = HeroConfig.Get(heroID);
            if (heroConfig.PlayerCanUse == 0)
                continue;
            if (!heroCollectDict.ContainsKey(heroConfig.Quality))
            {
                heroCollectDict[heroConfig.Quality] = new List<int>();
@@ -87,6 +89,15 @@
            heroCollectDict[heroConfig.Quality].Add(heroID);
        }
        heroCollectList.Clear();
        //按品质倒序加入
        var _list = heroCollectDict.Keys.ToList();
        _list.Reverse();
        foreach (var quality in _list)
        {
            heroCollectList.AddRange(heroCollectDict[quality]);
        }
    }
    //图鉴总上限等级 = 图鉴星级上限 + 图鉴突破上限