瀏覽代碼

服装养护属性提升显示

zhaoyang 2 年之前
父節點
當前提交
29f9bef6f6
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterView.cs

+ 6 - 5
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterView.cs

@@ -9,11 +9,11 @@ namespace GFGGame
     public class ClothingFosterView : BaseWindow
     {
         private UI_ClothingFosterUI _ui;
-
+        private SuitFosterCfg cfg;
         private int _suitId;
         private int _index;
         private SortedList _propertyList;
-        private Dictionary<int, int> _addPropertyList;
+        // private Dictionary<int, int> _addPropertyList;
         private bool _canFoster;
         public override void Dispose()
         {
@@ -54,10 +54,10 @@ namespace GFGGame
             _suitId = (int)(this.viewData as object[])[0];
             _index = (int)(this.viewData as object[])[1];
             _propertyList = (this.viewData as object[])[2] as SortedList;
-            _addPropertyList = SuitFosterDataManager.Instance.GetAdditionPropertyData(_suitId, _index);
+            // _addPropertyList = SuitFosterDataManager.Instance.GetAdditionPropertyData(_suitId, _index);
             _canFoster = true;
 
-            SuitFosterCfg cfg = SuitFosterCfgArray.Instance.GetCfgsBysuitId(_suitId)[_index];
+            cfg = SuitFosterCfgArray.Instance.GetCfgsBysuitId(_suitId)[_index];
             _ui.m_listMaterials.numItems = cfg.materialsArr.Length;
             long has = ItemDataManager.GetItemNum(cfg.costId);
             int need = cfg.costNum;
@@ -112,7 +112,8 @@ namespace GFGGame
             comProperty.m_txtProperty.text = _propertyList[score].ToString();
             comProperty.m_loaIcon.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + (score));
 
-            double addition = _addPropertyList[score] * 100 / 10000;
+            // double addition = _addPropertyList[score] * 100 / 10000;
+            double addition = cfg.addition * 100 / 10000;
             item.m_txtAdd.text = string.Format("+{0}%", addition);
             UI_ListPropertyAddItem.ProxyEnd();
             UI_ListScoreItem.ProxyEnd();