lcy
7 小时以前 c13298a03a71b14fc50c68aabeb7fd581851722b
492 武将登场 修复升星计划没获得武将本体时0星可领取奖励的bug
2个文件已修改
5 ■■■■ 已修改文件
Main/System/HeroDebut/HeroDebutManager.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroDebut/HeroDebutStarUpCell.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroDebut/HeroDebutManager.cs
@@ -505,6 +505,9 @@
        var heroConfig = HeroConfig.Get(heroId);
        if (heroConfig == null) return 0;
        // 没获得武将本体不可领取
        if (!HeroManager.Instance.HasHero(heroId))return 0;
        if (!starHeroIndexDict.TryGetValue(actNum, out int index)) return 0;
        if (IsStarUpFreeHave(index, config.AwardIndex)) return 2;
        if (IsHeroStarCntOk(heroConfig.HeroID, config.NeedStar)) return 1;
Main/System/HeroDebut/HeroDebutStarUpCell.cs
@@ -64,7 +64,7 @@
        //buyImage.gray = state == 0 || !isNoSellOut;
        buyText.text = !isNoSellOut ? Language.Get("storename11") : Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderConfig.PayRMBNumOnSale));
        limitText.text = Language.Get("TimeRush08", UIHelper.AppendColor(rechargeCount.totalCount >= ctgConfig.TotalBuyCount ? TextColType.Red : TextColType.DarkGreen, $"{rechargeCount.totalCount}/{ctgConfig.TotalBuyCount}"));
        bool isHeroStarOk = manager.IsHeroStarCntOk(heroConfig.HeroID, config.NeedStar);
        bool isHeroStarOk = manager.IsHeroStarCntOk(heroConfig.HeroID, config.NeedStar) && HeroManager.Instance.HasHero(heroConfig.HeroID);
        upProcssBGTransform.SetActive(!isFrist);
        downProcssBGTransform.SetActive(!isEnd);