|
@@ -149,28 +149,8 @@ namespace GFGGame
|
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(itemId);
|
|
|
|
|
|
//五个属性中最大的为主属性
|
|
|
- mainScore = 1;
|
|
|
+
|
|
|
mainScoreValue = 0;
|
|
|
- // if (itemCfg.score1 > mainScoreValue)
|
|
|
- // {
|
|
|
- // mainScoreValue = itemCfg.score1;
|
|
|
- // mainScore = 1;
|
|
|
- // }
|
|
|
- // if (itemCfg.score2 > mainScoreValue)
|
|
|
- // {
|
|
|
- // mainScoreValue = itemCfg.score2;
|
|
|
- // mainScore = 2;
|
|
|
- // }
|
|
|
- // if (itemCfg.score3 > mainScoreValue)
|
|
|
- // {
|
|
|
- // mainScoreValue = itemCfg.score3;
|
|
|
- // mainScore = 3;
|
|
|
- // }
|
|
|
- // if (itemCfg.score4 > mainScoreValue)
|
|
|
- // {
|
|
|
- // mainScoreValue = itemCfg.score4;
|
|
|
- // mainScore = 4;
|
|
|
- // }
|
|
|
mainScore = itemCfg.mainScore;
|
|
|
switch (mainScore)
|
|
|
{
|