From 3db053dc0199bafc19e899c8ce73de8a53b5d0f1 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 08 五月 2019 13:52:47 +0800
Subject: [PATCH] 6627 【2.0】【前端】查看玩家装备和查看玩家战力功能

---
 System/RoleParticulars/ViewFuncCell.cs |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/System/RoleParticulars/ViewFuncCell.cs b/System/RoleParticulars/ViewFuncCell.cs
index 893a9b0..f827334 100644
--- a/System/RoleParticulars/ViewFuncCell.cs
+++ b/System/RoleParticulars/ViewFuncCell.cs
@@ -31,6 +31,7 @@
         MagicianModel godWeaponModel { get { return ModelCenter.Instance.GetModel<MagicianModel>(); } }
         RuneModel runeModel { get { return ModelCenter.Instance.GetModel<RuneModel>(); } }
         TreasureSkillModel treasureSkillModel { get { return ModelCenter.Instance.GetModel<TreasureSkillModel>(); } }
+        AlchemyModel alchemyModel { get { return ModelCenter.Instance.GetModel<AlchemyModel>(); } }
 
         public override void Refresh(CellView cell)
         {
@@ -148,6 +149,19 @@
                         }
                         break;
                     case FuncPowerType.Alchemy:
+                        {
+                            var drugs = alchemyModel.GetAlchemyDrugs();
+                            foreach (var drugId in drugs)
+                            {
+                                AlchemyDrugUseLimit drugUseLimit;
+                                if (alchemyModel.TryGetAlchemyUseLimit(drugId, out drugUseLimit))
+                                {
+                                    selfValue1 += drugUseLimit.eatTimes;
+                                }
+                            }
+
+                            targetValue1 = 0;
+                        }
                         break;
                     case FuncPowerType.Pet:
                         selfValue1 = petModel._DicPetBack.Count;

--
Gitblit v1.8.0