|
@@ -44,10 +44,10 @@ namespace GFGGame
|
|
|
|
|
|
FunctionOpenCfg functionOpenCfg = FunctionOpenCfgArray.Instance.GetCfg(typeof(SuitListView).Name);
|
|
|
if (GameGlobal.myUnit != null//游戏角色初始数据不处理
|
|
|
- && itemCfg.rarity == ConstDressRarity.Rarity_TIANYI
|
|
|
+ && itemCfg.rarity == ConstDressRarity.Rarity_TIANYI
|
|
|
&& StorageDataManager.Instance.GetStorageValue(ConstStorageId.FUNCTION_OPEN + functionOpenCfg.index) == 0)
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
FunctionOpenDataManager.Instance.CheckHasSpecialFunOpen();
|
|
|
}
|
|
|
}
|
|
@@ -151,25 +151,41 @@ namespace GFGGame
|
|
|
//五个属性中最大的为主属性
|
|
|
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;
|
|
|
+ // 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)
|
|
|
+ {
|
|
|
+ case 1:
|
|
|
+ mainScoreValue = itemCfg.score1;
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ mainScoreValue = itemCfg.score2;
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ mainScoreValue = itemCfg.score3;
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ mainScoreValue = itemCfg.score4;
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
public static int GetItemScoreValue(int itemId, int scoreType)
|