| | |
| | | if (!ItemLogicUtility.CheckItemCount(PackType.Item, HeroUIManager.Instance.washItemID, |
| | | HeroUIManager.Instance.GetTalentLockUseWashCount(hero), 2)) |
| | | { |
| | | TimingGiftManager.Instance.TryAddWhenInsufficient(4, HeroUIManager.Instance.washItemID, HeroUIManager.Instance.GetTalentLockUseWashCount(hero)); |
| | | return; |
| | | } |
| | | |
| | | |
| | | for (int i = 0; i < currentGiftCells.Length; i++) |
| | | { |
| | |
| | | { |
| | | return; |
| | | } |
| | | |
| | | |
| | | if (!TimingGiftManager.Instance.TryAddWhenExactConsumption(4,PackType.Item, HeroUIManager.Instance.washItemID, HeroUIManager.Instance.GetTalentLockUseWashCount(hero))) |
| | | { |
| | | TimingGiftManager.Instance.TryAddWithFixedProbabilityWhenSufficient(4, PackType.Item,HeroUIManager.Instance.washItemID, HeroUIManager.Instance.GetTalentLockUseWashCount(hero)); |
| | | } |
| | | HeroUIManager.Instance.SendWash(hero, 0); |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | void ChangeLockEvent() |
| | | { |
| | | { |
| | | int useCount = HeroUIManager.Instance.GetTalentLockUseWashCount(hero); |
| | | var itemCount = PackManager.Instance.GetItemCountByID(PackType.Item, HeroUIManager.Instance.washItemID); |
| | | itemCountText.text = UIHelper.AppendColor(itemCount >= useCount ? TextColType.Green : TextColType.Red, |