From e312d83f373e52c3937693eca172abd91c8d583a Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 07 九月 2020 22:34:22 +0800
Subject: [PATCH] 4621 【主干】再使用x个丹药达到上限判断条件优化;关闭极光推送

---
 System/Alchemy/AlchemyModel.cs |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/System/Alchemy/AlchemyModel.cs b/System/Alchemy/AlchemyModel.cs
index a3263a2..460d6c6 100644
--- a/System/Alchemy/AlchemyModel.cs
+++ b/System/Alchemy/AlchemyModel.cs
@@ -1,8 +1,8 @@
 锘縰sing System;
-using System.Collections;
-using System.Collections.Generic;
+using System.Collections;
+using System.Collections.Generic;
 using System.Linq;
-using UnityEngine;
+using UnityEngine;
 namespace Snxxz.UI
 {
     [XLua.LuaCallCSharp]
@@ -683,6 +683,14 @@
                         {
                             continue;
                         }
+
+                        var itemCount = packModel.GetItemCountByID(PackType.Item, config.AlchemItemID);
+                        if (drugUseLimit.GetUseLimit() - drugUseLimit.eatTimes - itemCount <= 0)
+                        {
+                            //鑳屽寘涓湁瓒冲鐨勭伒鏍逛腹
+                            continue;
+                        }
+                        
                     }
                     else
                     {
@@ -708,6 +716,7 @@
                                 continue;
                             }
                         }
+
                         s_Alchemyables.Add(id);
                     }
                 }
@@ -950,5 +959,5 @@
             alchemyRedpoint = new Redpoint(redpoint.id, AlchemyModel.redpointIndex++);
         }
     }
-}
-
+}
+

--
Gitblit v1.8.0