hch
2026-03-02 0fbd34260ee573884f55da561782e3936736e11a
Main/System/HappyXB/HappyXBModel.cs
@@ -525,11 +525,16 @@
    {
        qualityList = new List<int>();
        //无配置写死
        //无配置写死品质
        if (type == (int)HappXBTitle.Gubao)
        {
            qualityList.Add(3);
            qualityList.Add(4);
        }
        else if (type == (int)HappXBTitle.HeroCallAdvanced)
        {
            qualityList.Add(4);
            qualityList.Add(5);
        }
@@ -542,18 +547,17 @@
        var xbConfig = GetXBItemConfigByType(type);
        var luckList = xbConfig.LuckyItemRateInfo.Keys.ToList();
        luckList.Sort();
        //按阶梯显示
        for (int i = 0; i < luckList.Count; i++)
        {
            if (typeInfo.luckValue < luckList[i])
            //开特权卡之后才有幸运奖励
            var luckyValue = typeInfo.luckValue;
            if (type == (int)HappXBTitle.HeroCallAdvanced && !InvestModel.Instance.IsInvested(InvestModel.foreverCardType))
            {
                if (type == (int)HappXBTitle.HeroCallAdvanced)
                {
                    //把二维数组里的所有第二个元素组成新列表
                    qualityList = xbConfig.LuckyItemRateInfo[luckList[i]].Select(x => x[1]).ToList();
                    qualityList.Sort();
                }
                return luckList[i] - typeInfo.luckValue;
                luckyValue = 0;
            }
            if (luckyValue < luckList[i])
            {
                return luckList[i] - luckyValue;
            }
        }
        return 0;