Browse Source

物品添加动态属性

guodong 3 years ago
parent
commit
6d3c342fc3
1 changed files with 8 additions and 8 deletions
  1. 8 8
      GameClient/Assets/Game/HotUpdate/Data/VO/ItemData.cs

+ 8 - 8
GameClient/Assets/Game/HotUpdate/Data/VO/ItemData.cs

@@ -23,14 +23,14 @@ namespace GFGGame
             AddPercentArr = null;
             AddPercentArr = null;
         }
         }
 
 
-        //public int MainScore
-        //{
-        //    get
-        //    {
-        //        var cfg = ItemCfgArray.Instance.GetCfg(id);
-        //        return GetScore(cfg.mai)
-        //    }
-        //}
+        public int MainScore
+        {
+            get
+            {
+                var cfg = ItemCfgArray.Instance.GetCfg(id);
+                return GetScore(cfg.mainScore);
+            }
+        }
 
 
         public int GetScore(int scoreType)
         public int GetScore(int scoreType)
         {
         {