|
@@ -653,10 +653,15 @@ namespace GFGGame
|
|
|
/// <param name="itemId"></param>
|
|
|
/// <param name="showTips"></param>
|
|
|
/// <returns></returns>
|
|
|
+ public int count = 0;
|
|
|
public bool CheckCardCanSynthetic(int itemId)
|
|
|
{
|
|
|
- //合成材料判断
|
|
|
+ GetCardTimers(itemId).Coroutine();
|
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(itemId);
|
|
|
+ if(count >= itemCfg.syntheticTimes)
|
|
|
+ {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
if (itemCfg == null || ItemDataManager.GetItemNum(itemCfg.syntheticCostID) < itemCfg.syntheticCostNum || itemCfg.syntheticTimes <= 0)
|
|
|
{
|
|
|
return false;
|
|
@@ -673,6 +678,13 @@ namespace GFGGame
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
+ public async ETTask<bool> GetCardTimers(int itemId)
|
|
|
+ {
|
|
|
+ //合成材料判断
|
|
|
+ var response = await ClothingSyntheticSProxy.GetCardSyntheticCount(itemId);
|
|
|
+ count = response;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
/// <summary>
|
|
|
/// 商城
|
|
|
/// </summary>
|