492 武将登场 修复升星计划没获得武将本体时0星可领取奖励的bug
| | |
| | | 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; |
| | |
| | | //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); |
| | | |